
221
[PE2-ospfv3-2] import-route direct
[PE2-ospfv3-2] area 0
[PE2-ospfv3-2-area-0.0.0.0] quit
[PE2] ospfv3 3 vpn-instance b
[PE2-ospfv3-3] router-id 3.3.3.3
[PE2-ospfv3-3] import-route bgp4+
[PE2-ospfv3-3] import-route direct
[PE2-ospfv3-3] area 0
[PE2-ospfv3-3-area-0.0.0.0] quit
[PE2-ospfv3-3] quit
3.
Configure PE 3:
# Configure a global RD, and enable IP multicast routing on the public network.
<PE3> system-view
[PE3] router id 1.1.1.3
[PE3] multicast routing
[PE3-mrib] quit
# Configure an LSR ID, and enable LDP globally.
[PE3] mpls lsr-id 1.1.1.3
[PE3] mpls ldp
[PE3-ldp] quit
# Create a VPN instance named
a
, and configure the RD and route targets for the VPN
instance.
[PE3] ip vpn-instance a
[PE3-vpn-instance-a] route-distinguisher 100:1
[PE3-vpn-instance-a] vpn-target 100:1 export-extcommunity
[PE3-vpn-instance-a] vpn-target 100:1 import-extcommunity
[PE3-vpn-instance-a] quit
# Enable IPv6 multicast routing for VPN instance
a
.
[PE3] ipv6 multicast routing vpn-instance a
[PE3-mrib6-a] quit
# Create an MD for VPN instance
a
.
[PE3] multicast-domain vpn-instance a
# Create an MD IPv6 address family for VPN instance
a
.
[PE3-md-a] address-family ipv6
# Specify the default-group, the MD source interface, and the data-group range for VPN
instance
a
.
[PE3-md-a-ipv6] default-group 239.1.1.1
[PE3-md-a-ipv6] source loopback 1
[PE3-md-a-ipv6] data-group 225.2.2.0 28
[PE3-md-a-ipv6] quit
[PE3-md-a] quit
# Create a VPN instance named
b
, and configure the RD and route targets for the VPN
instance.
[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