19.07.2013 Views

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

- The show ip protocols EXEC command provides an overview of all running routing<br />

protocols when multiple routing protocols are running on a single router. The following<br />

command output shows the Process ID, Router ID, the number of OSPF areas and their types,<br />

networks and areas configured for OSPF, and OSPF Router IDs of the neighbors.<br />

RT1#sh ip protocols<br />

Routing Protocol is "ospf 1"<br />

Outgoing update filter list for all interfaces is not set<br />

Incoming update filter list for all interfaces is not set<br />

Router ID 10.1.3.1<br />

Number of areas in this router is 1. 1 normal 0 stub 0 nssa<br />

Maximum path: 4<br />

Routing for Networks:<br />

10.0.0.0 0.255.255.255 area 0<br />

Routing Information Sources:<br />

Gateway Distance Last Update<br />

10.1.3.1 110 00:02:21<br />

10.1.6.1 110 00:02:21<br />

10.1.5.1 110 00:02:21<br />

Distance: (default is 110)<br />

RT1#<br />

- The debug ip ospf adj privileged command displays the OSPF adjacency events, eg: DR/BDR<br />

election.<br />

- The debug ip ospf events privileged command displays information on OSPF-related events,<br />

eg: adjacency formation, flooding information, DR/BDR election, and SPF calculation.<br />

- The debug ip ospf packet privileged command displays the contents of all sent and received<br />

OSPF packets.<br />

- <strong>Cisco</strong> OSPF link cost is calculated based on bandwidth, whereas other vendors may use other<br />

methods for link cost / metric calculation. Hence when connecting routers from different<br />

vendors, the OSPF cost might need to be adjusted to match other vendor’s router. Both routers<br />

must have the same cost for a particular link for the OSPF to operate properly.<br />

- Since OSPF cost is based on bandwidth, the OSPF cost of an interface can also be changed with<br />

the bandwidth {bw} interface subcommand. If an interface’s cost is not set, the formula 10 8 /<br />

bandwidth is used by default. Changing an interface’s bandwidth changes its OSPF cost as well.<br />

<strong>Cisco</strong> OSPF cost calculation 10 8 / bandwidth (in bps). 100Mbps FE 1, 10Mbps 10.<br />

A higher bandwidth indicates a lower cost, making higher speed links more preferable.<br />

- Gigabit Ethernet = 0.1, but since only integer value can be used, so OSPF uses a cost of 1 for<br />

both FE and GE links. The reference bandwidth, which is the value of the numerator in the cost<br />

calculation formula, can be changed with the auto-cost reference-bandwidth 1000 router<br />

subcommand. This command changes the numerator to 1000Mbps (10 9 ), and hence the formula<br />

becomes 10 9 / bandwidth. Finally, the cost calculation will be 1 for GE and 10 for FE.<br />

* 10 8 = 100’000’000 = 100Mbps<br />

* 10 9 = 1’000’000’000 = 1000Mbps = 1Gbps<br />

- The ip ospf cost {cost} interface subcommand manipulates the OSPF cost associated with a<br />

particular interface. This command overrides the default formulated cost. The OSPF cost value<br />

ranges from 1 – 65535. The OSPF cost has no unit of measurement, it is just a number.<br />

103<br />

Copyright © 2008 Yap Chin Hoong<br />

yapchinhoong@hotmail.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!