远程telnet路由、交换机配置

在PT中的拓扑图如下:

要实现电脑能telnet远程管理路由和交换机

1.首先要确保4个节点之间能相互通信

配置pc的ip 192.168.1.2/24  网关 192.168.1.1

配置路由f0/1的ip 192.168.1.1/24

Route#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Route(config)#int f0/1
Route(config-if)#ip add 192.168.1.1 255.255.255.0
% 192.168.1.0 overlaps with FastEthernet0/0
Route(config-if)#no shut

配置路由f0/0 ip 193.168.1.1/24

Route(config)#int f0/0
Route(config-if)#ip add 193.168.1.1 255.255.255.0
% 193.168.1.0 overlaps with FastEthernet0/1
Route(config-if)#no shut

由于这个交换机是二层交换机,所以只能配置管理口ip 193.168.1.2/24

并添加网关193.168.1.1

Switch(config)#int vlan 1
Switch(config-if)#ip add 193.168.1.2 255.255.255.0
Switch(config-if)#no shut
Switch(config-if)#exit
Switch(config)#ip default-gateway 193.168.1.1

现在4个节点由红色变为绿色,并能相互之间通信了

2.远程telnet必须配置enable、line密码

Route#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Route(config)#enable password 123
Route(config)#line vty 0 15
Route(config-line)#password 456
Route(config-line)#login
Route(config-line)#end

Switch#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#enable password 123
Switch(config-line)#password 456
Switch(config-line)#login
Switch(config-line)#end

配置完成这些就能在pc上进行远程telnet控制了,telnet上先输入的是line的密码,再输入的是enable的密码。

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值