CLI Input for PE1

VRF1:

PE1(su)->router vrf1
PE1(su-vrf1)->configure
PE1(su-vrf1-config)->rd 1:10
PE1(su-vrf1-config)->route-target export 1:1
PE1(su-vrf1-config)->route-target import 1:10
PE1(su-vrf1-config)->exit
PE1(su-vrf1)->exit

VRF2

PE1(su)->router vrf2
PE1(su-vrf2)->configure
PE1(su-vrf2-config)->rd 2:20
PE1(su-vrf2-config)->route-target both 2:2
PE1(su-vrf2-config)->route-target import 2:20
PE1(su-vrf2-config)->exit
PE1(su-vrf2)->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).

PE1(su)->configure
PE1(su-config)->interface loopback 1
PE1(su-config-intf-loop.0.1)->ip address 192.168.1.254 255.255.255.255 primary
PE1(su-config-intf-loop.0.1)->ip address 192.168.100.1 255.255.255.255 secondary
PE1(su-config-intf-loop.0.1)->no shutdown
PE1(su-config-intf-loop.0.1)->exit
PE1(su-config)->interface vlan 4001
PE1(su--config-intf-vlan.0.4001)->ip address 10.10.1.1 255.255.255.0 primary
PE1(su--config-intf-vlan.0.4001)->no shutdown
PE1(su--config-intf-vlan.0.4001)->exit
PE1(su-config)->interface tunnel 1
PE1(su-config-tun.0.1)->tunnel mode gre
PE1(su-config-tun.0.1)->tunnel destination 192.168.2.254
PE1(su-config-tun.0.1)->tunnel source 192.168.1.254
PE1(su-config-tun.0.1)->no shutdown
PE1(su-config-tun.0.1)->exit
PE1(su-config)->ip route 192.168.200.1/32 interface tun.0.1 1
PE1(su-config)->interface tunnel 2
PE1(su-config-tun.0.2)->tunnel mode gre
PE1(su-config-tun.0.2)->tunnel destination 192.168.3.254
PE1(su-config-tun.0.2)->tunnel source 192.168.1.254
PE1(su-config-tun.0.2)->no shutdown
PE1(su-config-tun.0.2)->exit
PE1(su-config)->ip route 192.168.300.1/24 interface tun.0.2 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).

PE1(su)->configure
PE1(su-config)->mpls ip
PE1(su-config)->mpls label-protocol-ldp ipv4
PE1(su-config)->interface loopback 1
PE1(su-config-intf-loop.0.1)->ip address 192.168.100.1 255.255.255.255 primary
PE1(su-config-intf-loop.0.1)->no shutdown
PE1(su-config-intf-loop.0.1)->exit
PE1(su-config)->interface vlan 4001
PE1(su--config-intf-vlan.0.4001)->ip address 10.10.1.1 255.255.255.0 primary
PE1(su--config-intf-vlan.0.4001)->no shutdown
PE1(su--config-intf-vlan.0.4001)->exit

Global VRF (BGP)

PE1(su-config)->router bgp 64520
PE1(su-config-bgp)->bgp router-id 192.168.100.1
PE1(su-config-bgp)->log-up-down
PE1(su-config-bgp)->neighbor 192.168.200.1 remote-as 64520
PE1(su-config-bgp)->neighbor 192.168.200.1 update-source 192.168.100 1
PE1(su-config-bgp)->neighbor 192.168.300.1 remote-as 64520
PE1(su-config-bgp)->neighbor 192.168.300.1 update-source 192.168.100 1
PE1(su-config-bgp)->address-family vpnv4
PE1(su-config-bgp-af-vpn)->enable
PE1(su-config-bgp-af-vpn)->192.168.200.1 activate
PE1(su-config-bgp-af-vpn)->exit
PE1(su-config-bgp)->address-family ipv4 vrf vrf1
PE1(su-config-bgp-af-vrf)->redistribute ospf 1
PE1(su-config-bgp-af-vrf)->exit
PE1(su-config-bgp)->address-family ipv4 vrf vrf2
PE1(su-config-bgp-af-vrf)->redistribute ospf 1
PE1(su-config-bgp-af-vrf)->exit
PE1(su-config-bgp)->exit
PE1(su-config)->exit
PE1(su)->