MPLS network
<explanation will be added later on>
Configuration
Download
http://ge.tt/3DhIfuz
PE1
VRF configuration
ip vrf cust_1
rd 1:1
route-target export 1:100
route-target import 1:100
!
EIGRP between PE1 and CE1
router eigrp 1
auto-summary
!
address-family ipv4 vrf cust_1
redistribute bgp 1 metric 10000 100 100 1 1500
network 192.168.1.0
auto-summary
autonomous-system 1
exit-address-family
MP-BGP (VPNv4-MPLS) configuration
!
router bgp 1
bgp log-neighbor-changes
neighbor 3.3.3.3 remote-as 1
neighbor 3.3.3.3 update-source Loopback0
!
address-family ipv4
neighbor 3.3.3.3 activate
no auto-summary
no synchronization
exit-address-family
!
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community extended
exit-address-family
!
address-family ipv4 vrf cust_1
redistribute eigrp 1
neighbor 3.3.3.3 remote-as 1
neighbor 3.3.3.3 activate
no synchronization
exit-address-family
!
Verification
Customer routing table
CE1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback0
D 1.0.0.0/8 is a summary, 00:28:44, Null0
D 4.0.0.0/8 [90/435200] via 192.168.1.2, 00:05:42, FastEthernet0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
D 192.168.2.0/24 [90/307200] via 192.168.1.2, 00:05:42, FastEthernet0/0
CE2#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
D 1.0.0.0/8 [90/435200] via 192.168.2.1, 00:06:02, FastEthernet0/0
4.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 4.4.4.0/24 is directly connected, Loopback0
D 4.0.0.0/8 is a summary, 00:13:46, Null0
D 192.168.1.0/24 [90/307200] via 192.168.2.1, 00:06:02, FastEthernet0/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0
CE2#
Provider edge routing table
Routing table
PE1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/11] via 10.1.1.2, 00:11:19, FastEthernet0/1
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, FastEthernet0/1
PE1#
VRF routing table
PE1#sh ip route vrf cust_1
Routing Table: cust_1
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
D 1.0.0.0/8 [90/409600] via 192.168.1.1, 00:12:52, FastEthernet0/0
B 4.0.0.0/8 [200/409600] via 3.3.3.3, 00:07:29
C 192.168.1.0/24 is directly connected, FastEthernet0/0
B 192.168.2.0/24 [200/0] via 3.3.3.3, 00:07:30
PE1#
MPLS tagging VPNv4
* Normally, there are 2 MPLS tags. However, in this scenario, there is an implicit null on the outer layer so it will pop out left only VPN tag.
PE1#sh ip cef vrf cust_1 192.168.2.0
192.168.2.0/24, version 12, epoch 0, cached adjacency 10.1.1.2
0 packets, 0 bytes
tag information set
local tag: VPN-route-head
fast tag rewrite with Fa0/1, 10.1.1.2, tags imposed: {18}
via 3.3.3.3, 0 dependencies, recursive
next hop 10.1.1.2, FastEthernet0/1 via 3.3.3.3/32
valid cached adjacency
tag rewrite with Fa0/1, 10.1.1.2, tags imposed: {18}