Specifications
switchport trunk
141
switchport trunk
Sets trunk port information.
Syntax
To set information:
switchport trunk allowed vlan <VLAN ID list>
switchport trunk native vlan
<VLAN ID>
To change information:
switchport trunk native vlan <VLAN ID>
switchport trunk allowed vlan {
<VLAN ID list> | add <VLAN ID list> | remove
<VLAN ID list>}
To delete information:
no switchport trunk allowed vlan
no switchport trunk native vlan
Input mode
(config-if)
Parameters
native vlan <VLAN ID>
Sets the native VLAN (VLAN that sends and receives untagged frames). Specifiable
VLANs are port VLANs. If the native VLAN is not set explicitly, the default VLAN
becomes the native VLAN.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
See Specifiable values for parameters.
allowed vlan <VLAN ID list>
Sets the VLANs that use a trunk port for sending and receiving frames.
The frames of VLANs that have not been set are discarded.
To send and receive untagged frames, you must set the native VLAN. If you do not
set the native VLAN to
allowed vlan, untagged frames are discarded.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
For details about how to specify <VLAN ID list> and the specifiable range of
values, see Specifiable values for parameters.
add <VLAN ID list>
Adds a VLAN to the VLAN list that is set.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
For details about how to specify <VLAN ID list> and the specifiable range of