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

Configuring BGP EVPN VXLANv6 Example: Configuring BGP EVPN VXLAN with IPv6 Underlay VTEP 1 VTEP 2 VTEP 3 ip address 172.16.254.3 255.255.255.255 ipv6 ospf 1 area 0 ! interface GigabitEthernet1/0/1 no switchport ipv6 address fc00:172:16:13::3/64 ipv6 enable ipv6 ospf 1 area 0 ipv6 ospf network point-to-point ! interface GigabitEthernet1/0/2 no switchport ipv6 address fc00:172:16:23::3/64 ipv6 enable ipv6 ospf 1 area 0 ipv6 ospf network point-to-point ! interface GigabitEthernet1/0/4 switchport access vlan 101 switchport mode access ! interface GigabitEthernet1/0/5 switchport access vlan 102 switchport mode access ! ipv6 router ospf 1 router-id 172.16.255.3 !

router bgp 65001 bgp router-id 172.16.255.3 neighbor fc00:172:16:255::1 remote-as 65001 neighbor fc00:172:16:255::1 update-source Loopback0 neighbor fc00:172:16:255::2 remote-as 65001 neighbor fc00:172:16:255::2 update-source Loopback0 ! address-family l2vpn evpn neighbor fc00:172:16:255::1 activate neighbor fc00:172:16:255::1 send-community both neighbor fc00:172:16:255::2 activate neighbor fc00:172:16:255::2 send-community both exit-address-family ! address-family ipv4 vrf green advertise l2vpn evpn redistribute connected exit-address-family ! address-family ipv6 vrf green redistribute connected ip address 172.16.254.4 255.255.255.255 ipv6 ospf 1 area 0 !

interface GigabitEthernet1/0/1 no switchport 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 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 ! ipv6 router ospf 1 router-id 172.16.255.4 !

router bgp 65001 bgp router-id 172.16.255.4 neighbor fc00:172:16:255::1 remote-as 65001 neighbor fc00:172:16:255::1 update-source Loopback0 neighbor fc00:172:16:255::2 remote-as 65001 neighbor fc00:172:16:255::2 update-source Loopback0 ! address-family l2vpn evpn neighbor fc00:172:16:255::1 activate neighbor fc00:172:16:255::1 send-community both neighbor fc00:172:16:255::2 activate neighbor fc00:172:16:255::2 send-community both exit-address-family ! address-family ipv4 vrf green advertise l2vpn evpn redistribute connected exit-address-family ! fc00:172:16:254::5/128 ip address 172.16.254.5 255.255.255.255 ipv6 ospf 1 area 0 !

interface GigabitEthernet1/0/1 no switchport 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 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 ! ipv6 router ospf 1 router-id 172.16.255.5 !

router bgp 65001 bgp router-id 172.16.255.5 neighbor fc00:172:16:255::1 remote-as 65001 neighbor fc00:172:16:255::1 update-source Loopback0 neighbor fc00:172:16:255::2 remote-as 65001 neighbor fc00:172:16:255::2 update-source Loopback0 ! address-family l2vpn evpn neighbor fc00:172:16:255::1 activate neighbor fc00:172:16:255::1 send-community both neighbor fc00:172:16:255::2 activate neighbor fc00:172:16:255::2 send-community both exit-address-family ! address-family ipv4 vrf green advertise l2vpn evpn redistribute connected exit-address-family Configuring BGP EVPN VXLANv6 14