230
[PE1-md-a-ipv4] quit
[PE1-md-a] quit
# Assign an IP address to VLAN-interface 12.
[PE1] interface vlan-interface 12
[PE1-Vlan-interface12] ip address 192.168.6.1 24
#Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 12.
[PE1-Vlan-interface12] pim sm
[PE1-Vlan-interface12] mpls enable
[PE1-Vlan-interface12] mpls ldp enable
[PE1-Vlan-interface12] quit
# Associate VLAN-interface 20 with VPN instance
a
.
[PE1] interface vlan-interface 20
[PE1-Vlan-interface20] ip binding vpn-instance a
# Assign an IP address to VLAN-interface 20, and enable IGMP on the interface.
[PE1-Vlan-interface20] ip address 10.110.1.1 24
[PE1-Vlan-interface20] igmp enable
[PE1-Vlan-interface20] quit
# Associate VLAN-interface 11 with VPN instance
a
.
[PE1] interface vlan-interface 11
[PE1-Vlan-interface11] ip binding vpn-instance a
# Assign an IP address to VLAN-interface 11, and enable PIM-SM on the interface.
[PE1-Vlan-interface11] ip address 10.110.2.1 24
[PE1-Vlan-interface11] 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 ipv4
[PE1-bgp-default-ipv4-a] import-route rip 2
[PE1-bgp-default-ipv4-a] import-route direct
[PE1-bgp-default-ipv4-a] quit
[PE1-bgp-default-a] quit
[PE1–bgp-default] address-family vpnv4
[PE1–bgp-default-vpnv4] peer vpn-g enable
[PE1–bgp-default-vpnv4] quit
[PE1–bgp-default] quit
# Configure OSPF.
[PE1] ospf 1