一、实验名称
交换机划分Vlan配置
二、实验内容
1.新建 Packet Tracer 拓扑图;
2.划分 VLAN;
3.将端口划分到相应 VLAN 中;
4.设置 Tag VLAN Trunk 属性;
5.测试
三、实验过程
1.将Switch_2960 2 台、 PC 4 台用直连线互联
2.配置各PC的IP地址、网关
PC1
IP: 192.168.1.2
Submark: 255.255.255.0
Gateway: 192.168.1.1
PC2
IP: 192.168.1.3
Submark: 255.255.255.0
Gateway: 192.168.1.1
PC3
IP: 192.168.1.4
Submark: 255.255.255.0
Gateway: 192.168.1.1
PC4
IP: 192.168.1.5
Submark: 255.255.255.0
Gateway: 192.168.1.1
3.配置交换机S1
Switch1
en
conf t
vlan 2
exit
vlan 3
exit
inter fa 0/1
switch access vlan 2
exit
inter fa 0/2
switch access vlan 3
exit
inter fa 0/24
switch mode trunk
end
show vlan
4.配置交换机S2
en
conf t
vlan 2
exit
vlan 3
exit
int fa 0/1
switch access vlan 2
exit
int fa 0/2
switch access vlan 3
exit
int fa 0/24
switch mode trunk
end
show vlan
四、实验结果
PC1 ping PC2 timeout
PC1 ping PC3 Reply
原文地址:http://blog.51cto.com/13396153/2073015