DES-7200 Configuration Guide Chapter 8 Private VLAN Configuration
8-8
Command Description
DES-7200# configure
terminal
Enter the global configuration mode.
DES-7200(config-if)#
interface <interface>
Enter the interface configuration mode.
Three kinds of interfaces are available:
Megabit, Gigabit, 10 Gigabit.
DES-7200(config-if)#
switchport mode trunk
Configure the trunk mode.
DES-7200(config-if)#
switchport private-vlan
association trunk p_vid
s_vid
OR:
DES-7200(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.
DES-7200(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.
DES-7200(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:
DES-7200# configure terminal
DES-7200(config)# interface gigabitEthernet 0/2
DES-7200(config-if)# switchport mode trunk
DES-7200(config-if)# switchport private-vlan association trunk 202 203
DES-7200(config-if)# switchport trunk allowed vlan 100
DES-7200(config-if)# switchport trunk native vlan 100