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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

- Static Routing configuration on RT2:<br />

RT2(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1<br />

RT2(config)#ip route 192.168.5.0 255.255.255.0 192.168.4.2<br />

RT2(config)#^Z<br />

RT2#<br />

- Static Routing configuration on RT3:<br />

RT3(config)#ip route 192.168.1.0 255.255.255.0 192.168.4.1<br />

RT3(config)#ip route 192.168.2.0 255.255.255.0 192.168.4.1<br />

RT3(config)#ip route 192.168.3.0 255.255.255.0 192.168.4.1<br />

RT3(config)#^Z<br />

RT3#<br />

- The values in the bracket [x/y] of the routes shown in the show ip route EXEC command<br />

represent the administrative distance and metric respectively.<br />

Default Routing Configuration<br />

- Default routing is very useful in situations where learning all the more specific networks is<br />

not desirable or not feasible due to limited system resources, eg: memory, processing power.<br />

Packets destined to networks that are not in the routing table – unknown destination networks<br />

will be directed to the default route. A default route is also known as the gateway of last resort.<br />

- Default routing can only be used on stub networks – networks with only one entry and exit<br />

point to all outside networks. RT1 and RT3 are considered in stub networks.<br />

- Default routes can be configured by substituting the destination network and subnet mask with<br />

wildcards (0.0.0.0) in the ip route static routing configuration command.<br />

- Default Routing configuration on RT1:<br />

RT1(config)#no ip route 192.168.3.0 255.255.255.0<br />

RT1(config)#no ip route 192.168.4.0 255.255.255.0<br />

RT1(config)#no ip route 192.168.5.0 255.255.255.0<br />

RT1(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.2<br />

RT1(config)#^Z<br />

RT1#<br />

RT1#sh ip route<br />

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP<br />

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area<br />

E1 - OSPF external type 1, E2 - OSPF external type 2, E – EGP<br />

Gateway of last resort is 192.168.2.2 to network 0.0.0.0<br />

C 192.168.1.0/24 is directly connected, FastEthernet1/0<br />

C 192.168.2.0/24 is directly connected, Serial0/0<br />

S* 0.0.0.0/0 [1/0] via 192.168.2.2<br />

RT1#<br />

- Notice the Gateway of last resort in the routing table. An asterisk (*) indicates a default route.<br />

84<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!