CH 4
CH 4
CCNA 2
version 3.1
Introduction to CDP
3
Implementation, monitoring, and
maintenance of CDP
• The cdp run command is used to enable CDP globally on the router.
• By default, CDP is globally enabled.
• The cdp enable command is used to enable CDP on a particular
interface.
• On Cisco IOS Release 10.3 or higher, CDP is enabled by default on all
supported interfaces to send and receive CDP information.
• CDP could be enabled on each of the devices interfaces by using the
cdp enable command.
4
Implementation, monitoring, and
maintenance of CDP
5
Implementation, monitoring, and
maintenance of CDP
6
Implementation, monitoring, and
maintenance of CDP
7
Implementation, monitoring, and
maintenance of CDP
8
Disabling CDP
9
Troubleshooting CDP
10
Getting Information about Remote Devices
11
Telnet
12
Establishing and verifying a Telnet
connection
13
Establishing and verifying a Telnet
connection
RouterA#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RouterA(config)#ip host RouterB 10.1.1.1 Does not have to be the router-name
RouterA(config)#exit
but it is generally a good idea.
RouterA#telnet routerb Not case sensitive.
Trying RouterB (10.1.1.1)... Open
Password:
RouterB>
14
Telnet password – line vty
RouterA>telnet 10.1.1.1
Trying 10.1.1.1 ... Open
RouterA>telnet 10.1.1.1
Trying 10.1.1.1 ... Open
• You must have the vty password set on the remote routers.
• We will always use cisco as our vty passwords!
15
Telnet and the privilege password
RouterA>telnet 10.1.1.1
Trying 10.1.1.1 ... Open
Password:cisco
RouterB>ena Cannot enter privilege mode because there is no privilege
% No password set password (enable secret). Can only enter this mode from
RouterB>exit the console until the password is created.
RouterA>telnet 10.1.1.1
Trying 10.1.1.1 ... Open
Password:cisco
RouterB>ena
Password:class
RouterB#exit
[Connection to 10.1.1.1 closed by foreign host]
RouterA>
Password:cisco
RouterB>
RouterB> <control-shift-6, x>
RouterA>show sessions
Conn Host Address Byte Idle Conn Name
* 1 10.1.1.1 10.1.1.1 0 0 10.1.1.1
RouterA> <enter>
[Resuming connection 1 to 10.1.1.1 ... ]
RouterB>exit
21
Alternative connectivity tests
• The traceroute command is the ideal tool for finding where data is being
sent in a network.
• If one of these routers is unreachable, three asterisks (*) will be returned
instead of the name of the router.
• The traceroute command will continue attempting to reach the next step
until the Ctrl-Shift-6 escape sequence is used.
22
Troubleshooting IP addressing issues
• ping uses the ICMP protocol to verify the hardware connection and
the IP address of the network layer. This is a basic testing mechanism.
• telnet verifies the application layer software between source and
destination. This is the most complete test mechanism available.
• traceroute allows the location of failures in the path from the source
to the destination. Trace uses Time to Live values to generate
messages from each router along the path.
23
Summary
24