Configuring Optimized Layer 2 Overlay Multicast Example 6: Configuring Optimized Layer 2 Overlay Multicast Interworking with External Network for IPv4 and IPv6 VTEP1 CGW VTEP3 switchport access vlan 102 switchport mode access ! interface GigabitEthernet1/0/10 switchport access vlan 101 switchport mode access ! interface nve1 no ip address source-interface Loopback1 host-reachability protocol bgp member vni 10101 ingress-replication member vni 10102 ingress-replication ! router ospf 1 router-id 172.16.255.3 !
router bgp 65001 bgp log-neighbor-changes no bgp default ipv4-unicast neighbor 172.16.255.1 remote-as 65001 neighbor 172.16.255.1 update-source Loopback0 neighbor 172.16.255.2 remote-as 65001 neighbor 172.16.255.2 update-source Loopback0 ! address-family ipv4 exit-address-family ! address-family l2vpn evpn neighbor 172.16.255.1 activate neighbor 172.16.255.1 send-community both neighbor 172.16.255.2 activate neighbor 172.16.255.2 send-community both exit-address-family ! end interface Loopback1 ip address 172.16.254.4 255.255.255.255 ip ospf 1 area 0 ! interface GigabitEthernet1/0/1 no switchport ip address 172.16.14.4 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 0 !
interface GigabitEthernet1/0/2 no switchport ip address 172.16.24.4 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 0 ! interface GigabitEthernet1/0/5 no switchport mtu 1500 vrf forwarding green ip address 192.168.1.1 255.255.255.0 ip pim sparse-mode ip ospf network point-to-point ip ospf 2 area 0 ipv6 address 2001:192:168:1::1/64 ospfv3 2 network point-to-point ospfv3 2 ipv6 area 0 ! interface GigabitEthernet1/0/10 switchport access vlan 101 switchport mode access ! interface GigabitEthernet1/0/11 switchport access vlan 102 switchport mode access spanning-tree portfast !
interface Vlan101 vrf forwarding green ip address 10.1.101.1 255.255.255.0 ip pim sparse-mode ipv6 address 2001:10:1:101::1/64 ! interface Vlan102 vrf forwarding green ip address 10.1.102.1 255.255.255.0 ip pim sparse-mode ip igmp version 3 ipv6 address 2001:10:1:102::1/64 ! ! interface TenGigabitEthernet1/0/10 switchport access vlan 101 switchport mode access ! interface TenGigabitEthernet1/0/11 switchport access vlan 102 switchport mode access ! interface nve1 no ip address source-interface Loopback1 host-reachability protocol bgp member vni 10101 ingress-replication member vni 10102 ingress-replication ! router ospf 1 router-id 172.16.255.6 !
router bgp 65001 bgp log-neighbor-changes no bgp default ipv4-unicast neighbor 172.16.255.1 remote-as 65001 neighbor 172.16.255.1 update-source Loopback0 neighbor 172.16.255.2 remote-as 65001 neighbor 172.16.255.2 update-source Loopback0 ! address-family ipv4 exit-address-family ! address-family l2vpn evpn neighbor 172.16.255.1 activate neighbor 172.16.255.1 send-community both neighbor 172.16.255.2 activate neighbor 172.16.255.2 send-community both exit-address-family ! end Configuring Optimized Layer 2 Overlay Multicast 141