Skip to content

How to Configure Simple BGP on Cumulus VX

1. Configure switch interfaces with assigned IP addresses.

On SW1

net add interface swp1 ip address 10.0.0.1/30
net add loopback lo ip address 1.1.1.1/32
net commit

On SW2

net add interface swp1 ip address 10.0.0.2/30
net add loopback lo ip address 2.2.2.2/32
net commit

2. Verify layer 3 connectivity between the two switches. Noting that for BGP to work you require connectivity to your neighbour.

On SW1

ping 10.0.0.1

On SW2

ping 10.0.0.2

3. Configure your local BGP Autonomous System Number.

On SW1

net add bgp autonomous-system 1000
net add bgp router-id 1.1.1.1
net add bgp neighbor 2.2.2.2 remote-as external
net add bgp neighbor 2.2.2.2 ttl-security hops 2
net add bgp neighbor 2.2.2.2 update-source loopback
net add bgp network 10.0.0.0/24
net add bgp network 20.0.0.0/24
net commit

On SW2

net add bgp autonmous-system 2000
net add bgp router-id 2.2.2.2
net add bgp neighbor 1.1.1.1 remote-as external
net add bgp neighbor 1.1.1.1 ttl-security hops 2
net add bgp neighbor 1.1.1.1 update-source loopback
net add bgp network 30.0.0.0/24
net add bgp network 40.0.0.0/24
net commit

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.