Configuration Guide Private VLAN Configuration
Configuring a Layer 2 Interface as the Isolated PVLAN Trunk Port
To configure a layer 2 interface as the isolated trunk port in the PVLAN, execute
the following commands:
Ruijie# configure terminal
Enter the global configuration mode.
Ruijie(config-if)# interface <interface>
Enter the interface configuration mode.
Three kinds of interfaces are available: Megabit,
Gigabit, 10 Gigabit.
Ruijie(config-if)# switchport mode
trunk
Configure the trunk mode.
Ruijie(config-if)# switchport
private-vlan association trunk p_vid
s_vid
OR:
Ruijie(config-if)# no switchport
private-vlan association trunk p_vid
s_vid
Associate the Layer2 port and the private VLAN.
p_vid: primary vlan id; s_vid: secondary vlan id.
Remove the configuration.
Ruijie(config-if)# switchport trunk
allowed vlan {all | [add | remove |
except] } vlan-list
(Optional) Configure the allowed VLAN list on
the Trunk port.
all: all supported VLANs in the allowed VLAN
list;
add: add the specified VLAN list to the allowed
VLAN list;
remove: remove the specified VLAN from the
allowed VLAN list;
except: add all VLANs beyond the VLAN list to
the allowed VLAN list.
vlan-list:can be a VLAN, or a series of VLAN, for
example, 10-20.
Ruijie(config-if)# switchport trunk
native vlan vlan-id
Configure the Native VLAN
Use the no switchport trunk native command in
the interface configuration mode to restore the
Trunk Native VLAN list to the default VLAN1.
For example:
Ruijie# configure terminal
Ruijie(config)# interface gigabitEthernet 0/2
Ruijie(config-if)# switchport mode trunk
Ruijie(config-if)# switchport private-vlan association trunk 202 203
Ruijie(config-if)# switchport trunk allowed vlan 100
Ruijie(config-if)# switchport trunk native vlan 100