The following example shows a simple leaf/spine topology with users on VLAN (Virtual LAN)s, red and blue, noted as 1 and 2.
Note
An Advanced Edge license must be installed on all devices.The following commands reserve 64 VLANs, which is the maximum. It is recommended to reserve more than needed, so you can add links without recreating the auto-peering network.
Devices labeled with router IDs 10.255.x.y:
configure vlan default delete ports 1-2 create vlan “red" tag 100 configure vlan red add ports 1 untagged configure vlan "red" ipaddress 10.1.1.1/24 enable ipforwarding vlan "red" create vrrp vlan "red" vrid 1 configure vrrp vlan "red" vrid 1 priority 255 configure vrrp vlan "red" vrid 1 host-mobility on configure vrrp vlan "red" vrid 1 add 10.1.1.254 enable vrrp vlan "red" vrid 1 create vlan "blue" tag 200 configure vlan "blue" ipaddress 10.1.2.1/24 configure vlan blue add ports 2 untagged enable ipforwarding vlan "blue" create vrrp vlan "blue" vrid 1 configure vrrp vlan "blue" vrid 1 priority 255 configure vrrp vlan "blue" vrid 1 host-mobility on configure vrrp vlan "blue" vrid 1 add 10.1.2.254 enable vrrp vlan "blue" vrid 1 create auto-peering bgp vlans 2001-2064 routerid 10.255.1.1 AS-number 4278124801
configure vlan default delete ports 1-2 create vlan “red" tag 100 configure vlan red add ports 1 untagged configure vlan "red" ipaddress 10.1.1.1/24 enable ipforwarding vlan "red" create vrrp vlan "red" vrid 1 configure vrrp vlan "red" vrid 1 priority 255 configure vrrp vlan "red" vrid 1 host-mobility on configure vrrp vlan "red" vrid 1 add 10.1.1.1 enable vrrp vlan "red" vrid 1 create vlan “blue" tag 200 configure vlan "blue" ipaddress 10.1.2.1/24 configure vlan blue add ports 2 untagged enable ipforwarding vlan "blue" create vrrp vlan “blue" vrid 1 configure vrrp vlan "blue" vrid 1 priority 255 configure vrrp vlan "blue" vrid 1 host-mobility on configure vrrp vlan "blue" vrid 1 add 10.1.2.1 enable vrrp vlan "blue" vrid 1 create auto-peering bgp vlans 2001-2064 routerid 10.255.1.2 AS-number 4278124802
# create auto-peering bgp vlans 2001-2064 routerid 10.255.2.1 AS-number 4278125057
# show auto-peering ISSU : In Service Router ID: 10.255.2.1 AS : 4278125057 VLAN Neighbor IP Address Router ID Remote AS --------------- ----------------------------- --------------- ---------- FBRC_VLAN_2001 fe80::204:96ff:fe97:fcd5 10.1.1.1 4278124801 FBRC_VLAN_2002 fe80::204:96ff:fe97:fdd5 10.1.1.2 4278124802 . . . FBRC_VLAN_2064 None
# create auto-peering bgp vlans 2001-2064 routerid 10.255.2.2 AS-number 4278125058
# show auto-peering ISSU : In Service Router ID: 10.255.2.2 AS : 4278125058 VLAN Neighbor IP Address Router ID Remote AS --------------- ----------------------------- --------------- ---------- FBRC_VLAN_2001 fe80::204:96ff:fe97:fcd5 10.1.1.1 4278124801 FBRC_VLAN_2002 fe80::204:96ff:fe97:fdd5 10.1.1.2 4278124802 . . . FBRC_VLAN_2064 None