第四章 交換機劃分Vlan配置
交換機劃分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
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
switch access vlan 3
exit
int fa 0/24
switch mode trunk
end
show vlan
四、實驗結果
PC1 ping PC2 timeout
PC1 ping PC3 Reply
第四章 交換機劃分Vlan配置