Configuration Guide    Private VLAN Configuration 
The following example configures Secondary VLAN routing: 
Ruijie# configure terminal 
Ruijie(config)# interface vlan 202 
Ruijie(config-if)# private-vlan mapping add 303-307,309,440 
Ruijie(config-if)# end 
Ruijie# 
 
The primary VLAN and the secondary VLANs in this process are associated. 
Configuring a Layer 2 Interface as the Host Port of a Private VLAN 
To configure a layer 2 interface as the Host Port of a private VLAN, execute the 
following commands:   
Enter the global configuration mode. 
Enter the interface configuration mode. 
Three kinds of interfaces are available: fastethernet, 
GE and 10GE. 
switchport mode private-vlan host 
Configure the interface as the host interface of the 
private VLAN. 
Remove the configuration. 
switchport private-vlan 
host-association p_vid s_vid 
Associate the layer 2 interface with the private VLAN. 
no switchport private-vlan 
host-association 
For example: 
Ruijie# configure terminal 
Ruijie(config)# interface gigabitEthernet 0/2 
Ruijie(config-if)# switchport mode private-vlan host 
Ruijie(config-if)# switchport private-vlan host-association 
202 203 
Ruijie(config-if)# end 
 
The primary VLAN and the secondary VLANs in this process are associated.