297
[PE1-vpn-instance-a] quit
# Create service loopback group 1 and specify its service type as multicast tunnel.
[PE1] 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.
[PE1] interface gigabitethernet1/0/3
[PE1-GigabitEthernet1/0/3] undo stp enable
[PE1-GigabitEthernet1/0/3] undo ndp enable
[PE1-GigabitEthernet1/0/3] undo lldp enable
[PE1-GigabitEthernet1/0/3] port service-loopback group 1
[PE1-GigabitEthernet1/0/3] quit
# Assign an IP address to VLAN-interface 30, and enable PIM-SM and LDP capability on the
interface.
[PE1] interface vlan-interface 30
[PE1-Vlan-interface30] ip address 192.168.1.1 24
[PE1-Vlan-interface30] pim sm
[PE1-Vlan-interface30] mpls
[PE1-Vlan-interface30] mpls ldp
[PE1-Vlan-interface30] quit
# Bind VLAN-interface 20 with VPN instance
a
, assign an IPv6 address to the interface and
enable IPv6 PIM-SM.
[PE1] interface vlan-interface 20
[PE1-Vlan-interface20] ip binding vpn-instance a
[PE1-Vlan-interface20] ipv6 address 2001::2 64
[PE1-Vlan-interface20] pim ipv6 sm
[PE1-Vlan-interface20] quit
# Assign an IP address to Loopback 1, and enable PIM-SM.
[PE1] interface loopback 1
[PE1-LoopBack1] ip address 1.1.1.1 32
[PE1-LoopBack1] pim sm
[PE1-LoopBack1] quit
# Configure BGP.
[PE1] bgp 100
[PE1-bgp] peer 3.3.3.3 as-number 100
[PE1-bgp] peer 3.3.3.3 connect-interface loopback 1
[PE1–bgp] ipv6-family vpn-instance a
[PE1-bgp-ipv6-a] import-route ripng 1
[PE1-bgp-ipv6-a] import-route direct
[PE1-bgp-ipv6-a] quit
[PE1–bgp] ipv6-family vpnv6
[PE1–bgp-af-vpnv6] peer 3.3.3.3 enable
[PE1–bgp-af-vpnv6] quit
[PE1–bgp] quit
With BGP peers configured on PE 1, the interface MTI 0 automatically obtains an IPv6 address,
which is the loopback interface address specified in the BGP peer configuration. The PIM mode
running on MTI 0 is the same as on the interface in VPN instance
a
.
# Configure OSPF.
[PE1] ospf 1