R1
sys
sysname R1
int g0/0/0
ip add 10.100.30.1 23
R2
sys
sysname R2
int g0/0/0
ip add 10.100.31.1 23
SW1
sys
sysname SW1
vlan 2
vlan 3
port-group vlan2
group-member e0/0/1 to e0/0/21
port link-type hybrid
port hybrid pvid vlan 2
port hybrid untagged vlan 2
quit
int e0/0/22
port link-type hybrid
port hybrid tagged vlan 2 to 3
SW2
sys
sysname SW2
vlan 2
vlan 3
port-group vlan3
group-member g0/0/1 to g0/0/21
port link-type hybrid
port hybrid pvid vlan 3
port hybrid untagged vlan 3
quit
int g0/0/22
port link-type hybrid
port hybrid tagged vlan 2 to 3
int g0/0/24
port link-type hybrid
port hybrid tagged vlan 2 to 3
SW3
sys
sysname SW3
vlan 2
vlan 3
port-group vlan3
group-member g0/0/1 to g0/0/21
port link-type hybrid
port hybrid pvid vlan 3
port hybrid untagged vlan 3
quit
int g0/0/22
port link-type hybrid
port hybrid tagged vlan 2 to 3
int g0/0/24
port link-type hybrid
port hybrid tagged vlan 2 to 3
當vLan2, vLan3需要連通時
SW1
port-group vlan2
port hybrid untagged vlan 3
SW2
port-group vlan3
port hybrid untagged vlan 2
SW3
port-group vlan3
port hybrid untagged vlan 2
還原
SW1
port-group vlan2
undo port hybrid vlan 3
SW2
port-group vlan3
undo port hybrid vlan 2
SW3
port-group vlan3
undo port hybrid vlan 2