Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

About the configuration and use of telnet in linux-novice stage

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

1. remote connection configuration

Experimental topology:

Lab requirements: telnet remote connections and local console connections

Experimental steps:

Router1 router:

Router>enable //Enter privileged mode

Router#configure terminal //Enter global mode

Router(config)# hostname Router1 //modify the route name

Router1(config)#interface fastethernet 0/0 //Enter configuration mode for interface 0/0

Router1(config-if)#ip address 192.168.1.254 255.255.255.0

Router1(config-if)#no shutdown //Open interface status

Router1(config-if)#line console 0 //Enter console interface configuration mode

Router1(config-if)#password 123123 //Set console password or no login Cancel password

Router1(config-if)#line vty 0 4 //Enter interface configuration mode for vty0-4

Router1(config-if)#password 123123 //Set password for vty0-4 or no login Cancel password

Router1(config)#exit //return to global mode

Router1(config)#enable password/secret 456456 //Configure privileged mode password (the latter has higher priority)

Router1(config)#do show running-config //View interface configuration information and ip address in configuration

Router1(config)#do write //write startup-config (copy[target f] [new f] will do)

Router2 and Router3 router configuration is almost the same as Router1 configuration, that is, change the hostname is not easy to mix,IP address is not allowed to be the same. But the network bits, including the IP address of PC0, must be exactly the same!

Finally, you can use telnet to access the CLI interface of all routers on pc0, pc1 or all routers;

command:telnet [router interface ip address]

--------------------------------------------------------------------------------------------------------------------------------

Extensions: Shortcuts for local routers to access remote routers

~~#show session #View all active connections for local access to remote

Press Ctrl+Shift+6 --> Release--> Press x key #to suspend the current connection and start again from the local machine

~~#clear line [connection number] #Disconnect one active connection, others remain active (software simulation does not use this command)

~~#resume {[connection number]} #Switch an active connection,[connection number] source can be viewed in show session

experimental results

PC0 can access all routers

Experimental questions:

How do I configure a single vty interface?

If you configure a number of vty port numbers at the same time, then vty [start port number] [end port number]; then a single can be vty [port number]

Summary of the experiment:

a.Vty port login by default, so remote connections cannot be accessed without configuration!

b. Privileged mode password: remote connection must be set password, if not, only in the normal user can not enter privileged mode and global mode

c. When the flip line (cosole line) is connected to the cosole interface in the analog software, the PC is not connected to the ethernet port.

D.PC connection suspend action is not able to do, all show session operations such as suspend connection command is useless, but in the case of this machine is a router, operation suspend connection command can be used, the reason is that the current known suspend view connection command only ios system can recognize,PC machine can not recognize the suspend command. (If the connection fails to hang up, other connections are switched, disconnected, and viewed without meaning)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report