思科虚拟配置,做到最后一步打不开远程登录,后登录上了,前面的主机又不能互通
您好!把交换机与交换机连接的接口改成模式:trunk
交换机0 1 2 配置
vlan 10
vlan 20
interface Port-channel1
switchport trunk encapsulation dot1q
switchport mode trunk
interface GigabitEthernet1/0/49 交换机互联口
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode active
!
interface GigabitEthernet1/0/50 交换机互联口
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode active
连接主机0,2,4的口
switchport mode access
switchport access vlan 10
连接主机1,3,5的口
switchport mode access
switchport access vlan 10
交换机1 2
spanning-tree mode rapid-pvst
交换机 1
enable password 123456
交换机2
line vty 0 4
password 654321
login