243
Configuration procedure
1.
Configure PE 1:
# Configure a global router ID, and enable IP multicast routing on the public network.
<PE1> system-view
[PE1] router id 1.1.1.1
[PE1] multicast routing
[PE1-mrib] quit
# Create service loopback group 1, and specify the multicast tunnel service for the group.
[PE1] service-loopback group 1 type multicast-tunnel
# Assign HundredGigE 1/0/4 to service loopback group 1. The interface does not belong to
VLAN 11, VLAN 12, or VLAN 20.
[PE1] interface hundredgige 1/0/4
[PE1-HundredGigE1/0/4] port service-loopback group 1
[PE1-HundredGigE1/0/4] quit
# Configure an LSR ID, and enable LDP globally.
[PE1] mpls lsr-id 1.1.1.1
[PE1] mpls ldp
[PE1-ldp] quit
# Create a VPN instance named
a
, and configure the RD and route targets for the VPN
instance.
[PE1] ip vpn-instance a
[PE1-vpn-instance-a] route-distinguisher 100:1
[PE1-vpn-instance-a] vpn-target 100:1 export-extcommunity
[PE1-vpn-instance-a] vpn-target 100:1 import-extcommunity
[PE1-vpn-instance-a] quit
# Enable IPv6 multicast routing for VPN instance
a
.
[PE1] ipv6 multicast routing vpn-instance a
[PE1-mrib6-a] quit
# Create an MD for VPN instance
a
.
[PE1] multicast-domain vpn-instance a
# Create an MD IPv6 address family for VPN instance
a
.
[PE1-md-a] address-family ipv6
# Specify the default group, the MD source interface, and the data-group range for VPN
instance
a
.
[PE1-md-a-ipv6] default-group 239.1.1.1
[PE1-md-a-ipv6] source loopback 1
[PE1-md-a-ipv6] data-group 225.2.2.0 28
[PE1-md-a-ipv6] quit
[PE1-md-a] quit
# Assign an IP address to VLAN-interface 12.
[PE1] interface vlan-interface 12
[PE1-Vlan-interface12] ip address 192.168.6.1 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 12.
[PE1-Vlan-interface12] pim sm
[PE1-Vlan-interface12] mpls enable
[PE1-Vlan-interface12] mpls ldp enable
[PE1-Vlan-interface12] quit