64 MES3000 Ethernet switch series
Table 5.35 —VLAN interface configuration mode commands
name: (1..64)
characters/name
matches VLAN number
Ethernet interface configuration mode commands (interface range), port group interface
Command line request in Ethernet interface, port group interface configuration mode appears as
follows:
console# configure
console(config)# interface {tengigabitethernet te_port | gigabitethernet
gi_port | port-channel group | range {…}}
console(config-if)#
This mode is available from the configuration mode and designed for configuration of interface
parameters (switch port or port group operating in the load distribution mode) or the interface range.
The port can operate in the following modes:
– access—access interface—untagged interface for a single VLAN
– trunk—interface, that accepts the tagged traffic only, except for a single VLAN, that can be
added by switchport trunk native vlan command
– general—interface with 802.1q full support, accepts both tagged and untagged traffic
– customer—802.1 Q-in-Q interface
– promiscuous – receive and transmit private vlan traffic
– host – interface relating to isolated or community vlan
Table 5.36 —Ethernet interface configuration mode commands
mode: (access, trunk,
general,
customer)/access
Define port operation mode in VLAN.
- mode—port operation mode in VLAN.
switchport access vlan vlan_id
Add VLAN for the access interface.
no switchport access vlan
switchport general
acceptableframe-type
{untagged-only | tagged-only |
all}
Accept only specific frame type on the interface:
- untagged-only – only untagged;
- tagged-only – only tagged;
- all – all frames.
switchport trunk allowed vlan
add vlan_list
vlan_list: (2..4094, all)
Add VLAN list for the interface.
- vlan_list—list of VLAN IDs. To define VLAN number range, enter
values separated by commas or separate starting and ending
values with a hyphen '-'.
switchport trunk allowed vlan
remove vlan_list
Remove VLAN list for the interface.
switchport trunk native vlan
vlan_id
vlan_id: (1..4095)/1—if
default VLAN is defined;
4095—untagged traffic
is dropped
Add the defined vlan_id as Default VLAN for this interface, all
untagged traffic, coming to this port, will be directed to this VLAN.
no switchport trunk native
vlan
switchport general allowed
vlan add vlan_list [tagged |
untagged]
vlan_list: (2..4094, all)
Add VLAN list for the interface. Port will send:
- tagged—tagged
- untagged— port will transmit untagged packets for VLAN
- vlan_list—list of VLAN IDs To define VLAN number range, enter
values separated by commas or separate starting and ending
values with a hyphen '-'.
switchport general allowed
vlan remove vlan_list
Remove VLAN list for the interface.