cdp and telnet & other divece learning

26
Ch.4 – Learning About Other Devices (CDP and Telnet) CCNA 1 version 3.0 Rick Graziani Cabrillo College

Upload: raj

Post on 30-May-2018

229 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 1/26

Ch.4 – Learning About Other Devices (CDP and Telnet)

CCNA 1 version 3.0

Rick Graziani

Cabrillo College

Page 2: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 2/26

Page 3: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 3/26

Rick Graziani [email protected] 3

Overview

Students completing this module should be able to:

• Enable and disable CDP

• Use the show cdp neighbors command

• Determine which neighboring devices are connected towhich local interfaces

• Gather network address information about neighboringdevices using CDP

• Establish a Telnet connection

• Verify a Telnet connection

• Disconnect from a Telnet session• Suspend a Telnet session

• Perform alternative connectivity tests

• Troubleshoot remote terminal connections

Page 4: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 4/26

Rick Graziani [email protected] 4

Introduction to CDP

• Cisco Discovery Protocol (CDP) is a Layer 2 protocol that connectslower physical media and upper network layer protocols.

• CDP is used to obtain information about neighboring devices, such as:

 – the types of devices connected

 – the router interfaces they are connected to

 – the interfaces used to make the connections

 – the model numbers of the devices

• CDP is media and protocol independent, and runs on all Ciscoequipment over the Subnetwork Access Protocol (SNAP).

Page 5: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 5/26

Rick Graziani [email protected] 5

Information obtained with CDP

• CDP Version 2 (CDPv2) is the most recent release of the protocol.

Cisco IOS (Release 12.0(3)T or later) supports CDPv2.

• CDP Version 1 (CDPv1) is enabled by default with Cisco IOS (Release

10.3 to 12.0(3)T).

Page 6: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 6/26

Rick Graziani [email protected] 6

Implementation, monitoring, and

maintenance of CDP

Remote router’s interfaceThis router’s interface

• 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 allsupported interfaces to send and receive CDP information.

• CDP could be enabled on each of the devices interfaces by using the

cdp enable command.

Page 7: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 7/26Rick Graziani [email protected] 7

Implementation, monitoring, and

maintenance of CDP

Page 8: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 8/26Rick Graziani [email protected] 8

Implementation, monitoring, and

maintenance of CDP

Page 9: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 9/26Rick Graziani [email protected] 9

Implementation, monitoring, and

maintenance of CDP

Page 10: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 10/26Rick Graziani [email protected] 10

Implementation, monitoring, and

maintenance of CDP

Page 11: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 11/26Rick Graziani [email protected] 11

Disabling CDP

To disable CDP on a specific interface after it

has been enabled, use the no CDP enable 

command in interface configuration mode. 

Page 12: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 12/26Rick Graziani [email protected] 12

Troubleshooting CDP

Page 13: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 13/26Rick Graziani [email protected] 13

Getting Information about Remote Devices

• Establish a Telnet connection

• Verify a Telnet connection

• Disconnect from a Telnet session

• Suspend a Telnet session

• Perform alternative connectivity tests• Troubleshoot remote terminal connections

Page 14: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 14/26Rick Graziani [email protected] 14

Telnet

• Telnet is a virtual terminal protocol that is part of the

TCP/IP protocol suite.

• It allows connections to be made to remote hosts.

E t bli hi d if i T l t

Page 15: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 15/26Rick Graziani [email protected] 15

Establishing and verifying a Telnet

connection

• To initiate a Telnet session any of the following alternatives can beused:

Denver>connect paris

Denver> paris

Denver>131.108.100.152

Denver>telnet paris

• A hostname table or access to DNS for Telnet must be present for aname to work.

• Otherwise, the IP address of the remote router must be entered.

E t bli hi d if i T l t

Page 16: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 16/26Rick Graziani [email protected] 16

RouterA#conf t

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

RouterA(config)#ip host RouterA 10.1.1.1

RouterA(config)#exit

RouterA#telnet routera

