234
[PE3-HundredGigE1/0/4] port service-loopback group 1
[PE3-HundredGigE1/0/4] 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 an 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 IP multicast routing for VPN instance
a
.
[PE3] multicast routing vpn-instance a
[PE3-mrib-a] quit
# Create an MD for VPN instance
a
.
[PE3] multicast-domain vpn-instance a
# Create an MD IPv4 address family for VPN instance
a
.
[PE3-md-a] address-family ipv4
# Specify the default-group, the MD source interface, and the data-group range for VPN
instance
a
.
[PE3-md-a-ipv4] default-group 239.1.1.1
[PE3-md-a-ipv4] source loopback 1
[PE3-md-a-ipv4] data-group 225.2.2.0 28
[PE3-md-a-ipv4] quit
[PE3-md-a] quit
# Create a VPN instance named
b
, and configure an 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
# Enable IP multicast routing for VPN instance
b
.
[PE3] multicast routing vpn-instance b
[PE3-mrib-b] quit
# Create an MD for VPN instance
b
.
[PE3] multicast-domain vpn-instance b
# Create an MD IPv4 address family for VPN instance
b
.
[PE3-md-b] address-family ipv4
# Specify the default-group, the MD source interface, and the data-group range for VPN
instance
b
.
[PE3-md-b-ipv4] default-group 239.2.2.2
[PE3-md-b-ipv4] source loopback 1
[PE3-md-b-ipv4] data-group 225.4.4.0 28
[PE3-md-b-ipv4] quit
[PE3-md-b] quit
# Assign an IP address to VLAN-interface 19.
[PE3] interface vlan-interface 19