使用eNSP模拟VLAN综合实验
VLAN综合2
实验配套拓扑:VLAN Comprehensive Experiment.topo
目录
拓扑预览
拓扑配置如图所示
要求:
配置VLAN
完成VLAN10和VLAN100间的通讯
完成VLAN20和VLAN200间的通讯
一、VLAN10和VLAN100间的通讯
1.配置SW1
连接主机使用hybrid或access 注意不带标签
交换机互连使用trunk
sys
sys SW1
vlan batch 10 100
int g0/0/1
port link-type trunk
port trunk allow-pass vlan 10 100
int g0/0/3
port hybrid pvid vlan 10
port hybrid untagged vlan 10 100
2.配置SW3
sys
sys SW3
vlan batch 10 100
int g0/0/3
port link-type trunk
port trunk allow-pass vlan 10 100
int g0/0/4
port link-type trunk
port trunk allow-pass vlan 10 100
int g0/0/1
port hybrid pvid vlan 100
port hybrid untagged vlan 10 100
3.配置SW2
sys
sys SW2
vlan batch 10 100
int g0/0/3
port link-type trunk
port trunk allow-pass vlan 10 100
int g0/0/1
port hybrid pvid vlan 10
port hybrid untagged vlan 10 100
4.配置PC1 PC5 PC3
5.测试
在PC1命令行中键入命令
ping 1.0.0.3
二、VLAN20和VLAN200间的通讯
与VLAN10和VLAN100间的通讯同理
1.配置SW1
sys
sys SW1
vlan batch 20 200
int g0/0/1
port link-type trunk
port trunk allow-pass vlan 20 200
int g0/0/2
port hybrid pvid vlan 20
port hybrid untagged vlan 20 200
2.配置SW3
sys
sys SW3
vlan batch 20 200
int g0/0/3
port link-type trunk
port trunk allow-pass vlan 20 200
int g0/0/4
port link-type trunk
port trunk allow-pass vlan 20 200
int g0/0/2
port hybrid pvid vlan 200
port hybrid untagged vlan 20 200
3.配置SW2
sys
sys SW2
vlan batch 20 200
int g0/0/3
port link-type trunk
port trunk allow-pass vlan 20 200
int g0/0/2
port hybrid pvid vlan 20
port hybrid untagged vlan 20 200
4.配置PC2 PC4 PC6
5.测试
在PC2命令行中键入命令
ping 1.0.0.4