交换机划分Vlan配置
使用软件“Cisco Packet Tracer Student”
Switch0
Switch>
Switch>en
Switch#conf t
Switch(config)#int fa 0/1
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit
Switch(config)#int fa 0/2
Switch(config-if)#switchport access vlan 3
Switch(config-if)#exit
Switch(config)#int fa 0/24
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch1
Switch>
Switch>en
Switch#conf t
Switch(config)#int fa 0/1
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit
Switch(config)#int fa 0/2
Switch(config-if)#switchport access vlan 3
Switch(config-if)#exit
总结:
1)二级交换机不能跨vlan访问
2)二级交换机之间要设置
Switch(config-if)#switchport mode trunk