cisco IOS XE — Example: Configuring BGP EVPN VXLAN with Dual Stack Underlay

Configuring BGP EVPN VXLANv6 Example: Configuring BGP EVPN VXLAN with Dual Stack Underlay VTEP 1 VTEP 2 VTEP 3 255.255.255.255 ip pim sparse-mode ip ospf 1 area 0 ! interface GigabitEthernet1/0/1 no switchport ip address 172.16.13.3 255.255.255.0 ip pim sparse-mode ip ospf network point-to-point ip ospf 1 area 0 ! interface GigabitEthernet1/0/2 no switchport ip address 172.16.23.3 255.255.255.0 ip pim sparse-mode ip ospf network point-to-point ip ospf 1 area 0 ! interface GigabitEthernet1/0/4 switchport access vlan 101 switchport mode access ! interface GigabitEthernet1/0/5 switchport access vlan 102 switchport mode access !

interface Vlan101 vrf forwarding green ip address 10.1.101.1 255.255.255.0 ipv6 address FD00:10:1:101::1/64 ipv6 enable ! interface Vlan102 vrf forwarding green ip address 10.1.102.1 255.255.255.0 ipv6 address FD00:10:1:102::1/64 ipv6 enable ! interface Vlan901 vrf forwarding green ip unnumbered Loopback1 ipv6 enable no autostate ! interface nve1 no ip address source-interface Loopback1 host-reachability protocol bgp member vni 10101 mcast-group 225.0.0.101 member vni 10102 ingress-replication member vni 50901 vrf green ! router ospf 1 router-id 172.16.255.3 FC00:172:16:255::4/128 ipv6 ospf 1 area 0 !

interface Loopback1 ip address 172.16.254.4 255.255.255.255 ip pim sparse-mode ip ospf 1 area 0 ipv6 address FC00:172:16:254::4/128 ipv6 ospf 1 area 0 ! interface GigabitEthernet1/0/1 no switchport ip address 172.16.14.4 255.255.255.0 ip pim sparse-mode ip ospf network point-to-point ip ospf 1 area 0 ipv6 address FC00:172:16:14::4/64 ipv6 enable ipv6 ospf 1 area 0 ipv6 ospf network point-to-point ! interface GigabitEthernet1/0/2 no switchport ip address 172.16.24.4 255.255.255.0 ip pim sparse-mode ip ospf network point-to-point ip ospf 1 area 0 ipv6 address FC00:172:16:24::4/64 ipv6 enable ipv6 ospf 1 area 0 ipv6 ospf network point-to-point !

interface GigabitEthernet1/0/11 switchport access vlan 101 switchport mode access ! interface GigabitEthernet1/0/12 switchport access vlan 102 switchport mode access ! interface Vlan101 vrf forwarding green ip address 10.1.101.1 255.255.255.0 ipv6 address FD00:10:1:101::1/64 ipv6 enable ! interface Vlan102 vrf forwarding green ip address 10.1.102.1 255.255.255.0 FC00:172:16:255::5/128 ipv6 ospf 1 area 0 ! interface Loopback1 ip address 172.16.254.5 255.255.255.255 ip pim sparse-mode ip ospf 1 area 0 ipv6 address FC00:172:16:254::5/128 ipv6 ospf 1 area 0 !

interface GigabitEthernet1/0/1 no switchport ip address 172.16.15.5 255.255.255.0 ip pim sparse-mode ip ospf network point-to-point ip ospf 1 area 0 ipv6 address FC00:172:16:15::5/64 ipv6 enable ipv6 ospf 1 area 0 ipv6 ospf network point-to-point ! interface GigabitEthernet1/0/2 no switchport ip address 172.16.25.5 255.255.255.0 ip pim sparse-mode ip ospf network point-to-point ip ospf 1 area 0 ipv6 address FC00:172:16:25::5/64 ipv6 enable ipv6 ospf 1 area 0 ipv6 ospf network point-to-point ! interface GigabitEthernet1/0/16 switchport access vlan 101 switchport mode access ! interface GigabitEthernet1/0/17 switchport access vlan 102 switchport mode access !

interface Vlan101 vrf forwarding green ip address 10.1.101.1 255.255.255.0 ipv6 address FD00:10:1:101::1/64 ipv6 enable ! interface Vlan102 vrf forwarding green ip address 10.1.102.1 255.255.255.0 Configuring BGP EVPN VXLANv6 51