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.

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

Getting Port and Interface Information<br />

The show cdp interface command (sh cdp inter for short) shows the<br />

CDP status on router interfaces or switch ports.<br />

As explained earlier, you can turn off CDP completely on a router by<br />

using the no cdp run command. However, CDP can also be turned off per<br />

interface with the no cdp enable command. You can enable a port with the<br />

cdp enable command. All ports and interfaces default to cdp enable.<br />

On a router, the show cdp interface command shows information<br />

about each interface using CDP, including the encapsulation on the line, the<br />

timer, and the holdtime for each interface. Here is an example of this command’s<br />

output on a router:<br />

Router#sh cdp interface<br />

Ethernet0 is up, line protocol is up<br />

Encapsulation ARPA<br />

Sending CDP packets every 60 seconds<br />

Holdtime is 180 seconds<br />

Serial0 is administratively down, line protocol is down<br />

Encapsulation HDLC<br />

Sending CDP packets every 60 seconds<br />

Holdtime is 180 seconds<br />

Serial1 is administratively down, line protocol is down<br />

Encapsulation HDLC<br />

Sending CDP packets every 60 seconds<br />

Holdtime is 180 seconds<br />

To turn off CDP on one interface on a router, use the no cdp enable<br />

command from interface configuration mode:<br />

Router#config t<br />

Enter configuration commands, one per line. End with CNTL/Z.<br />

Router(config)#int s0<br />

Router(config-if)#no cdp enable<br />

Router(config-if)#^Z<br />

Verify the change with the show cdp interface command:<br />

Router#sh cdp int<br />

Ethernet0 is up, line protocol is up

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

Saved successfully!

Ooh no, something went wrong!