拓扑图
命令
1.创建VLAN
S1:
sys
sysname S1
vlan 10
description RD
vlan 20
description Market
int e0/0/2
port link-type access
port default vlan 10
int e0/0/3
port link-type access
port default vlan 20
q
S2:
sys
sysname S2
vlan 10
description RD
vlan 20
description Market
int e0/0/3
port link-type access
port default vlan 10
int e0/0/4
port link-type access
port default vlan 20
q
S3:
sys
sysname S3
vlan 10
description RD
vlan 20
description Market
q
display vlan
S3:
display vlan summary
S1 S2:
display port vlan
2.测试PC1和PC3的连通性
3.配置Trunk端口
S1:
int e0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
q
S2:
int e0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20
q
display port vlan
S3:
int g0/0/1
port link-type trunk
port trunk allow-pass vlan all
int g0/0/2
port link-type trunk
port trunk allow-pass vlan all
q