OcNOS-SP : Layer 2 Guide : Layer 2 Command Reference : VLAN and Private VLAN Commands : switchport trunk native
switchport trunk native
Use this command to configure native VLANs for this port. The native VLAN is used for classifying the incoming untagged packets.
Use the no parameter to revert the native VLAN to the default VLAN identifier 1.
Command Syntax
switchport trunk native vlan VLAN_ID
no switchport trunk native vlan
Parameter
VLAN_ID
VLAN identifier(s) <1-4094>. You can specify a single VLAN, or a VLAN list.
For a VLAN list, specify the VLAN identifiers separated by commas. Do not enter spaces in between the hyphens or commas.
Default
The default is that ingress filtering is off and all frame types are classified and accepted.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface eth0
(config-if)#switchport trunk native vlan 2
 
(config)#interface eth0
(config-if)#no switchport trunk native vlan
Last modified date: 07/06/2023