273
# Specify the default-group, the MD source interface, and the data-group range for VPN
instance
b
.
[PE1-md-b-ipv4] default-group 239.4.4.4
[PE1-md-b-ipv4] source loopback 1
[PE1-md-b-ivp4] data-group 225.4.4.0 28
[PE1-md-b-ipv4] quit
[PE1-md-b] quit
# Assign an IP address to VLAN-interface 2.
[PE1] interface vlan-interface 2
[PE1-Vlan-interface2] ip address 10.10.1.1 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 2.
[PE1-Vlan-interface2] pim sm
[PE1-Vlan-interface2] mpls enable
[PE1-Vlan-interface2] mpls ldp enable
[PE1-Vlan-interface2] 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.11.1.1 24
[PE1-Vlan-interface11] pim sm
[PE1-Vlan-interface11] quit
# Associate VLAN-interface 12 with VPN instance
b
.
[PE1] interface vlan-interface 12
[PE1-Vlan-interface12] ip binding vpn-instance b
# Assign an IP address to VLAN-interface 12, and enable PIM-SM on the interface.
[PE1-Vlan-interface12] ip address 10.11.2.1 24
[PE1-Vlan-interface12] pim sm
[PE1-Vlan-interface12] 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 pe1-pe2 internal
[PE1-bgp-default] peer pe1-pe2 connect-interface loopback 1
[PE1-bgp-default] peer 1.1.1.2 group pe1-pe2
[PE1-bgp-default] group pe1-pe4 external
[PE1-bgp-default] peer pe1-pe4 as-number 200
[PE1-bgp-default] peer pe1-pe4 ebgp-max-hop 255
[PE1-bgp-default] peer pe1-pe4 connect-interface loopback 1
[PE1-bgp-default] peer 1.1.1.4 group pe1-pe4
[PE1–bgp-default] ip vpn-instance a
[PE1-bgp-default-a] address-family ipv4
[PE1-bgp-default-ipv4-a] import-route ospf 2
[PE1-bgp-default-ipv4-a] import-route direct