298
[PE1-ospf-1] area 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] quit
# Configure RIPng.
[PE1] ripng 1 vpn-instance a
[PE1-ripng-1] import-route bgp4+
[PE1-ripng-1] quit
[PE1] interface vlan-interface 20
[PE1-Vlan-interface20] ripng 1 enable
[PE1-Vlan-interface20] quit
2.
Configure PE 2:
# Configure a Router ID, enable IP multicast routing on the public network, configure an MPLS
LSR ID, and enable the LDP capability.
<PE2> system-view
[PE2] router id 3.3.3.3
[PE2] multicast routing-enable
[PE2] mpls lsr-id 3.3.3.3
[PE2] mpls
[PE2-mpls] quit
[PE2] mpls ldp
[PE2-mpls-ldp] quit
# Enable IPv6 forwarding, create VPN instance
a
, configure an RD and route target attributes
for it.
[PE2] ipv6
[PE2] ip vpn-instance a
[PE2-vpn-instance-a] route-distinguisher 100:1
[PE2-vpn-instance-a] vpn-target 100:1 export-extcommunity
[PE2-vpn-instance-a] vpn-target 100:1 import-extcommunity
# Enable IP multicast routing and IPv6 multicast routing in VPN instance
a
, configure a
share-group address, and associate an MTI with the VPN instance.
[PE2-vpn-instance-a] multicast routing-enable
[PE2-vpn-instance-a] multicast ipv6 routing-enable
[PE2-vpn-instance-a] multicast-domain share-group 239.1.1.1 binding mtunnel 0
[PE2-vpn-instance-a] quit
# Create service loopback group 1 and specify its service type as multicast tunnel.
[PE2] service-loopback group 1 type multicast-tunnel
# Select an available port not in use (GigabitEthernet 1/0/3 in this example), disable STP, LLDP
and NDP for the port, and add the port to service loopback group 1.
[PE2] interface gigabitethernet1/0/3
[PE2-GigabitEthernet1/0/3] undo stp enable
[PE2-GigabitEthernet1/0/3] undo ndp enable
[PE2-GigabitEthernet1/0/3] undo lldp enable
[PE2-GigabitEthernet1/0/3] port service-loopback group 1
[PE2-GigabitEthernet1/0/3] quit
# Assign an IP address to VLAN-interface 40, and enable PIM-SM and LDP capability on the
interface.