API Guide

4. Configure VLT port-channels with ToR 1 and ToR 2.
Leaf2(config)# interface port-channel2
Leaf2(conf-if-po-2)# mtu 9216
Leaf2(conf-if-po-2)# switchport mode trunk
Leaf2(conf-if-po-2)# switchport trunk allowed vlan 201
Leaf2(conf-if-po-2)# vlt-port-channel 2
Leaf2(conf-if-po-2)# exit
Leaf2(config)# interface ethernet1/1/5
Leaf2(conf-if-eth1/1/5)# channel-group 2 mode active
Leaf2(conf-if-eth1/1/5)# exit
Leaf2(config)# interface port-channel3
Leaf2(conf-if-po-3)# mtu 9216
Leaf2(conf-if-po-3)# switchport mode trunk
Leaf2(conf-if-po-3)# switchport trunk allowed vlan 301
Leaf2(conf-if-po-3)# vlt-port-channel 3
Leaf2(conf-if-po-3)# exit
Leaf2(config)# interface ethernet1/1/6
Leaf2(conf-if-eth1/1/6)# channel-group 3 mode active
Leaf2(conf-if-eth1/1/6)# exit
5. Configure the eBGP neighbor with Spine 1 and iBGP neighbor with ToR 1 and ToR 2.
Leaf2(config)# router bgp 65201
Leaf2(config-router-bgp-65201)# router-id 10.2.1.2
Leaf2(config-router-bgp-65201)# neighbor 10.0.1.1
Leaf2(config-router-neighbor)# remote-as 65101
Leaf2(config-router-neighbor)# no shutdown
Leaf2(config-router-neighbor)# exit
Leaf2(config-router-bgp-65201)# neighbor 10.0.2.3
Leaf2(config-router-neighbor)# remote-as 65201
Leaf2(config-router-neighbor)# route-reflector-client
Leaf2(config-router-neighbor)# no shutdown
Leaf2(config-router-neighbor)# address-family ipv4 unicast
Leaf2(config-router-bgp-neighbor-af)# next-hop-self
Leaf2(config-router-bgp-neighbor-af)# exit
Leaf2(config-router-neighbor)# exit
Leaf2(config-router-bgp-65201)# neighbor 10.0.3.3
Leaf2(config-router-neighbor)# remote-as 65201
Leaf2(config-router-neighbor)# route-reflector-client
Leaf2(config-router-neighbor)# no shutdown
Leaf2(config-router-neighbor)# address-family ipv4 unicast
Leaf2(config-router-bgp-neighbor-af)# next-hop-self
Leaf2(config-router-bgp-neighbor-af)# exit
Leaf2(config-router-neighbor)# exit
ToR 1 configuration
1. Configure VLAN interface on which the BGP session has to be formed with VLT peers.
ToR1(config)# interface vlan201
ToR1(conf-if-vl-201)# ip address 10.0.2.3/29
ToR1(conf-if-vl-201)# mtu 9216
ToR1(conf-if-vl-201)# exit
2. Configure a port channel interface between ToR1 and VLT peers. Add it as part of the above created VLAN.
ToR1(config)# interface port-channel2
ToR1(conf-if-po-1)# mtu 9216
ToR1(conf-if-po-1)# switchport mode trunk
ToR1(conf-if-po-1)# switchport trunk allowed vlan 201
ToR1(conf-if-po-1)# exit
ToR1(config)# interface ethernet1/1/1
ToR1(conf-if-eth1/1/1)# channel-group 2 mode active
ToR1(conf-if-eth1/1/1)# exit
ToR1(config)# interface ethernet1/1/2
ToR1(conf-if-eth1/1/2)# channel-group 2 mode active
ToR1(conf-if-eth1/1/2)# exit
Layer 3
609