04-04-2018 05:46 PM - edited 03-05-2019 10:13 AM
When I enter the command
show ip route
I dont get the cost by route. What command should be used to obtain route cost?
Thanks,
Martin
Solved! Go to Solution.
04-04-2018 07:19 PM
04-04-2018 07:22 PM
hi,
you can use the show ip route or show ip route ospf <PROCESS ID> to be specific. look on the second number on the bracket. this is the OSPF metric (or cost) which is the calculated using the formula:
metric = 100,000,000 / interface bandwidth
this can be adjusted using the router ospf command: auto-cost reference-bandwidth
in the example below, 11 is the metric or OSPF cost for the network 172.16.3.0.
O 172.16.3.0 [110/11] via 1.1.1.13, 00:10:04, FastEthernet0/0
04-04-2018 06:31 PM
04-04-2018 06:55 PM
Thanks for the answer. But I was wondering if there is a way to obtain a ROUTE COST based on the routing table. Not on an interface.
Regards,
Martin
04-04-2018 07:12 PM
04-04-2018 07:17 PM
Ok thanks. Sorry for my ignorance im newbe with this router. Where is the metric in those routes?
O 130.0.0.0/16 [110/2] via 192.168.6.1, 02:24:17, FastEthernet0/0
O 131.0.0.0/16 [110/2] via 192.168.4.2, 02:21:50, FastEthernet0/1
172.30.0.0/24 is subnetted, 2 subnets
O 172.30.1.0 [110/2] via 192.168.6.1, 02:15:10, FastEthernet0/0
O 172.30.4.0 [110/2] via 192.168.4.2, 02:13:43, FastEthernet0/1
04-04-2018 07:19 PM
04-04-2018 07:31 PM
Thank you so much. Can you send the link? I will read it.
Regards,
Mart
04-04-2018 07:33 PM
04-04-2018 07:22 PM
hi,
you can use the show ip route or show ip route ospf <PROCESS ID> to be specific. look on the second number on the bracket. this is the OSPF metric (or cost) which is the calculated using the formula:
metric = 100,000,000 / interface bandwidth
this can be adjusted using the router ospf command: auto-cost reference-bandwidth
in the example below, 11 is the metric or OSPF cost for the network 172.16.3.0.
O 172.16.3.0 [110/11] via 1.1.1.13, 00:10:04, FastEthernet0/0
04-04-2018 07:32 PM
Thanks a lot!
Regards,
Martin
04-05-2018 07:44 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide