CLI Input for PE2

VRF3:

PE2(su)->router vrf3
PE2(su-vrf3)->configure
PE2(su-vrf3-config)->rd 2:21
PE2(su-vrf3-config)->route-target both 2:20
PE2(su-vrf3-config)->route-target import 2:2
PE2(su-vrf3-config)->exit
PE2(su-vrf3)->exit

VRF4

PE2(su)->router vrf4
PE2(su-vrf4)->configure
PE2(su-vrf4-config)->rd 1:11
PE2(su-vrf4-config)->route-target both 1:10
PE2(su-vrf4-config)->route-target import 1:1
PE2(su-vrf4-config)->exit
PE2(su-vrf4)->exit

Global VRF (L3 Tunnel)

Use the following example input when configuring L3 VPN using L3 tunnels. If you are configuring L3 VPN using Native MPLS see Global VRF (Native MPLS).

PE2(su)->configure
PE2(su-config)->mpls ip (Native MPLS only)
PE2(su-config)->mpls label-protocol-ldp ipv4 (Native MPLS only)
PE2(su-config)->interface loopback 1
PE2(su-config-intf-loop.0.1)->ip address 192.168.2.254 255.255.255.255 primary
PE2(su-config-intf-loop.0.1)->ip address 192.168.200.1 255.255.255.255 secondary
PE2(su-config-intf-loop.0.1)->no shutdown
PE2(su-config-intf-loop.0.1)->exit
PE2(su-config)->interface vlan 4002
PE2(su--config-intf-vlan.0.4002)->ip address 10.10.1.2 255.255.255.0 primary
PE2(su--config-intf-vlan.0.4002)->no shutdown
PE2(su--config-intf-vlan.0.4002)->exit
PE2(su-config)->interface tunnel 1
PE2(su-config-tun.0.1)->tunnel mode gre
PE2(su-config-tun.0.1)->tunnel destination 192.168.1.254
PE2(su-config-tun.0.1)->tunnel source 192.168.2.254
PE2(su-config-tun.0.1)->no shutdown
PE2(su-config-tun.0.1)->exit
PE2(su-config)->ip route 192.168.100.1/24 interface tun.0.1 1
PE2(su-config)->interface tunnel 3
PE2(su-config-tun.0.2)->tunnel mode gre
PE2(su-config-tun.0.2)->tunnel destination 192.168.3.254
PE2(su-config-tun.0.2)->tunnel source 192.168.2.254
PE2(su-config-tun.0.2)->no shutdown
PE2(su-config-tun.0.2)->exit
PE2(su-config)->ip route 192.168.300.1/24 interface tun.0.3 1

Global VRF (Native MPLS)

Use the following example input when configuring L3 VPN using Native MPLS. If you are configuring L3 VPN using L3 tunnels see Global VRF (L3 Tunnel).

PE2(su)->configure
PE2(su-config)->mpls ip
PE2(su-config)->mpls label-protocol-ldp ipv4
PE2(su-config)->interface loopback 1
PE2(su-config-intf-loop.0.1)->ip address 192.168.200.1 255.255.255.255 primary
PE2(su-config-intf-loop.0.1)->no shutdown
PE2(su-config-intf-loop.0.1)->exit
PE2(su-config)->interface vlan 4002
PE2(su--config-intf-vlan.0.4002)->ip address 10.10.1.2 255.255.255.0 primary
PE2(su--config-intf-vlan.0.4002)->no shutdown
PE2(su--config-intf-vlan.0.4002)->exit

Global VRF (BGP)

PE2(su-config)->router bgp 64520
PE2(su-config-bgp)->bgp router-id 192.168.200.1
PE2(su-config-bgp)->log-up-down
PE2(su-config-bgp)->neighbor 192.168.100.1 remote-as 64520
PE2(su-config-bgp)->neighbor 192.168.300.1 remote-as 64520
PE2(su-config-bgp)->address-family vpnv4
PE2(su-config-bgp-af-vpn)->enable
PE2(su-config-bgp-af-vpn)->192.168.100.1 activate
PE2(su-config-bgp-af-vpn)->exit
PE2(su-config-bgp)->address-family ipv4 vrf vrf3
PE2(su-config-bgp-af-vrf)->redistribute ospf 1
PE2(su-config-bgp-af-vrf)->exit
PE2(su-config-bgp)->address-family ipv4 vrf vrf4
PE2(su-config-bgp-af-vrf)->redistribute ospf 1
PE2(su-config-bgp-af-vrf)->exit
PE2(su-config-bgp)->exit
PE2(su-config)->exit
PE2(su)->