> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cgw/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/cgw/latest/configuration/bgp.md).

# BGP configuration

To use Border Gateway Protocol (BGP) in the Connectivity Gateway (CGW) deployment, enable BIRD Internet routing daemon as follows:

```yaml
bird:
  # The default value is false
  enabled: true 
  configuration:
    bird: |
      < Add the bird IPv4 configuration here>
    bird6: |
      < Add the bird6 IPv6 configuration here>
```

You must configure **bird** and **bird6** manually following the [BIRD documentation](https://bird.network.cz/?get_doc&v=16&f=bird-3.html). The version used is `1.6` which differs in its configuration from version `2.0`.

The **bird** container is configured to log to standard out. To have info logs with timestamps, add the following to the respective **bird** and **bird6** configuration:

```
log stderr all;
```

For more information, read the [BIRD documentation](https://bird.network.cz/?get_doc&v=16&f=bird-3.html#ss3.2). 

## bird_exporter

The `bird_exporter` component exposes Prometheus metrics for BIRD. It is enabled by default. 
To disable or configure `bird_exporter`, change the following parameteres:

```yaml
bird:
  birdExporter:
    # The default value is true
    enabled: true
    service:
      annotations:
        prometheus.io/scrape: "true"
        prometheus.io/port: "9324"
    image:
      repository: registry.cennso.com/cennso/bird_exporter
      tag: v1.6.2-vnf-1.3.5
      pullPolicy: IfNotPresent
```

## bird-configwatcher

You can use [bird-configwatcher](https://github.com/travelping/bird-configwatcher) to observe and apply new BIRD configurations automatically without restart. To enable or configure `bird-configwatcher`, adjust the following parameteres:

```yaml
bird:
  birdConfigWatcher:
    # The default value is false
    enabled: true 
    image:
      repository: registry.cennso.com/cennso/bird-configwatcher
      tag: v0.1.4
      pullPolicy: IfNotPresent
```
