| Using Telnet | ||
After your routers and switches are configured, you can use the Telnet program to reconfigure and/or check up on your routers and switches without using a console cable. You run the Telnet program by typing telnet from any command prompt (DOS or Cisco). You need to have VTY passwords set on the routers for this to work. Remember, you can’t use CDP to gather information about routers and switches that aren’t directly connected to your device. But you can use the Telnet application to connect to your neighbor devices, and then run CDP on those remote devices to get information on them. You can issue the telnet command from any router prompt like this: RouterA#telnet 172.16.10.2 As you can see, I didn’t set my passwords—how embarrassing! Remember that the VTY ports on a router are configured as login, meaning that we have to either set the VTY passwords or use the no login command. On a Cisco router, you don’t need to use the telnet command; you can just type in an IP address from a command prompt and the router will assume that you want to telnet to the device. Here’s how that looks: RouterA#172.16.10.2 At this point, it would be a great idea to set those VTY passwords on the router I want to telnet into. Here’s what I did on the remote router: RouterB#config t Now let’s try this again. You'll connecting to the router from
the RouterA console: |
||
Telnetting into Multiple Devices Simultaneously If you telnet to a router or switch, you can end the connection by typing exit at any time. But what if you want to keep your connection to a remote device but still come back to your original router console? To do that, you can press the Ctrl+Shift+6 key combination, release it, and then press X. Here’s an example of connecting to multiple devices from RouterA router console: RouterA#telnet 172.16.10.2 Trying 172.16.10.2 ... Open User Access Verification Password: RouterB>[Cntl+Shift+6, then X] RouterA# |
||
| Checking Telnet Connections RouterA#sh sessions See that asterisk (*) next to connection 2? It means that session 2 was your last session. You can return to your last session by pressing Enter twice. You can also return to any session by typing the number of the connection and pressing Enter twice. |
||
Checking Telnet Users RouterA#sh users In the command’s output, con represents the local console. In this example, the console is connected to two remote IP addresses, or, in other words, two devices. |
||
| ccnaguru.com | ||
|
||