The following diagram highlights the devices configured in this section. Spine1 and Spine4 are configured demonstrating the use of four spines.
- Enter Management Framework CLI (MF-CLI) and configuration mode.
- Change interface naming mode to Standard and add hostname.
- Exit back to the Linux shell to activate the changes.
Spine1 Spine4 sonic-cli configure terminal interface-naming standard hostname Spine1 end exit
sonic-cli configure terminal interface-naming standard hostname Spine4 end exit
- Re-enter the MF-CLI and configuration mode.
- Assign a loopback interface with a unique router ID for each spine.
- Enable IPv6 on the spine downlinks to support unnumbered BGP point-to-point links and enable the interfaces.
Spine1 Spine4 sonic-cli configure terminal interface loopback 0 description router-id ip address 10.0.1.1/32 exit interface Eth 1/1 description Leaf1 ipv6 enable no shutdown interface Eth 1/2 description Leaf2 ipv6 enable no shutdown interface Eth 1/25 description BLeaf25 ipv6 enable no shutdown interface Eth 1/26 description BLeaf26 ipv6 enable no shutdown exit
sonic-cli configure terminal interface loopback 0 description router-id ip address 10.0.1.4/32 exit interface Eth 1/1 description Leaf1 ipv6 enable no shutdown interface Eth 1/2 description Leaf2 ipv6 enable no shutdown interface Eth 1/25 description BLeaf25 ipv6 enable no shutdown interface Eth 1/26 description BLeaf26 ipv6 enable no shutdown exit
- Configure the BGP router with ECMP enabled.
- Add the IPv4 unicast address-family to advertise the router-ID and paths for two leafs.
- Configure the BGP leaf peer-group. Set timers and enable unnumbered BGP and BFD.
- Activate both IPv4 unicast and EVPN address families for the peer group.
- Assign the leaf neighbor interfaces to the peer-group.
- Save the configuration.
Spine1 Spine4 router bgp 65000 router-id 10.0.1.1 bestpath as-path multipath-relax address-family ipv4 unicast redistribute connected maximum-paths 2 exit peer-group LEAF advertisement-interval 5 timers 3 9 remote-as external capability extended-nexthop bfd address-family ipv4 unicast activate exit address-family l2vpn evpn activate exit exit neighbor interface Eth 1/1 peer-group LEAF exit neighbor interface Eth 1/2 peer-group LEAF exit neighbor interface Eth 1/25 peer-group LEAF exit neighbor interface Eth 1/26 peer-group LEAF exit exit end write memory
router bgp 65000 router-id 10.0.1.4 bestpath as-path multipath-relax address-family ipv4 unicast redistribute connected maximum-paths 2 exit peer-group LEAF advertisement-interval 5 timers 3 9 remote-as external capability extended-nexthop bfd address-family ipv4 unicast activate exit address-family l2vpn evpn activate exit exit neighbor interface Eth 1/1 peer-group LEAF exit neighbor interface Eth 1/2 peer-group LEAF exit neighbor interface Eth 1/25 peer-group LEAF exit neighbor interface Eth 1/26 peer-group LEAF exit exit end write memory