Saturday 1 September 2012

MPLS Traffic-engineering Autoroute Announce

R1 Tunnel 1 Config

interface Tunnel1
 ip unnumbered Loopback0
 tunnel destination 2.2.2.2
 tunnel mode mpls traffic-eng
 tunnel mpls traffic-eng autoroute announce
 tunnel mpls traffic-eng path-option 10 explicit name R1-R4-R2
 tunnel mpls traffic-eng path-option 20 dynamic

Verification

-When autoroute announce is configure, if some of the routes that the router learns behind the tunnel is the shortest path, the router will be using the tunnel as the next hop. That means the router will take the path to reach the tunnel tailend first.

R1#show ip route ospf
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/3] via 0.0.0.0, 00:00:47, Tunnel1
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/3] via 192.168.14.4, 00:00:47, FastEthernet0/1
     4.0.0.0/32 is subnetted, 1 subnets
O       4.4.4.4 [110/2] via 192.168.14.4, 00:00:47, FastEthernet0/1
O    192.168.24.0/24 [110/2] via 192.168.14.4, 00:00:47, FastEthernet0/1
O    192.168.23.0/24 [110/3] via 192.168.14.4, 00:00:47, FastEthernet0/1
                     [110/3] via 0.0.0.0, 00:00:47, Tunnel1
O    192.168.34.0/24 [110/2] via 192.168.14.4, 00:00:47, FastEthernet0/1


-For simplicity in verification, I am going to raise the ospf cost of the R4 link connecting to R3.

R4(config)#int fa0/1
R4(config-if)#ip ospf cost 3

R1#show ip route ospf
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/3] via 0.0.0.0, 00:00:02, Tunnel1
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/4] via 0.0.0.0, 00:00:02, Tunnel1
     4.0.0.0/32 is subnetted, 1 subnets
O       4.4.4.4 [110/2] via 192.168.14.4, 00:00:02, FastEthernet0/1
O    192.168.24.0/24 [110/2] via 192.168.14.4, 00:00:02, FastEthernet0/1
O    192.168.23.0/24 [110/3] via 0.0.0.0, 00:00:02, Tunnel1
O    192.168.34.0/24 [110/4] via 192.168.14.4, 00:00:02, FastEthernet0/1
                     [110/4] via 0.0.0.0, 00:00:02, Tunnel1


R1#traceroute 3.3.3.3

  1 192.168.14.4 [MPLS: Label 19 Exp 0] 16 msec 28 msec 20 msec
  2 192.168.24.2 20 msec 48 msec 24 msec
  3 192.168.23.3 32 msec *  64 msec



No comments:

Post a Comment