API Guide

Spine1(config)# interface ethernet1/1/4
Spine1(conf-if-eth1/1/4)# description Spine1-Leaf4
Spine1(conf-if-eth1/1/4)# no switchport
Spine1(conf-if-eth1/1/4)# mtu 9216
Spine1(conf-if-eth1/1/4)# ip address 10.1.2.2/31
Spine1(conf-if-eth1/1/4)# exit
2. Configure BGP neighbors. This example uses passive peering which simplifies neighbor configuration.
Spine1(config)# router bgp 65101
Spine1(config-router-bgp-65101)# router-id 10.0.0.1
Spine1(config-router-bgp-65101)# template passive_v4_pod1
Spine1(config-router-template)# remote-as 65201
Spine1(config-router-template)# listen 10.1.1.0/24
Spine1(config-router-template)# exit
Spine1(config-router-bgp-65101)# template passive_v4_pod2
Spine1(config-router-template)# remote-as 65202
Spine1(config-router-template)# listen 10.1.2.0/24
Spine1(config-router-template)# exit
Spine 2 configuration
1. Configure an IP address on leaf-facing interfaces.
Spine2(config)# interface ethernet1/1/1
Spine2(conf-if-eth1/1/1)# description Spine2-Leaf1
Spine2(conf-if-eth1/1/1)# no switchport
Spine2(conf-if-eth1/1/1)# mtu 9216
Spine2(conf-if-eth1/1/1)# ip address 10.2.1.0/31
Spine2(conf-if-eth1/1/1)# exit
Spine2(config)# interface ethernet1/1/2
Spine2(conf-if-eth1/1/2)# description Spine2-Leaf2
Spine2(conf-if-eth1/1/2)# no switchport
Spine2(conf-if-eth1/1/2)# mtu 9216
Spine2(conf-if-eth1/1/2)# ip address 10.2.1.2/31
Spine2(conf-if-eth1/1/2)# exit
Spine2(config)# interface ethernet1/1/3
Spine2(conf-if-eth1/1/3)# description Spine2-Leaf3
Spine2(conf-if-eth1/1/3)# no switchport
Spine2(conf-if-eth1/1/3)# mtu 9216
Spine2(conf-if-eth1/1/3)# ip address 10.2.2.0/31
Spine2(conf-if-eth1/1/3)# exit
Spine2(config)# interface ethernet1/1/4
Spine2(conf-if-eth1/1/4)# description Spine2-Leaf4
Spine2(conf-if-eth1/1/4)# no switchport
Spine2(conf-if-eth1/1/4)# mtu 9216
Spine2(conf-if-eth1/1/4)# ip address 10.2.2.2/31
Spine2(conf-if-eth1/1/4)# exit
2. Configure BGP neighbors. This example uses passive peering which simplifies neighbor configuration.
Spine2(config)# router bgp 65101
Spine2(config-router-bgp-65101)# router-id 10.0.0.2
Spine2(config-router-bgp-65101)# template passive_v4_pod1
Spine2(config-router-template)# remote-as 65201
Spine2(config-router-template)# listen 10.2.1.0/24
Spine2(config-router-template)# exit
Spine2(config-router-bgp-65101)# template passive_v4_pod2
Spine2(config-router-template)# remote-as 65202
Spine2(config-router-template)# listen 10.2.2.0/24
Spine2(config-router-template)# exit
Leaf 1 configuration
1. Configure an IP address on spine-facing interfaces.
Leaf1(config)# interface ethernet1/1/1
Leaf1(conf-if-eth1/1/1)# description Leaf1-Spine1
Leaf1(conf-if-eth1/1/1)# no switchport
Leaf1(conf-if-eth1/1/1)# mtu 9216
Leaf1(conf-if-eth1/1/1)# ip address 10.1.1.1/31
Leaf1(conf-if-eth1/1/1)# exit
Leaf1(config)# interface ethernet1/1/2
612
Layer 3