0% found this document useful (0 votes)
13 views6 pages

MPLS L3 VPN Example

Uploaded by

jospabloreyes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views6 pages

MPLS L3 VPN Example

Uploaded by

jospabloreyes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MPLS L3 VPN Example

Pedro Lino Cáceres


Aprende Configurando
Configuración Router 1 (PE Router)

ip vrf CustomerA
rd 1:1
route-target both 1:1
int g0/0
ip vrf forwarding CustomerA
ip add 192.168.14.1 255.255.255.0
no sh
int g1/0
ip add 192.168.12.1 255.255.255.0
mpls ip
no sh
int lo 0
ip add 1.1.1.1 255.255.255.255
router ospf 1
network 192.168.12.0 0.0.0.255 area 0
network 1.1.1.1 0.0.0.0 area 0
router ospf 45 vrf CustomerA
router-id 0.0.0.1
network 192.168.14.0 0.0.0.255 area 0
redistribute bgp 123 subnets
router bgp 123
neighbor 3.3.3.3 remote-as 123
neighbor 3.3.3.3 update-source lo 0
address-family ipv4 vrf CustomerA
redistribute ospf 45
address-family vpnv4 unicast
neighbor 3.3.3.3 activate
Configuración Router 2 (P Router):

int g1/0
ip add 192.168.12.2 255.255.255.0
mpls ip
no sh
int g2/0
ip add 192.168.23.2 255.255.255.0
mpls ip
no sh
int lo 0
ip add 2.2.2.2 255.255.255.255
router ospf 1
network 192.168.12.0 0.0.0.255 area 0
network 192.168.23.0 0.0.0.255 area 0
network 2.2.2.2 0.0.0.0 area 0
Configuración Router 3 (PE Router):

ip vrf CustomerA
rd 1:1
route-target both 1:1
int g0/0
ip vrf forwarding CustomerA
ip add 192.168.35.3 255.255.255.0
no sh
int g2/0
ip add 192.168.23.4 255.255.255.0
mpls ip
no sh
int lo 0
ip add 3.3.3.3 255.255.255.255
router ospf 1
network 192.168.23.0 0.0.0.255 area 0
network 3.3.3.3 0.0.0.0 area 0
router ospf 45 vrf CustomerA
network 192.168.35.0 0.0.0.255 area 0
redistribute bgp 123 subnets
router bgp 123
neighbor 1.1.1.1 remote-as 123
neighbor 1.1.1.1 update-source lo 0
address-family ipv4 vrf CustomerA
redistribute ospf 45
address-family vpnv4 unicast
neighbor 1.1.1.1 activate
Configuración de Router R4 (CustomerA - Site 1)

int g0/0
ip add 192.168.14.4 255.255.255.0
no sh
int lo 0
ip add 4.4.4.4 255.255.255.255
router ospf 45
network 192.168.14.0 0.0.0.255 area 0
network 4.4.4.4 0.0.0.0 area 0

Configuración de Router R5 (Customer A - site 2)

int g0/0
ip add 192.168.35.5 255.255.255.0
no sh
int lo 0
ip add 5.5.5.5 255.255.255.255
router ospf 45
network 192.168.35.0 0.0.0.255 area 0
network 5.5.5.5 0.0.0.0 area 0
Verificación
R4#show ip route | beg Gate
Gateway of last resort is not set

4.0.0.0/32 is subnetted, 1 subnets


C 4.4.4.4 is directly connected, Loopback0
5.0.0.0/32 is subnetted, 1 subnets
O IA 5.5.5.5 [110/3] via 192.168.14.1, 06:48:40, GigabitEthernet0/0
192.168.14.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.14.0/24 is directly connected, GigabitEthernet0/0
L 192.168.14.4/32 is directly connected, GigabitEthernet0/0
O IA 192.168.35.0/24 [110/2] via 192.168.14.1, 06:56:02, GigabitEthernet0/0

R5#show ip route | be Gate


Gateway of last resort is not set

4.0.0.0/32 is subnetted, 1 subnets


O IA 4.4.4.4 [110/3] via 192.168.35.3, 06:49:25, GigabitEthernet0/0
5.0.0.0/32 is subnetted, 1 subnets
C 5.5.5.5 is directly connected, Loopback0
O IA 192.168.14.0/24 [110/2] via 192.168.35.3, 06:49:25, GigabitEthernet0/0
192.168.35.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.35.0/24 is directly connected, GigabitEthernet0/0
L 192.168.35.5/32 is directly connected, GigabitEthernet0/0

R4#ping 5.5.5.5 source 4.4.4.4


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 76/113/144 ms

You might also like