Configuring a Basic MPLS PE Router
Problem
You want to configure a Provider Edge (PE) router to connect your MPLS core to a customer network.
Solution
To configure a PE router, you must set up connections to the MPLS core as well as to one or more customer networks. Further, to distribute customer VRF routing information to other PE routers, you must configure MP-BGP:
Router-PE1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router-PE1(config)#ip cef
Router-PE1(config)#mpls ip
Router-PE1(config)#interface
Router-PE1(config-if)#
Serial0/0
description
Router-PE1(config-if)#
Connection to Router-P1
ip address
Router-PE1(config-if)#
10.1.1.13 255.255.255.252
mpls ip
Router-PE1(config-if)#exit
Router-PE1(config)#interface
Router-PE1(config-if)#
Loopback0
ip address
Router-PE1(config-if)#
10.0.0.2 255.255.255.255
exit
Router-PE1(config)#router ospf
Router-PE1(config-router)#
99
router-id
Router-PE1(config-router)#
10.0.0.2
network
10.0.0.0 0.255.255.255
area
Router-PE1(config-router)#
0
exit
Router-PE1(config)#ip vrf
Router-PE1(config-vrf)#
NetworkA
rd
Router-PE1(config-vrf)#
100:1
route-target export
Router-PE1(config-vrf)#
100:1
route-target import
Router-PE1(config-vrf)#
100:1
exit
Router-PE1(config)#ip vrf
Router-PE1(config-vrf)#
NetworkB
rd
Router-PE1(config-vrf)#
100:2
route-target export
Router-PE1(config-vrf)#
100:2
route-target import
Router-PE1(config-vrf)#
100:2
exit
Router-PE1(config)#interface
Router-PE1(config-if)#
Ethernet0/0
description
connection to customer ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.