299
[PE2] interface vlan-interface 40
[PE2-Vlan-interface40] ip address 192.168.2.2 24
[PE2-Vlan-interface40] pim sm
[PE2-Vlan-interface40] mpls
[PE2-Vlan-interface40] mpls ldp
[PE2-Vlan-interface40] quit
# Bind VLAN-interface 50 with VPN instance
a
, assign an IPv6 address to the interface and
enable IPv6 PIM-SM.
[PE2] interface vlan-interface 50
[PE2-Vlan-interface50] ip binding vpn-instance a
[PE2-Vlan-interface50] ipv6 address 4001::1 64
[PE2-Vlan-interface50] pim ipv6 sm
[PE2-Vlan-interface50] quit
# Assign an IP address to Loopback 1, and enable PIM-SM.
[PE2] interface loopback 1
[PE2-LoopBack1] ip address 3.3.3.3 32
[PE2-LoopBack1] pim sm
[PE2-LoopBack1] quit
# Configure BGP.
[PE2] bgp 100
[PE2-bgp] peer 1.1.1.1 as-number 100
[PE2-bgp] peer 1.1.1.1 connect-interface loopback 1
[PE2–bgp] ipv6-family vpn-instance a
[PE2-bgp-ipv6-a] import-route ripng 1
[PE2-bgp-ipv6-a] import-route direct
[PE2-bgp-ipv6-a] quit
[PE2–bgp] ipv6-family vpnv6
[PE2–bgp-af-vpnv6] peer 1.1.1.1 enable
[PE2–bgp-af-vpnv6] quit
[PE2–bgp] quit
With BGP peers configured on PE 2, the interface MTI 0 automatically obtains an IPv6 address,
which is the loopback interface addresses 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.
[PE2] ospf 1
[PE2-ospf-1] area 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] network 192.168.2.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] quit
# Configure RIPng.
[PE2] ripng 1 vpn-instance a
[PE2-ripng-1] import-route bgp4+
[PE2-ripng-1] quit
[PE2] interface vlan-interface 50
[PE2-Vlan-interface50] ripng 1 enable
[PE2-Vlan-interface50] quit
3.
Configure the P router: