cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
432
Views
0
Helpful
2
Replies

ip ospf cost

acbenny
Level 1
Level 1

Suppose Router A fast ethernet0/0 is connected to Router B fast ethernet 0/0

If router A has below configuration

RouterA#

int fast ethernet 0/0

ip ospf cost 20

does command "ip ospf cost" is for outgoing purpose? which mean

Cost from routerA to RouterB fast ethernet 0/1 is 21

but cost from RouterB 0/1 to RouterA is default cost 2

2 Replies 2

paul.matthews
Level 5
Level 5

Incoming and outgoing can be a little confusing with routing costs.

In this case you have told router A that the cost to get to fas 0/0 is 20.

That will be used in routing calculations to get to that LAN via router A

Joseph W. Doherty
Hall of Fame
Hall of Fame

Yes, OSPF just looks at the "outgoing" cost. Normally, you would expect a link of symmetric bandwidth to be costed the same in both directions but you can use this capability to prefer one outgoing path over another when they are actually equal or make two outgoing paths look the same when they are not.

Also, it is possible to have asymmetric bandwidth links. ADSL would be an example.

Review Cisco Networking products for a $25 gift card