计算机网络--telnet Cisco

Ø 远程登录条件:
	a. 被登录方开启远程登录功能
	b. 双方能够相互通信
Ø Telnet 远程登录  (采用明文加密、不推荐)
	○ 步骤如下
		§ R1作为登录方 192.168.10.1
		§ R2作为被登录方 192.168.10.254

拓扑

			1) R1配置IP地址打开端口:
			Router>en
			Router#conf
			R(config)#hostname R1
			R1(config)#int g0/0
			R1(config-if)#no shutdown
			R1(config-if)#ip add 192.168.10.1 255.255.255.0
			
			2) R2配置IP地址、打开端口:

			Router(config)#int g0/0
			Router(config-if)#no shutdown
			Router(config-if)#ip add 192.168.10.254 255.255.255.0
			
			3) R2配置Telent:
			Router(config-if)#line vty 0 4                                      //进入vty线路  允许5个用户远程登录
			Router(config-line)#password 123456                     //设置远程登陆密码
			Router(config-line)#login
			Router(config-line)#transport input telent             //开启telnet
			
			4) R1ping R2       //保证双方能够互相通信
			R1#ping 192.168.10.254
			Type escape sequence to abort.
			Sending 5, 100-byte ICMP Echos to 192.168.10.254, timeout is 2 seconds:
			.!!!!
			Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms
			
			5) R1 使用 Telnet远程登陆R2
			R1#telnet 192.168.10.254
			Trying 192.168.10.254 ...Open
			User Access Verification
			Password: 
			R2>en
			% No password set.        //要在R2设置进入特权模式密码
			R2>en
			Password: 
			R2#conf
			Configuring from terminal, memory, or network [terminal]? 
			Enter configuration commands, one per line. End with CNTL/Z.
			R2(config)#
			[Connection to 192.168.10.254 closed by foreign host]
			
			6) R2设置进入特权模式密码
			R2(config)#enable password 123456
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值