192
[PE3] multicast routing vpn-instance a
[PE3-mrib-a] quit
# Create the MD for VPN instance a, and specify the default-group, MD source interface, and
data-group address range for it.
[PE3] multicast-domain vpn-instance a
[PE3-md-a] default-group 239.1.1.1
[PE3-md-a] source loopback 1
[PE3-md-a] data-group 225.2.2.0 28
[PE3-md-a] quit
# Create VPN instance b, and configure an RD and route target attributes for it.
[PE3] ip vpn-instance b
[PE3-vpn-instance-b] route-distinguisher 200:1
[PE3-vpn-instance-b] vpn-target 200:1 export-extcommunity
[PE3-vpn-instance-b] vpn-target 200:1 import-extcommunity
[PE3-vpn-instance-b] quit
# Create service loopback group 1, and specify its type as multicast tunnel.
[PE3] service-loopback group 1 type multicast-tunnel
# Select an unused interface, and assign the interface to service loopback group 1.
[PE3] interface ten-gigabitethernet1/1/7
[PE3-Ten-GigabitEthernet1/1/7] port service-loopback group 1
[PE3-Ten-GigabitEthernet1/1/7] quit
# Enable IP multicast routing in VPN instance b.
[PE3] multicast routing vpn-instance b
[PE3-mrib-b] quit
# Create the MD for VPN instance b, and specify the default-group, MD source interface, and
data-group address range for it.
[PE3] multicast-domain vpn-instance b
[PE3-md-b] default-group 239.2.2.2
[PE3-md-b] source loopback 1
[PE3-md-b] data-group 225.4.4.0 28
[PE3-md-b] quit
# Assign an IP address to the public network interface VLAN-interface 19, and enable PIM-SM,
MPLS, and LDP on it.
[PE3] interface vlan-interface 19
[PE3-Vlan-interface19] ip address 192.168.8.1 24
[PE3-Vlan-interface19] pim sm
[PE3-Vlan-interface19] mpls enable
[PE3-Vlan-interface19] mpls ldp enable
[PE3-Vlan-interface19] quit
# Bind VLAN-interface 17 with VPN instance a, assign an IP address to VLAN-interface 17, and
enable PIM-SM on the interface.
[PE3] interface vlan-interface 17
[PE3-Vlan-interface17] ip binding vpn-instance a
[PE3-Vlan-interface17] ip address 10.110.5.1 24
[PE3-Vlan-interface17] pim sm
[PE3-Vlan-interface17] quit