cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
632
Views
0
Helpful
3
Replies

OSFP TE forwarding adjacency

shijthom
Level 1
Level 1

Hi

Could please someone advise me on whether the te tunnel metric in the routing table can be controlled using the "ip ospf cost" command? I would like to have the tunnel take a different cost from the best IGP metric. How can this be done? Please let me know.

R262#sh run int tun24

Building configuration...

Current configuration : 279 bytes

!

interface Tunnel24

ip unnumbered Loopback0

ip ospf cost 1000

tunnel mode mpls traffic-eng

tunnel destination 10.0.0.7

tunnel mpls traffic-eng autoroute announce

tunnel mpls traffic-eng forwarding-adjacency

tunnel mpls traffic-eng path-option 1 explicit name path24

end

R262#

R262#sh ip route

Codes: L - local, 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, H - NHRP

       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/32 is subnetted, 6 subnets

O        10.0.0.1 [110/11] via 180.0.0.1, 11:21:17, Ethernet0/0

O        10.0.0.3 [110/11] via 180.1.0.1, 11:20:50, Ethernet0/2

C        10.0.0.5 is directly connected, Loopback0

O        10.0.0.7 [110/21] via 10.0.0.7, 10:57:32, Tunnel24

O        10.0.0.9 [110/31] via 10.0.0.7, 10:57:32, Tunnel24

O        10.0.0.11 [110/31] via 10.0.0.7, 10:57:32, Tunnel24

      180.0.0.0/16 is variably subnetted, 2 subnets, 2 masks

C        180.0.0.0/16 is directly connected, Ethernet0/0

L        180.0.0.2/32 is directly connected, Ethernet0/0

      180.1.0.0/16 is variably subnetted, 2 subnets, 2 masks

C        180.1.0.0/16 is directly connected, Ethernet0/2

L        180.1.0.2/32 is directly connected, Ethernet0/2

O     180.2.0.0/16 [110/20] via 180.1.0.1, 11:20:20, Ethernet0/2

      180.3.0.0/16 is variably subnetted, 2 subnets, 2 masks

C        180.3.0.0/16 is directly connected, Ethernet0/1

L        180.3.0.1/32 is directly connected, Ethernet0/1

O     180.4.0.0/16 [110/30] via 10.0.0.7, 10:57:32, Tunnel24

O     180.5.0.0/16 [110/30] via 10.0.0.7, 10:57:32, Tunnel24

1 Accepted Solution

Accepted Solutions

Mahesh Gohil
Level 7
Level 7

Hello,

You can change tunnel metric via. command

      tunnel mpls traffic-eng autoroute metric

for tunnel tail end the metric will be shown as the value you specified and for nodes behind tunnel tail the metric will be sum

of value specified + IGP metric from tail to end node

but if you change above command to

     tunnel mpls traffic-eng autoroute metric absolute

the metric for nodes behind tunnel tail will be same as above supplied value

There are also other oprions to affect tunnel metric like

    tunnel mpls traffic-eng autoroute metric relative

It is tunnel metric relative to the IGP cost that the tunnel would normally have.

Hopw this helps

Regards

Mahesh

View solution in original post

3 Replies 3

Mahesh Gohil
Level 7
Level 7

Hello,

You can change tunnel metric via. command

      tunnel mpls traffic-eng autoroute metric

for tunnel tail end the metric will be shown as the value you specified and for nodes behind tunnel tail the metric will be sum

of value specified + IGP metric from tail to end node

but if you change above command to

     tunnel mpls traffic-eng autoroute metric absolute

the metric for nodes behind tunnel tail will be same as above supplied value

There are also other oprions to affect tunnel metric like

    tunnel mpls traffic-eng autoroute metric relative

It is tunnel metric relative to the IGP cost that the tunnel would normally have.

Hopw this helps

Regards

Mahesh

Please take note that the ospf cost is applied to the outbound interface.

If you want to increase the metric on this tunnel interface, you must increase the cost on the opposite side.

regards,

Leo

Thanks Mahesh and Leo..

Review Cisco Networking products for a $25 gift card