How to Configuration MPLS L2 VPN between two branches !!!


How to Configuration MPLS L2 VPN  between two branches:

encapsulation L2 of two branches into L3 MPLS by VC & pseudo wire.






How to:

1- R2(f0/0) not assign IP   R5(f0/1) no assign IP.
2- Apply routing protocol RIP v2 on R1 & R6 .
3- Apply OSPF on R2-R3-R4-R5, but R2 (23.0.0.0 & 2.2.2.2) no route with 16.0.0.0  and  R6 the same.
4- Company has two branches (16.0.0.1  -   16.0.0.6)
5- MPLS not need know network of customers into PE & P each customer so not route network into core.


-----------------------------------------------------

How to Configuration routing protocol and MPLS:


R1:
en

conf t
interface f0/0
no shutdown
ip address 16.0.0.1 255.0.0.0

interface loopback 0
ip address 1.1.1.1 255.255.255.255

router rip
network 16.0.0.0  
network 1.0.0.0   
version 2
no auto-summary
end
wr me

------------------------------------------------------------------------------
R6:
en
conf t
interface f0/0
no shutdown
ip address 16.0.0.6 255.0.0.0

interface loopback 0
ip address 6.6.6.6 255.255.255.255

router rip
network 16.0.0.0  
network 6.0.0.0   
version 2
no auto-summary
end
wr me


------------------------------------------------------------------------------
R2:
en

conf t
mpls ip
interface f0/1
no shutdown
ip address 23.0.0.3 255.0.0.0
mpls ip

interface loopback 0
ip address 2.2.2.2 255.255.255.255

router ospf 1
network 23.0.0.0  0.255.255.255 area 0
network 2.0.0.0   0.255.255.255  area 0
end
wr me

------------------------------------------------------------------------------

R3:
en

conf t
mpls ip
interface f0/0
no shutdown
ip address 23.0.0.3 255.0.0.0
mpls ip

interface f0/0
no shutdown
ip address 34.0.0.3 255.0.0.0
mpls ip

interface loopback 0
ip address 3.3.3.3 255.255.255.255

router ospf 1
network 23.0.0.0  0.255.255.255 area 0
network 34.0.0.0  0.255.255.255 area 0
network 3.0.0.0   0.255.255.255  area 0
end
wr me


------------------------------------------------------------------------------
R4:
en
conf t
mpls ip
interface f0/1
no shutdown
ip address 45.0.0.5 255.0.0.0
mpls ip

interface f0/0
no shutdown
ip address 34.0.0.4 255.0.0.0
mpls ip

interface loopback 0
ip address 4.4.4.4 255.255.255.255

router ospf 1
network 45.0.0.0  0.255.255.255 area 0
network 34.0.0.0  0.255.255.255 area 0
network 4.0.0.0   0.255.255.255  area 0
end
wr me

------------------------------------------------------------------------------
R5:
en
conf t
mpls ip
interface f0/0
no shutdown
ip address 45.0.0.3 255.0.0.0
mpls ip

interface loopback 0
ip address 5.5.5.5 255.255.255.255

router ospf 1
network 45.0.0.0  0.255.255.255 area 0
network 5.0.0.0   0.255.255.255  area 0
end
wr me

------------------------------------------------------------------------------



MPLS handle traffic between R2 & R5 (traceroute traffic) ,  OSPF just route not handle traffic

MPLS handle any traffics in core network

How to configuration  L2-VPN on MPLS:

R2:
pseudowire-class R1_L2-R6_L2
encapsulation mpls

interface f0/0

xconnect 5.5.5.5 1 pw-class R1_L2-R6_L2

R5:
pseudowire-class  R6-R1BRIDGE
encapsulation mpls

interface f0/1
xconnect 2.2.2.2 1 pw-class R6-R1BRIDGE

----------------------------------------------------------------------------------------------
## Show mpls forward table:



More Security with MPLS L2 VPN:



Good Luck




Comments

Popular posts from this blog

Kubernetes 104: Create a 2-node k3s cluster with k3sup

Cisco Nexus: Configuration VXLAN.

How to configure OSPF on Palo Alto Networks Firewall?