cisco — Example 1: Configuring Optimized Layer 2 Overlay Multicast for IPv4 with Ingress Replication

Configuring Optimized Layer 2 Overlay Multicast Example 1: Configuring Optimized Layer 2 Overlay Multicast for IPv4 with Ingress Replication VTEP 1 CGW VTEP 3 Leaf-01#show running-config hostname Leaf-01 ! ip routing ! ip igmp snooping querier version 3 ip igmp snooping querier address 172.16.254.3 ip igmp snooping querier ! l2vpn evpn replication-type ingress multicast advertise ! l2vpn evpn instance 101 vlan-based encapsulation vxlan ! l2vpn evpn instance 102 vlan-based encapsulation vxlan ! vlan configuration 101 member evpn-instance 101 vni 10101 vlan configuration 102 member evpn-instance 102 vni 10102 ! interface Loopback0 ip address 172.16.255.3 255.255.255.255 ip ospf 1 area 0 !

interface Loopback1 ip address 172.16.254.3 255.255.255.255 ip ospf 1 area 0 ! interface GigabitEthernet1/0/1 no switchport ip address 172.16.13.3 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.23.3 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 0 ! interface GigabitEthernet1/0/5 switchport access vlan 102 switchport mode access ! interface GigabitEthernet1/0/10 switchport access vlan 101 switchport mode access Leaf-02#show running-config hostname Leaf-02 ! vrf definition green rd 1:1 !

address-family ipv4 route-target export 1:1 route-target import 1:1 route-target export 1:1 stitching route-target import 1:1 stitching exit-address-family ! ip routing ! ip multicast-routing vrf green ! l2vpn evpn replication-type ingress router-id Loopback1 default-gateway advertise multicast advertise ! l2vpn evpn instance 101 vlan-based encapsulation vxlan ! l2vpn evpn instance 102 vlan-based encapsulation vxlan ! vlan configuration 101 member evpn-instance 101 vni 10101 vlan configuration 102 member evpn-instance 102 vni 10102 ! interface Loopback0 ip address 172.16.255.4 255.255.255.255 ip ospf 1 area 0 ! interface Loopback1 ip address 172.16.254.4 255.255.255.255 ip ospf 1 area 0 !

interface Loopback255 vrf forwarding green ip address 10.1.255.4 255.255.255.255 ip pim sparse-mode ! 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 Leaf-03#show running-config end hostname Leaf-03 ! ip routing ! ip igmp snooping querier version 3 ip igmp snooping querier address 172.16.254.6 ip igmp snooping querier ! l2vpn evpn replication-type ingress multicast advertise ! l2vpn evpn instance 101 vlan-based encapsulation vxlan ! l2vpn evpn instance 102 vlan-based encapsulation vxlan ! vlan configuration 101 member evpn-instance 101 vni 10101 vlan configuration 102 member evpn-instance 102 vni 10102 !

interface Loopback0 ip address 172.16.255.6 255.255.255.255 ip ospf 1 area 0 ! interface Loopback1 ip address 172.16.254.6 255.255.255.255 ip ospf 1 area 0 ! interface TenGigabitEthernet1/0/1 no switchport ip address 172.16.16.6 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 0 ! interface TenGigabitEthernet1/0/2 no switchport ip address 172.16.26.6 255.255.255.0 ip ospf network point-to-point ip ospf 1 area 0 ! interface TenGigabitEthernet1/0/10 switchport access vlan 101 switchport mode access ! interface Configuring Optimized Layer 2 Overlay Multicast 13