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

Create successful ePaper yourself

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

360 Chapter 7 � Managing a <strong>Cisco</strong> Internetwork<br />

Enter Selection: (control+shift+6,then x)<br />

Todd2509#<br />

I successfully used the host table to create a session to two devices and<br />

used the names to telnet into both devices. Notice in the entries in the show<br />

session output below that the hostname now shows up instead of the IP<br />

address.<br />

Todd2509#sh sess<br />

Conn Host Address Byte Idle Conn Name<br />

1 switch 192.168.0.148 0 0 switch<br />

* 2 2501b 172.16.10.2 0 0 2501b<br />

Todd2509#<br />

You can remove a hostname from the table by using the no ip host command,<br />

as in the following example:<br />

RouterA(config)#no ip host routerb<br />

The problem with the host table method is that you would need to create<br />

a host table on each router to be able to resolve names. If you have many<br />

routers and want to resolve names, using DNS is a better choice.<br />

Using DNS to Resolve Names<br />

If you have many devices and don’t want to create a host table in each device,<br />

you can use a DNS server to resolve hostnames.<br />

Anytime a <strong>Cisco</strong> device receives a command it doesn’t understand, it tries<br />

to resolve this through DNS by default. Watch what happens when I type the<br />

special command todd at a <strong>Cisco</strong> router prompt.<br />

Todd2509#todd<br />

Translating "todd"...domain server (255.255.255.255)<br />

% Unknown command or computer name, or unable to find<br />

computer address<br />

Todd2509#<br />

It doesn’t know my name, or what command I am trying to type, so it tries<br />

to resolve this through DNS. This is annoying for two reasons: first, because

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

Saved successfully!

Ooh no, something went wrong!