05.01.2013 Views

CCNA Cisco Certified Network Associate Study Guide - FTP Server

CCNA Cisco Certified Network Associate Study Guide - FTP Server

CCNA Cisco Certified Network Associate Study Guide - FTP Server

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.

254 Chapter 5 � IP Routing<br />

To configure a default route, you use wildcards in the network address<br />

and mask locations of a static route. Think of a default route as a static route<br />

that uses wildcards instead of network and mask information. In this section,<br />

you’ll create a default route on the 2501C router.<br />

Router 2501C is directly connected to networks 172.16.40.0 and<br />

172.16.50.0. The routing table needs to know about networks 172.16.10.0,<br />

172.16.20.0, and 172.16.30.0. To configure the router to route to the other<br />

three networks, I placed three static routes in the routing table. By using a<br />

default route, you can just create one static route entry instead. First, you<br />

must delete the existing static routes from the router, then add the default<br />

route.<br />

2501C(Config)#no ip route 172.16.10.0 255.255.255.0<br />

172.16.40.1<br />

2501C(Config)#no ip route 172.16.20.0 255.255.255.0<br />

172.16.40.1<br />

2501C(Config)#no ip route 172.16.30.0 255.255.255.0<br />

172.16.40.1<br />

2501C(Config)#ip route 0.0.0.0 0.0.0.0 172.16.40.1<br />

If you look at the routing table now, you’ll see only the two directly connected<br />

networks, plus an S*, which indicates that this entry is a candidate for<br />

a default route.<br />

2501C#sh ip route<br />

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

[output cut]<br />

- IS-IS level-1, L2 - IS-IS level-2, * - candidate<br />

default U - per-user static route, o – ODR<br />

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

172.16.0.0/24 is subnetted, 5 subnets<br />

C 172.16.50.0 is directly connected, Ethernet0<br />

C 172.16.40.0 is directly connected, Serial0<br />

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

2501C#<br />

Notice also in the routing table that the gateway of last resort is now set.<br />

However, there is one more command you must be aware of when using<br />

default routes: the ip classless command. All <strong>Cisco</strong> routers are classful

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

Saved successfully!

Ooh no, something went wrong!