70
MES1000, MES2000 Ethernet Switches
console(config)#
interface
range vlan
1,3,7
console(config-if)#
Table 5.37 —VLAN interface configuration mode commands
Command
Value/
Default value
Action
name
name
(1-64) characters/
name matches VLAN
number
Add VLAN name.
no name
Set the default value.
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
{
fastethernet
fa_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 four 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
Table 5.38 —Ethernet interface configuration mode commands
Command
Value/
Default value
Action
switchport mode
mode
access, trunk, general,
customer/
access
Define port operation mode in VLAN.
no switchport mode
Set the default value.
switchport access vlan
vlan_id
vlan_id
:
(1..4094)/1
Add VLAN for the access interface.
no switchport access vlan
Set the default value.
switchport trunk allowed
vlan add
vlan_list
vlan_list
:
(2..4094, all)
Add VLAN list for the interface.
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 as Default VLAN for this interface, all
untagged traffic, coming to this port, will be directed to this
VLAN.
no switchport trunk native
vlan
Set the default value.
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—untagged packets for VLAN
switchport general allowed
vlan remove
vlan_list
Remove VLAN list for the interface.
switchport general pvid
vlan_id
vlan_id
:
(1..4094)/
1—if default VLAN is
defined, otherwise—4095
Add port VLAN identifier (PVID) for the main interface.
no switchport general pvid
Set the default value.