S1
sys
sysname S1
int eth-trunk 1
mode lacp-static
trunkport g0/0/9
trunkport g0/0/10
S2
sys
sysname S2
int eth-trunk 1
mode lacp-static
trunkport g0/0/9
trunkport g0/0/10
S1
int eth-trunk 1
port link-type trunk
port trunk allow-pass vlan all
S2
int eth-trunk 1
port link-type trunk
port trunk allow-pass vlan all
S1
vlan batch 2 to 4
int g0/0/13
port link-type access
port default vlan 3
int g0/0/1
port link-type access
port default vlan 4
S2
vlan batch 2 to 4
int g0/0/3
port link-type access
port default vlan 4
int g0/0/18
port link-type access
port default vlan 2
R1
sys
sysname R1
int g0/0/1
ip add 10.0.4.1 24
S3
sys
sysname S3
int vlanif 1
ip add 10.0.4.2 24
R3
sys
sysname R3
int g0/0/2
ip add 10.0.4.3 24
S4
sys
sysname S4
int vlanif 1
ip add 10.0.4.4 24
vLan及Trunk已經成功建立
使用Hybrid的untag功能令R1,R3,S4可以通訊
S1
int g0/0/1
undo port default vlan
port link-type hybrid
port hybrid untagged vlan 2 4
port hybrid pvid vlan 4
S2
int g0/0/3
undo port default vlan
port link-type hybrid
port hybrid untagged vlan 2 4
port hybrid pvid vlan 4
int g0/0/18
undo port default vlan
port link-type hybrid
port hybrid untagged vlan 2 4
port hybrid pvid vlan 2