一、实验名称
交换机划分Vlan配置
二、实验内容
1.新建 Packet Tracer 拓扑图;2.划分 VLAN;3.将端口划分到相应 VLAN 中;4.设置 Tag VLAN Trunk 属性;5.测试
三、实验过程
1.将Switch_2960 2 台、 PC 4 台用直连线互联
2.配置各PC的IP地址、网关
PC1IP: 192.168.1.2Submark: 255.255.255.0Gateway: 192.168.1.1PC2IP: 192.168.1.3Submark: 255.255.255.0Gateway: 192.168.1.1PC3IP: 192.168.1.4Submark: 255.255.255.0Gateway: 192.168.1.1PC4IP: 192.168.1.5Submark: 255.255.255.0Gateway: 192.168.1.1
3.配置交换机S1
Switch1enconf tvlan 2exitvlan 3exitinter fa 0/1switch access vlan 2exitinter fa 0/2switch access vlan 3exitinter fa 0/24switch mode trunkendshow vlan
4.配置交换机S2
enconf tvlan 2exitvlan 3exitint fa 0/1switch access vlan 2exitint fa 0/2switch access vlan 3exitint fa 0/24switch mode trunkendshow vlan
四、实验结果
PC1 ping PC2 timeout
PC1 ping PC3 Reply