D-Link DES-7200 Refrigerator User Manual


  Open as PDF
of 1968
 
DES-7200 Configuration Guide Chapter 5 VLAN Configuration
5-15
Command Function
DES-7200(config-if)# switchport
trunk allowed vlan {all | [add |
remove | except] } vlan-list
(Optional) Configure the allowed VLAN list of the
trunk port. The vlan-list parameter may be a VLAN
or a series of VLANs. It starts with a small VLAN
ID and ends with a large VLAN ID. Both IDs are
connected with “-”, such as 10–20.
All: Add all the allowed VLANs to the allowed
VLAN list;
add: Add the specified VLAN list to the allowed
VLAN list;
remove: Remove the specified VLAN list from the
allowed VLAN list;
except: Add all the VLANs other than the
specified VLAN list to the allowed VLAN list.
To restore the allowed VLAN list of the trunk port to its default, execute the no
switchport trunk allowed vlan command in the interface configuration mode.
The following example removes VLAN 2 from the allowed VLAN list of port 1/15:
DES-7200(config)# interface fastethernet 1/15
DES-7200(config-if)# switchport trunk allowed vlan remove 2
DES-7200(config-if)# end
DES-7200# show interfaces fastethernet 1/15 switchport
Interface Switchport Mode Access Native Protected VLAN lists
--------- ---------- ---- ------ ------ -------- ----------
Gi0/15 enabled TRUNK 1 1 Disabled 1,34094
5.3.4 Configuring a
Native VLAN.
Tagged or untagged 802.1Q frames can be received or sent on a trunk port.
Untagged frames are used to transmit the traffic of the native VLAN. By default,
the native VLAN is VLAN 1.
In the privileged mode, you can configure a native VLAN for a trunk port by
executing the following command.
Command Function
DES-7200(config-if)# switchport
trunk native vlan vlan-id
Configure a native VLAN.
To restore the native VLAN of a trunk port to its default, execute the no
switchport trunk native vlan command in the interface configuration
command.