231
[PE1-ospf-1] area 0.0.0.0
[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] network 192.168.6.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] quit
# Configure RIP.
[PE1] rip 2 vpn-instance a
[PE1-rip-2] network 10.110.1.0 0.0.0.255
[PE1-rip-2] network 10.110.2.0 0.0.0.255
[PE1-rip-2] import-route bgp
[PE1-rip-2] return
2.
Configure PE 2:
# Configure a global router ID, and enable IP multicast routing on the public network.
<PE2> system-view
[PE2] router id 1.1.1.2
[PE2] multicast routing
[PE2-mrib] quit
# Create service loopback group 1, and specify the multicast tunnel service for the group.
[PE2] service-loopback group 1 type multicast-tunnel
# Assign HundredGigE 1/0/4 to service loopback group 1. The interface does not belong to
VLAN 13, VLAN 14, or VLAN 15.
[PE2] interface hundredgige 1/0/4
[PE2-HundredGigE1/0/4] port service-loopback group 1
[PE2-HundredGigE1/0/4] quit
# Configure an MPLS LSR ID, and enable LDP globally.
[PE2] mpls lsr-id 1.1.1.2
[PE2] mpls ldp
[PE2-ldp] quit
# Create a VPN instance named
b
, and configure an RD and route targets for the VPN instance.
[PE2] ip vpn-instance b
[PE2-vpn-instance-b] route-distinguisher 200:1
[PE2-vpn-instance-b] vpn-target 200:1 export-extcommunity
[PE2-vpn-instance-b] vpn-target 200:1 import-extcommunity
[PE2-vpn-instance-b] quit
# Enable IP multicast routing for VPN instance
b
.
[PE2] multicast routing vpn-instance b
[PE2-mrib-b] quit
# Create an MD for VPN instance
b
.
[PE2] multicast-domain vpn-instance b
# Create an MD IPv4 address family for VPN instance
b
.
[PE2-md-b] address-family ipv4
# Specify the default-group, the MD source interface, and the data-group range for VPN
instance
b
.
[PE2-md-b-ipv4] default-group 239.2.2.2
[PE2-md-b-ipv4] source loopback 1
[PE2-md-b-ipv4] data-group 225.4.4.0 28
[PE2-md-b-ipv4] quit
[PE2-md-b] quit