DES-7200 Configuration Guide Chapter 8 Private VLAN Configuration
8-7
8.2.5 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:
Command Description
configure terminal
Enter the global configuration mode.
interface <interface>
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.
no switchport mode
Remove the configuration.
End
Exit the interface mode.
switchport private-vlan
host-association p_vid s_vid
Associate the layer 2 interface with the private VLAN.
no switchport private-vlan
host-association
Remove the association.
For example:
DES-7200# configure terminal
DES-7200(config)# interface gigabitEthernet 0/2
DES-7200(config-if)# switchport mode private-vlan host
DES-7200(config-if)# switchport private-vlan host-association
202 203
DES-7200(config-if)# end
Note
The primary VLAN and the secondary VLANs in this process are
associated.
8.2.6 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:
Command Description