244
# Associate VLAN-interface 20 with VPN instance
a
, and assign an IPv6 address to the
interface.
[PE1] interface vlan-interface 20
[PE1-Vlan-interface20] ip binding vpn-instance a
[PE1-Vlan-interface20] ipv6 address 10:110:1::1 64
# Configure VLAN-interface 20 to run OSPFv3 process 2 in Area 0, and enable MLD on the
interface.
[PE1-Vlan-interface20] ospfv3 2 area 0.0.0.0
[PE1-Vlan-interface20] mld enable
[PE1-Vlan-interface20] quit
# Associate VLAN-interface 11 with VPN instance
a
, and assign an IPv6 address to the
interface.
[PE1] interface vlan-interface 11
[PE1-Vlan-interface11] ip binding vpn-instance a
[PE1-Vlan-interface11] ipv6 address 10:110:2::1 64
# Configure VLAN-interface 11 to run OSPFv3 process 2 in Area 0, and enable IPv6 PIM-SM on
the interface.
[PE1-Vlan-interface11] ospfv3 2 area 0.0.0.0
[PE1-Vlan-interface11] ipv6 pim sm
[PE1-Vlan-interface11] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[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-default] group vpn-g internal
[PE1-bgp-default] peer vpn-g connect-interface loopback 1
[PE1-bgp-default] peer 1.1.1.2 group vpn-g
[PE1-bgp-default] peer 1.1.1.3 group vpn-g
[PE1–bgp-default] ip vpn-instance a
[PE1-bgp-default-a] address-family ipv6
[PE1-bgp-default-ipv6-a] import-route ospfv3 2
[PE1-bgp-default-ipv6-a] import-route direct
[PE1-bgp-default-ipv6-a] quit
[PE1-bgp-default-a] quit
[PE1–bgp-default] address-family vpnv6
[PE1–bgp-default-vpnv6] peer vpn-g enable
[PE1–bgp-default-vpnv6] quit
[PE1–bgp-default] quit
# Configure OSPF.
[PE1] ospf 1
[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