Command Reference VLAN Commands
4.5 switchport hybrid allowed
Use this command to add the port to the VLAN or remove the port from the VLAN, Use the no or
default form of this command to restore the default setting.
switchport hybrid allowed vlan { { [ add | only ] tagged vlist | [ add ] untagged vlist } | remove
vlist }
no switchport hybrid allowed vlan
default switchport hybrid allowed vlan
Adds the port to the VLAN.
Adds the port to the VLAN and removes the port from the VLANs not
on the VLAN list.
Adds the port to the VLAN and the VLAN packets going out on the
port are tagged with VLAN ID.
Adds the port to the VLAN and the VLAN packets going out on the
port are not tagged with VLAN ID.
Removes the port from the VLAN.
By default, the hybrid port is in all VLANs. All VLAN packets (except native VLAN packets) going out
on the port are tagged with VLAN ID. Native VLAN packets are not tagged with VLAN ID.
Interface configuration mode
The following example adds the hybrid port to VLAN 20 and VLAN 30 and the VLAN packets going
out on the port are not tagged with VLAN ID.
Ruijie(config)# interface gigabitEthernet 0/1
Ruijie(config-if-GigabitEthernet 0/1)# switchport mode hybrid
Ruijie(config-if-GigabitEthernet 0/1)#switchport hybrid allowed vlan untagged
20
Ruijie(config-if-GigabitEthernet 0/1)#switchport hybrid allowed vlan add
untagged 30
The following example adds the hybrid port to VLAN 40 and VLAN 50 and the VLAN packets going
out on the port are tagged with VLAN ID,