Configure Telnet for a router or switch

Source: Internet
Author: User


Experiment Name: Configure telnet on a router or switch

Experimental purpose: to understand how to configure telneton a router or switch for remote login or telnet access to the switch

Experimental steps:

650) this.width=650; "width=" 510 "height=" 319 "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 "/>

2 Select a color-rendering router to start

650) this.width=650; "width=" 511 "height=" 319 "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 "/>

When not available, you can start the interface with cmd, which appears

650) this.width=650; "width=" 514 "height=" 322 "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 "/>

by the way in the Control Panel - program - turn programs on or off - tick the telnet client

3 in the Open admin interface, enter 172.28.15.102 2004 to enter the Ruijie interface

650) this.width=650; "width=" 516 "height=" 322 "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 "/>

At this point, you can enter show version to show whether you are in the router configuration interface or the switch interface

In turn, the router interface and the switch interface

650) this.width=650; "width=" 525 "height=" 329 "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 "/>

Here is the configuration (only for Configure telnet on the router as an example )

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 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 Aforconfiguration

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".


Configure Telnet for a router or switch

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.