24
# On CE a2, enable IP multicast routing, enable PIM-SM on VLAN-interface 12, and enable
IGMP on VLAN-interface 20.
[CEa2] multicast routing
[CEa2-mrib] quit
[CEa2] interface vlan-interface 12
[CEa2-Vlan-interface12] pim sm
[CEa2-Vlan-interface12] quit
[CEa2] interface vlan-interface 20
[CEa2-Vlan-interface20] igmp enable
[CEa2-Vlan-interface20] quit
# On PE 1, create VPN instance
customerA
.
[PE1] ip vpn-instance customerA
[PE1-vpn-instance-customerA] route-distinguisher 11:11
[PE1-vpn-instance-customerA] vpn-target 3:3 import-extcommunity
[PE1-vpn-instance-customerA] vpn-target 3:3 export-extcommunity
[PE1-vpn-instance-customerA] quit
# Associate VLAN-interface 11 with VPN instance
customerA
.
[PE1] interface vlan-interface 11
[PE1-Vlan-interface11] ip binding vpn-instance customerA
[PE1-Vlan-interface11] quit
# Enable IP multicast routing for VPN instance
customerA
, and enable PIM-SM on VLAN-interface
11.
[PE1] multicast routing vpn-instance customerA
[PE1-mrib-customerA] quit
[PE1] interface vlan-interface 11
[PE1-Vlan-interface11] pim sm
[PE1-Vlan-interface11] quit
# On PE 2, create VPN instance
customerA
.
[PE2] ip vpn-instance customerA
[PE2-vpn-instance-customerA] route-distinguisher 12:12
[PE2-vpn-instance-customerA] vpn-target 3:3 import-extcommunity
[PE2-vpn-instance-customerA] vpn-target 3:3 export-extcommunity
[PE2-vpn-instance] quit
# Associate VLAN-interface 12 with VPN instance
customerA
.
[PE2] interface vlan-interface 12
[PE2-Vlan-interface12] ip binding vpn-instance customerA
[PE2-Vlan-interface12] quit
# Enable IP multicast routing for VPN instance
customerA
, and enable PIM-SM on VLAN-interface
12.
[PE2] multicast routing vpn-instance customerA
[PE2-mrib-customerA] quit
[PE2] interface vlan-interface 12
[PE2-Vlan-interface12] pim sm
[PE2-Vlan-interface12] quit
6.
Create the same MD for the ASs, and specify the default-group, MD source interface, and
data-group for the MD: