MPLS Traffic Engineering with Autoroute

Problem

You want to use the Autoroute feature to automatically maintain traffic-engineered paths through your MPLS network.

Solution

This recipe uses Cisco’s Autoroute feature for managing Traffic Engineering (TE) with OSPF in an MPLS network. For this method, we must explicitly define all of the traffic paths and associate them with Tunnels on the PE routers:

Router-PE1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router-PE1(config)#mpls traffic-eng tunnels
Router-PE1(config)#interface Loopback0
Router-PE1(config-if)#ip address 10.0.0.2 255.255.255.255
Router-PE1(config-if)#exit
Router-PE1(config)#interface Tunnel11
Router-PE1(config-if)#ip unnumbered Loopback0
Router-PE1(config-if)#tunnel destination 10.0.0.3
Router-PE1(config-if)#tunnel mode mpls traffic-eng
Router-PE1(config-if)#tunnel mpls traffic-eng autoroute announce
Router-PE1(config-if)#tunnel mpls traffic-eng priority 7 7
Router-PE1(config-if)#tunnel mpls traffic-eng bandwidth 256
Router-PE1(config-if)#tunnel mpls traffic-eng path-option 1 explicit name def-PE3
Router-PE1(config-if)#exit
Router-PE1(config)#interface Tunnel12
Router-PE1(config-if)#ip unnumbered Loopback0
Router-PE1(config-if)#tunnel destination 10.0.0.3
Router-PE1(config-if)#tunnel mode mpls traffic-eng
Router-PE1(config-if)#tunnel mpls traffic-eng autoroute announce
Router-PE1(config-if)#tunnel mpls traffic-eng priority 7 7
Router-PE1(config-if)#tunnel mpls traffic-eng bandwidth 

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.