Trying RouterA (10.1.1.1)... Open

User Access Verification

Password:

RouterB>

• This is where the ip host commands can be helpful.

Does not have to be the router-name

but it is generally a good idea.

Not case sensitive.

Establishing and verifying a Telnet

connection

Page 17: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 17/26Rick Graziani [email protected] 17

• You must have the vty password set on the remote routers.

• We will always use cisco as our vty passwords!

RouterA>telnet 10.1.1.1

Trying 10.1.1.1 ... Open

Password required, but none set

[Connection to 10.1.1.1 closed by foreign host]

RouterA>

RouterA>telnet 10.1.1.1

Trying 10.1.1.1 ... Open

User Access Verification

Password:cisco

RouterB>

RouterB>exit

[Connection to 10.1.1.1 closed by foreign host]

RouterA>

RouterB(config)#line vty 0 4

RouterB(config-line)#login

RouterB(config-line)# password cisco

Configure vty password

on RouterB

Telnet works! Enter vty password

Exit closes (ends) telnet session

Telnet password – line vty

Page 18: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 18/26Rick Graziani [email protected] 18

RouterA>telnet 10.1.1.1

Trying 10.1.1.1 ... Open

User Access Verification

Password:cisco

RouterB>ena

% No password set

RouterB>exit

RouterA>telnet 10.1.1.1

Trying 10.1.1.1 ... Open

User Access Verification

Password:cisco

RouterB>enaPassword:class

RouterB#exit

[Connection to 10.1.1.1 closed by foreign host]

RouterA>

Cannot enter privilege mode because there is no privilege

password (enable secret). Can only enter this mode from

the console until the password is created.

•If there is no privilege password on the remote router, you cannot

enter privilege mode!

RouterB(config)#enable secret class

Configure vty password

on RouterB

Telnet and the privilege password

Di ti d di T l t

Page 19: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 19/26Rick Graziani [email protected] 19

Disconnecting and suspending Telnet

sessions

• A session is suspended for a limited time, to resume a Telnet sessionthat has been suspended, just press Enter .

• The command show sessions will show what Telnet sessions are

taking place.

Page 20: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 20/26Rick Graziani [email protected] 20

RouterA>connect

Host: 10.1.1.1

Trying 10.1.1.1 ... Open

User Access Verification

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

[Connection to 10.1.1.1 closed by foreign host]

RouterA>show sessions

% No connections open

RouterA>

•If there is no privilege password on the remote router, you cannot enter 

privilege mode!

Or the “telnet” command

Disconnecting and suspending Telnet sessions

Page 21: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 21/26Rick Graziani [email protected] 21

Advanced Telnet operation

• If the resume command is used it requires a connection ID.

• The connection ID is shown by using the show sessions command.

Page 22: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 22/26Rick Graziani [email protected] 22

Alternative connectivity tests

• As an aid to diagnosing basic network connectivity, manynetwork protocols support an echo protocol.

• The ping target 172.16.1.5 in Figure respondedsuccessfully to all five datagrams sent.

• The exclamation points (!) indicate each successful echo.

• If one or more periods (.) are received instead of exclamations on the display, the application on the router (or source device) timed out waiting for a given packet

echo from the ping target.

Page 23: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 23/26Rick Graziani [email protected] 23

Alternative connectivity tests

• More on ping (ICMP Echo) in a special presentation.

Page 24: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 24/26Rick Graziani [email protected] 24

Alternative connectivity tests

• The traceroute command is the ideal tool for finding where data isbeing sent in a network.

• If one of these routers is unreachable, three asterisks (*) will bereturned instead of the name of the router.

• The traceroute command will continue attempting to reach the nextstep until the Ctrl-Shift-6 escape sequence is used.

Page 25: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 25/26

Rick Graziani [email protected] 25

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.

Page 26: Cdp and Telnet & Other Divece Learning

8/14/2019 Cdp and Telnet & Other Divece Learning

http://slidepdf.com/reader/full/cdp-and-telnet-other-divece-learning 26/26

Summary