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 tagged
40
Ruijie(config-if-GigabitEthernet 0/1)#switchport hybrid allowed vlan tagged
50
The following example removes the hybrid port from VLAN 20.
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 remove 20
The following example adds the hybrid port to VLAN 20 and deletes all the other VLANs. The VLAN
packets going out on the port are 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 only tagged 20
Use this command to configure the native VLAN for the hybrid port. Use the no or default form of this
command to restore the default setting.