HowTo Configure BGP on Mellanox Switches (Running-Config)

Version 1

    This post describes only the running-config of each Mellanox switch and the basic server configuration to configure BGP on a basic four switch setup (VMS). In order to understand the setup and configuration refer to HowTo Configure BGP on Mellanox Switches.

     

    References

     

    Setup

    The setup is based on HowTo Configure BGP on Mellanox Switches post.

     

    3.png

     

    SX03 switch running-config:

    vlan 1-6

    interface ethernet 1/1 switchport access vlan 1

    interface ethernet 1/2 switchport access vlan 2

    interface ethernet 1/30 switchport access vlan 5

    no spanning-tree

    lldp

    ip routing

    interface vlan 1

    interface vlan 2

    interface vlan 5

    interface vlan 1 ip address 12.12.1.1 255.255.255.0

    interface vlan 2 ip address 12.12.2.1 255.255.255.0

    interface vlan 5 ip address 12.12.5.2 255.255.255.0

    protocol bgp

    router bgp 100

    router bgp 100 bgp fast-external-fallover

    router bgp 100 maximum-paths 2

    router bgp 100 bestpath as-path multipath-relax

    router bgp 100 neighbor my-peer-group peer-group

    router bgp 100 neighbor my-peer-group allowas-in 1

    router bgp 100 network 12.12.5.0 /24

    router bgp 100 bgp listen range 12.12.0.0 /16 peer-group my-peer-group remote-as 200

     

    SX04 switch running-config:

    vlan 1-6

    interface ethernet 1/1 switchport access vlan 3

    interface ethernet 1/2 switchport access vlan 4

    interface ethernet 1/30 switchport access vlan 6

    no spanning-tree

    lldp

    ip routing

    interface vlan 3

    interface vlan 4

    interface vlan 6

    interface vlan 3 ip address 12.12.3.1 255.255.255.0

    interface vlan 4 ip address 12.12.4.1 255.255.255.0

    interface vlan 6 ip address 12.12.6.2 255.255.255.0

    protocol bgp

    router bgp 100

    router bgp 100 bgp fast-external-fallover

    router bgp 100 maximum-paths 2

    router bgp 100 bestpath as-path multipath-relax

    router bgp 100 neighbor my-peer-group peer-group

    router bgp 100 neighbor my-peer-group allowas-in 1

    router bgp 100 network 12.12.6.0 /24

    router bgp 100 bgp listen range 12.12.0.0 /16 peer-group my-peer-group remote-as 200

     

    SX05 switch running-config:

     

    vlan 1-6

    interface ethernet 1/1 switchport access vlan 1

    interface ethernet 1/2 switchport access vlan 3

    no spanning-tree

    lldp

    ip routing

    interface vlan 1

    interface vlan 3

    interface vlan 1 ip address 12.12.1.2 255.255.255.0

    interface vlan 3 ip address 12.12.3.2 255.255.255.0

    protocol bgp

    router bgp 200

    router bgp 200 bgp fast-external-fallover

    router bgp 200 neighbor my-peer-group peer-group

    router bgp 200 bgp listen range 12.12.0.0 /16 peer-group my-peer-group remote-as 100

     

     

    SX06 switch running-config:

    vlan 1-6

    interface ethernet 1/1 switchport access vlan 2

    interface ethernet 1/2 switchport access vlan 4

    no spanning-tree

    lldp

    ip routing

    interface vlan 2

    interface vlan 4

    interface vlan 2 ip address 12.12.2.2 255.255.255.0

    interface vlan 4 ip address 12.12.4.2 255.255.255.0

    protocol bgp

    router bgp 200

    router bgp 200 bgp fast-external-fallover

    router bgp 200 neighbor my-peer-group peer-group

    router bgp 200 bgp listen range 12.12.0.0 /16 peer-group my-peer-group remote-as 100