cisco — Example 5: Configuring Optimized Layer 2 Overlay Multicast Interworking with External Network for IPv4

Configuring Optimized Layer 2 Overlay Multicast Example 5: Configuring Optimized Layer 2 Overlay Multicast Interworking with External Network for IPv4 VTEP1 CGW VTEP3 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 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 ! 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 ! interface Vlan102 vrf forwarding green ip address 10.1.102.1 255.255.255.0 ip pim sparse-mode ip igmp version 3 ! interface nve1 no ip address source-interface Loopback1 host-reachability protocol bgp member vni 10101 ingress-replication member vni 10102 ingress-replication ! router ospf 2 vrf green redistribute connected redistribute bgp 65001 ! router ospf 1 router-id 172.16.255.4 !

router bgp 65001 bgp log-neighbor-changes 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 113