cisco虚拟器pcji机远程登录二层交换机

二层交换机vlan 1的ip是192.168.1.5 PC机的ip是172.168.1.5 它们能不能实现telnet?? 三层交换机我试了,是可以的。我用的是思科虚拟机。

可以的!但是二层交换交换机需要路由器的路由功能,才能telnet。需要单臂路由。命令如下:
二层交换机:
enable
vlan database
vlan 2
exit
configure terminal
enable password cisco
interface vlan 1
ip address 192.168.1.5 255.255.255.0
exit
line vty 0 4
login
password cisco
exit
ip default-gateway 192.168.1.1
interface fastethernet0/2(跟PC相连的接口)
switchport mode access
switchport access vlan 2
exit
interface fastethernet0/24 (跟路由器相连的接口)
switchport trunk encapsulation dot1q
switchport mode trunk

路由器:
enable
configure terminal
interface fastethernet0/0(跟二层交换机相连的接口)
no shutdown
interface fastethernet0/0.1
encapsulation dot1q 1
ip address 192.168.1.1 255.255.255.0
exit
interface fastethernet0/0.2
encapsulation dot1q 2
ip address 172.168.1.1 255.255.255.0

就这样就远程二层交换机的。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2019-11-04
可以私聊我~