Quick Reference Guide

VLAN Commands | 129
interface vlan
This command creates a new VLAN if the identified VLAN ID does not already exist, or else the
command selects the existing VLAN. Then, in either case, the command invokes the Interface VLAN
mode, in which you have access to VLAN configuration commands for the specified VLAN.
Syntax
interface vlan vlanid
The vlanid is a valid VLAN identification number (ID 1 is reserved for the default VLAN). VLAN
range is 2-3965.
The no version of this command deletes an existing VLAN.
Default
None
Mode
Global Config
Command
History
Usage
Information
After using this command to access the Interface VLAN mode (the prompt for the Interface VLAN
mode is (conf-if-vl-<vlan-id>)#), you can configure the selected VLAN.
You can also make configuration changes to a VLAN in the Interface Range mode (see interface range
on page 91) and the Global Config mode. For details on modes, see Chapter 4, “Using the Command
Line Interface,” on page 23.
Example
Figure 7-41. Command Options in the Interface VLAN Mode
Related
Commands
Version 2.3
Introduced. Replaces vlan database and
vlan commands.
Force10 #config
Force10 (Config)#interface vlan 5
Force10 (Conf-if-vl-5)#?
description Add Description to the interface
encapsulation Configure interface link layer encapsulation type.
exit To exit from the mode.
help Display help for various special keys.
igmp Configure IGMP Snooping parameters for the Vlan
ip Configure IP parameters.
mtu Sets the default MTU size.
protocol Configure the Protocols associated with particular
Group Ids.
makestatic Change the VLAN type from 'Dynamic' to 'Static'.
name Configure an optional VLAN Name.
pvid Configure the VLAN id for a specific port.
tagged Configure tagging for a specific VLAN port.
untagged Configure untagging for a specific VLAN port.
Force10 (Conf-if-vl-5)#exit
Force10 (Config)#exit
Force10 #show vlan brief
VLAN ID VLAN Name MAC Aging IP Address
------- -------------------------------- ------------- --------------------
1 Default 300 unassigned
5 300 unassigned
Force10#
dot1p-priority Configures the 802.1p port priority assigned for untagged packets for a specific
interface.
interface Accesses the Interface Config mode for a designated logical or physical interface.