Experiment configuring Telnet on the router
"experiment name"
Configure Telnet on the Router.
"experimental purpose"
Learn how to configure Telnet on a router to enable remote login access to the Router.
"background description"
When routers are used to connect multiple subnets, the placement is usually far apart, and it is more difficult to see and modify the Configuration.
At this point, if you can telnet to the router to operate, you will be able to significantly reduce the workload of Administrators.
"demand analysis"
Need to know how to configure the password for the router, How to configure the Telnet service, and how to Telnet
The method by which the router Operates.
"experimental topology"
Fig. 6-2 Experimental topological diagram
"experimental equipment"
Router (with serial port) 2 units
v.35 Dce/dte Cable 1 Pair
"pre-knowledge"
How routers work and basic configuration methods
"experimental principle"
Connect two routers via serial port to v.35 DTE/DCE cable, configure Telnet separately to
Log in to each other with a Telnet method.
The router provides a WAN interface (serial high-speed synchronous serial port) that connects the WAN interface link with the v.35 cable.
On a WAN connection, one end is DCE (data communication Device) and one end is DTE (data terminal device). Requirements must be in
The DCE terminal configures the clock rate to ensure link connectivity.
"experimental steps"
First Step: Configure the name of the router, the interface IP address, and the clock
R3740#configure Terminal
Enter configuration commands, one per Line. End with CNTL/Z.
R3740 (config) #hostname RouterA
! Configure the name of the router
RouterA (config) #interface Serial 4/0
! Interface configuration mode into the serial port
RouterA (config-if) #clock Rate 512000
! Set the clock frequency for the DCE end
RouterA (config-if) #ip Address 192.168.1.1 255.255.255.0
! Configure Interface IP Address
RouterA (config-if) #no shutdown
! Enable ports
RouterA (config-if) #exit
R3740#configure Terminal
Enter configuration commands, one per Line. End with CNTL/Z.
R3740 (config) #hostname Routerb
Routerb (config) #interface Serial 4/0
Routerb (config-if) #ip Address 192.168.1.2 255.255.255.0
Routerb (config-if) #no shutdown
Routerb (config-if) #exit
Step Two: Configure Telnet
RouterA (config) #enable Password Ruijie
! Configure the Router's privileged mode password
RouterA (config) #line vty 0 4
! Enter thread configuration mode
RouterA (config-line) #password Star
! Configure the Telnet password
RouterA (config-line) #login
! To authenticate when you set Telnet logon
RouterA (config-line) #end
Routerb (config) #enable Password Ruijie
Routerb (config) #line vty 0 4
Routerb (config-line) #password Star
Routerb (config-line) #login
Routerb (config-line) #end
Step three: test network connectivity and log in to the router in Telnet mode
Routerb#ping 192.168.1.1
Sending 5, 100-byte ICMP echoes to 192.168.1.1, timeout is 2 seconds:
< Press CTRL + C to break >
!!!!!
Success rate is percent (5/5), round-trip Min/avg/max = 1/2/10 ms
Routerb#telnet 192.168.1.1
Trying 192.168.1.1, 23 ...
User Access Verification
Password:
! Prompt for Telnet password, enter Ruijie here
routera>en
Password:
! Prompt for privileged mode password, enter star here
Routera#en
! Telnet to router A for configuration
routera#
Routera#conf T
Enter configuration commands, one per Line. End with CNTL/Z.
RouterA (config) #exit
routera#
routera#
Routera#exit
! Use the exit command to exit Telnet login
routerb#
Routera#ping 192.168.1.2
Sending 5, 100-byte ICMP echoes to 192.168.1.2, timeout is 2 seconds:
< Press CTRL + C to break >
!!!!!
Success rate is percent (5/5), round-trip Min/avg/max = 1/4/10 ms
Routera#telnet 192.168.1.2
Trying 192.168.1.2, 23 ...
User Access Verification
Password:
routerb>en
Password:
routerb#
Routerb#conf T
Enter configuration commands, one per Line. End with CNTL/Z.
Routerb (config) #exit
routerb#
Routerb#exit
routera#
"precautions"
1. If two routers are connected directly through the serial port, the clock frequency (DCE) must be set at one end.
2, If the Telnet password is not configured, the login will prompt "Password required, but none set".
3, If the Enable password is not configured, then remote login to the router can not enter the privileged mode, prompting
"Password required, but none set".
"reference configuration"
Routera#show Running-config
Building configuration ...
Current configuration:582 bytes
!
Version Rgnos 10.1.00 (4), Release (18443) (Tue Jul 21:16:17 CST 2007-ubu1server)
Hostname RouterA
!
!
Enable password 7 035122110c3706
!
Interface Serial 4/0
IP address 192.168.1.1 255.255.255.0
Clock rate 512000
!
Interface Serial 4/1
Clock rate 64000
!
Interface Gigabitethernet 0/0
Duplex Auto
Speed auto
!
Interface Gigabitethernet 0/1
Duplex Auto
Speed auto
!
!
Line con 0
Line aux 0
Line vty 0 4
Login
Password 7 0133574225
!
End
Routerb#show Running-config
Building configuration ...
Current configuration:562 bytes
!
Version Rgnos 10.1.00 (4), Release (18443) (Tue Jul 21:16:17 CST 2007-ubu1server)
Hostname Routerb
!
!
Enable password 7 0251563e120f3b
!
Interface Serial 4/0
IP address 192.168.1.2 255.255.255.0
!
Interface Serial 4/1
Clock rate 64000
!
Interface Gigabitethernet 0/0
Duplex Auto
Speed auto
!
Interface Gigabitethernet 0/1
Duplex Auto
Speed auto
!
Line con 0
Line aux 0
Line vty 0 4
Login
Password 7 0059344251
!
End
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "spacer.gif"/>650 "this.width=650;" src= "http ://s1.51cto.com/wyfs02/m02/87/ce/wkiol1fipiqtwy08aaan1djkgv0547.png-wh_500x0-wm_3-wmp_4-s_2608742140.png "title = "qq picture 20160921155230.png" alt= "wkiol1fipiqtwy08aaan1djkgv0547.png-wh_50"/>
This article from the "12035317" blog, reproduced please contact the author!
1 Configuring Telnet on the router