279
[PE4-md-b-ipv4] default-group 239.4.4.4
[PE4-md-b-ipv4] source loopback 1
[PE4-md-b-ivp4] data-group 225.4.4.0 28
[PE4-md-b-ipv4] quit
[PE4-md-b] quit
# Assign an IP address to VLAN-interface 4.
[PE4] interface vlan-interface 4
[PE4-Vlan-interface4] ip address 10.10.2.2 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 4.
[PE4-Vlan-interface4] pim sm
[PE4-Vlan-interface4] mpls enable
[PE4-Vlan-interface4] mpls ldp enable
[PE4-Vlan-interface4] quit
# Associate VLAN-interface 13 with VPN instance
a
.
[PE4] interface vlan-interface 13
[PE4-Vlan-interface13] ip binding vpn-instance a
# Assign an IP address to VLAN-interface 13, and enable PIM-SM on the interface.
[PE4-Vlan-interface13] ip address 10.11.3.1 24
[PE4-Vlan-interface13] pim sm
[PE4-Vlan-interface13] quit
# Associate VLAN-interface 14 with VPN instance
b
.
[PE4] interface vlan-interface 14
[PE4-Vlan-interface14] ip binding vpn-instance b
# Assign an IP address to VLAN-interface 14, and enable PIM-SM on the interface.
[PE4-Vlan-interface14] ip address 10.11.4.1 24
[PE4-Vlan-interface14] pim sm
[PE4-Vlan-interface14] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[PE4] interface loopback 1
[PE4-LoopBack1] ip address 1.1.1.4 32
[PE4-LoopBack1] pim sm
[PE4-LoopBack1] quit
# Configure BGP.
[PE4] bgp 200
[PE4-bgp-default] group pe4-pe3 internal
[PE4-bgp-default] peer pe4-pe3 connect-interface loopback 1
[PE4-bgp-default] peer 1.1.1.3 group pe4-pe3
[PE4-bgp-default] group pe4-pe1 external
[PE4-bgp-default] peer pe4-pe1 as-number 100
[PE4-bgp-default] peer pe4-pe1 ebgp-max-hop 255
[PE4-bgp-default] peer pe4-pe1 connect-interface loopback 1
[PE4-bgp-default] peer 1.1.1.1 group pe4-pe1
[PE4–bgp-default] ip vpn-instance a
[PE4-bgp-default-a] address-family ipv4
[PE4-bgp-default-ipv4-a] import-route ospf 2
[PE4-bgp-default-ipv4-a] import-route direct
[PE4-bgp-default-ipv4-a] quit
[PE4-bgp-default-a] quit