- Spine's Configuration
feature ospf
feature pim
ip pim rp-address 192.168.1.100 group-list 224.0.0.0/4
ip pim ssm range 232.0.0.0/8
interface Ethernet1/1 //downlink to Leaf-1
no switchport
ip address 192.168.1.9/30
ip router ospf 1 area 0.0.0.0
ip pim sparse-mode
no shutdown
interface Ethernet1/2 //downlink to Leaf-2
no switchport
ip address 192.168.1.5/30
ip router ospf 1 area 0.0.0.0
ip pim sparse-mode
no shutdown
interface loopback0
ip address 192.168.1.100/32
ip router ospf 1 area 0.0.0.0
ip pim sparse-mode
router ospf 1
router-id 192.168.1.100
- Leaf-1's Configuration
feature ospf
feature pim
feature vn-segment-vlan-based //Configures the global mode for all VxLAN bridge domains
feature nv overlay //Enables the VxLAN feature
ip pim rp-address 192.168.1.100 group-list 224.0.0.0/4
ip pim ssm range 232.0.0.0/8
vlan 10 //Mapping VLAN to VxLAN VNI
vn-segment 160010
vlan 20
vn-segment 160020
interface nve1 //Creating and Configuring an NVE Interface and Associate VNIs
source-interface loopback0
member vni 160010 mcast-group 231.1.1.1
member vni 160020 mcast-group 231.1.1.1
no shutdown
interface Ethernet1/1 //uplink to Spine
no switchport
ip address 192.168.1.10/30
ip router ospf 1 area 0.0.0.0
ip pim sparse-mode
no shutdown
interface Ethernet1/2 //downlink to SW1
switchport
switchport access vlan 10
no shutdown
interface loopback0
ip address 192.168.2.5/32
ip router ospf 1 area 0.0.0.0
ip pim sparse-mode
router ospf 1
router-id 192.168.2.5
- Leaf-2's Configuration
feature ospf
feature pim
feature vn-segment-vlan-based
feature nv overlay
ip pim rp-address 192.168.1.100 group-list 224.0.0.0/4
ip pim ssm range 232.0.0.0/8
vlan 10
vn-segment 160010
vlan 20
vn-segment 160020
interface nve1
source-interface loopback0
member vni 160010 mcast-group 231.1.1.1
member vni 160020 mcast-group 231.1.1.1
no shutdown
interface Ethernet1/2 //uplink to Spine
no switchport
ip address 192.168.1.6/30
ip router ospf 1 area 0.0.0.0
ip pim sparse-mode
no shutdown
interface Ethernet1/1 //downlink to SW2
switchport
switchport access vlan 10
no shutdown
interface loopback0
ip address 192.168.2.3/32
ip router ospf 1 area 0.0.0.0
ip pim sparse-mode
router ospf 1
router-id 192.168.2.3
- SW1's Configuration
interface Ethernet0/0 //uplink to Leaf-1
switchport access vlan 1
interface vlan 1
ip address 172.16.99.111 255.255.255.0
no shutdown
- SW2's Configuration
interface Ethernet0/0 //uplink to Leaf-2
switchport access vlan 1
interface vlan 1
ip address 172.16.99.222 255.255.255.0
no shutdown