ping 的问题:
vlan之间通信需要3层设备,交换机连接一个路由器,然后PC,交换机默认网关都用路由器连接端口的地址,就可以ping通了
telnet 的问题:
cisco设备是很安全的设备,如果不设置vty线路密码(不是enable密码)是不能telnet远程登录的
配置vty密码步骤:
ena
conf t
line vty 0 ?(这里敲问号看具体数字是多少)
password ****(自己设密码)
login
这样就可以telnet了,但是不能enable进去,因为enable密码没有设置(cisco设备很安全,不设不能进)
enable密码设置:
ena
conf t
ena secret ***(自己设密码)
ena password ***(ena secret失效的时候用这个)
这样就可以telnet并配置设备了蛤
楼住给分哦 我认为很详细了``
朋友你好,刚刚我在PT5.1上测试了,推断你的情况是忘了在interface vlan 1接口下输入no shutdown命令了。
希望对你有用。
祝你好运。
原因只有一个:你连接的电脑没设置默认网关,设置成交换机的vlan1的ip就可以了。
如果是路由器就不用设置了
楼上些那么多有误人之嫌了……
Switch(config)#int vlan 1
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config)#int fa0/1
Switch(config-if)#speed 100
Switch(config-if)#switchport mode access
Switch(config-if)#duplex full
Switch(config-if)#no shutdown
Switch(config)#int fa0/3
Switch(config-if)#speed 100
Switch(config-if)#switchport mode access
Switch(config-if)#duplex full
Switch(config-if)#no shutdown
Switch(config)#line vty 0 15
Switch(config-line)#login
Switch(config-line)#password cisco
Switch(config-line)#end
PC-1:Default Gateway . . . . . . . . . : 192.168.1.1
PC-2:Default Gateway . . . . . . . . . : 192.168.1.1