Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

ip ospf cost

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

Re: ip ospf cost

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

Super Bronze

Re: ip ospf cost

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.

288
Views
0
Helpful
2
Replies
CreatePlease to create content