Wednesday, July 30, 2014

MPLS L3 VPN - Part 1

MPLS Core setup




·         LDP and IGP in core

P routers

Enable LDP
mpls label protocol ldp
interface Fastethernet x/x             
(x/x = all interface)
              mpls ip

Enable core IGP
router ospf  1
     network 0.0.0.0 255.255.255.255 area 0

PE routers
Enable LDP
mpls label protocol ldp
interface Fastethernet x/x
  (x/x = loopback + all int facing P, not facing CE)
         mpls ip

Enable core IGP
router ospf  1
     network x.x.x.x 0.0.0.255 area 0
(x.x.x.x = interface facing P, not facing CE)


·         VPNv4 between PEs

PE routers

Enable MP-BGP VPNv4
router bgp 100
      no bgp default ipv4-unicast
      neighbor x.x.x.x remote-as 100
      neighbor x.x.x.x update-source loopback1
      address-family vpnv4 unicast
              neighbor x.x.x.x activate
              neighbor x.x.x.x send-community extended

            


  
·         VRF Configuration

PE routers

Create VRF
ip vrf AAA  (only for ipv4)
“or”  vrf definition AAA    (for both ipv4+ipv6)

    rd 100:1
    route-target export 100:1
    route-target  import 100:1


Assign interface to VRF
Interface Fa x/x            (interface facing CE)
    ip vrf forwarding AAA
    ip address …