video explaination detailed mpls vpn You need to have a little background knowledge about mpls before you watch the video. It is well explained and I strongly recommend everyone watch it.

Lets talk about virtual routing and forwardind. Briefly speaking, it means in one PE we can have multiple virtual routers for different customers.

  • each VRF has its own dedicated interface, RIB, FIB and CEF table
  • VRFs seperate customer routing information, each customer is assigned a VRF
  • eBGP,IGP is configured per vrf on PE

A vrf is defined by four different things, name, Route Distinguisher(identify a custoer prefix), interface, Route Target. detailed mpls vpn

PE-CE Routing

  • Customer CE devices would directly connect to PE device using L3 link and it should be different from core configuration.
  • PE routers partition each customer into their own VRF to keep routing private.

Enough of the talky talky. Configuration time! Yesterday, I played just dance with my roomate lexi and what should I say, she nearly beat me every single timeā€¦.I am gonna practise more and crush her next time.

My another roomate emily is sleeping all day because her overnight shift from 8pm to 8am next morning. I was talking to my mum about how hard things can be and my mum said, thats the young man spirit. Thanks MUM, I absolutely love you.

Configuration on PE1, starting from building vrf

PE1(config)#ip vrf CUSTOMER-A
PE1(config-vrf)#rd 2345:1
PE1(config-vrf)#route-target import 2345:1
PE1(config-vrf)#route-target export 2345:1
PE1(config)#int f0/0.12
PE1(config-subif)#ip vrf forwarding CUSTOMER-A
PE1(config-subif)#encapsulation dot1Q 12
PE1(config-subif)#ip add 192.168.12.2 255.255.255.0
PE1(config-subif)#do sh ip vrf
  Name                             Default RD          Interfaces
  CUSTOMER-A    
PE1(config)#router bgp 2345
PE1(config-router)#no bgp default ipv4-unicast 
PE1(config-router)#nei 5.5.5.5 remote-as 2345
PE1(config-router)#nei 5.5.5.5 update-source lo0
PE1(config-router)#address-family vpnv4
PE1(config-router-af)#nei 5.5.5.5 activate 
PE1(config-router-af)#nei 5.5.5.5 send-community both

We apparently set up relationships between two PEs as iBGP and finished the vrf.,the result woule be shown below

sh ip bgp vpnv4 all summary

Lets do the configuration on CE1. You know what, just follow it

A-CE1(config)#route-map CONNECTED permit 10
A-CE1(config-route-map)#match interface loopback 0
A-CE1(config)#router bgp 65012
A-CE1(config-router)#redistribute connected route-map CONNECTED
A-CE1(config-router)#neighbor 192.168.12.2 send-community both 
PE1(config)#router bgp 2345
PE1(config-router)#neighbor 192.168.12.1 remote-as 65012
PE1(config-router)#address-family ipv4 vrf CUSTOMER-A
PE1(config-router-af)#neighbor 192.168.12.1 remote-as 65012
PE1(config-router-af)#neighbor 192.168.12.1 activate 
PE1(config-router-af)#neighbor 192.168.12.1 send-community both
PE1(config-router-af)#redistribute connected 

AND THAT IS ALL