Title: How to configure the trunk interface to make only certain VLANs pass through on Ruijie switch? [Print this page] Author: GTAC-Sophia Time: 2022-11-13 17:16 Title: How to configure the trunk interface to make only certain VLANs pass through on Ruijie switch? You can use the following command to configuretrunk port and permit special VLANs on Ruijie switch.
Ruijie>enable
Ruijie#configure ter
Ruijie(config)#interface g0/1
Ruijie(config-if-GigabitEthernet 0/1)#switchport trunk allowed vlan remove +number // After added, this vlan cannot pass theinterface
Ruijie(config-if-GigabitEthernet 0/1)#switchport trunk allowed vlan only +number // After added, only this vlan passes throughthe interface
Ruijie(config-if-GigabitEthernet 0/1)#switchport trunk allowed vlan add +number // After added, this vlan can pass throughthe interface (add the passed vlan on the original basis)
Ruijie(config-if-GigabitEthernet 0/1)#switchport trunk allowed vlan except +number // After added, other vlans can pass theinterface except the vlan