交换机远程管理的问题

来源:百度知道 编辑:UC知道 时间:2024/05/14 11:56:37
配置完交换机vlan1的IP地址192.168.1.1,还有远程访问密码,交换机特权密码,然后用192.168.1.2的主机TELNET交换机,出现下面提示,请问怎么解决?为社么会这样?

[Connection to 192.168.1.1 closed by foreign host]

sw(config)#line vty 0 4
sw(config-line)#password 123
sw(config-line)#login
sw(config)#interface vlan 1
sw(config-vlan)#ip add 192.168.1.1 255.255.255.0
sw(config-vlan)#no shuntdown
sw(config)#ip default-gateway 192.168.1.254

S-1(config)#line vty 0 15
S-1(config-line)#login
S-1(config-line)#password cisco
S-1(config#enable password level 15 cisco

你确定192.168.1.2的主机连接的端口是在VLAN1里吗。