C
VLAN I
ONFIGURING
interface vlan
E
XAMPLE
The following example adds a VLAN, using VLAN ID 105 and name RD5.
The VLAN is activated by default.
Console(config)#vlan database
Console(config-vlan)#vlan 105 name RD5 media ethernet
Console(config-vlan)#
R
C
ELATED
OMMANDS
show vlan (1139)
NTERFACES
Table 136: Commands for Configuring VLAN Interfaces
Command
Function
interface vlan
Enters interface configuration mode for a specified
VLAN
switchport acceptable-
Configures frame types to be accepted by an interface IC
frame-types
switchport allowed vlan
Configures the VLANs associated with an interface
switchport forbidden vlan
Configures forbidden VLANs for an interface
switchport gvrp
Enables GVRP for an interface
switchport
Enables ingress filtering on an interface
ingress-filtering
switchport mode
Configures VLAN membership mode for an interface
switchport native vlan
Configures the PVID (native VLAN) of an interface
switchport priority default
Sets a port priority for incoming untagged frames
vlan-trunking
Allows unknown VLANs to cross the switch
This command enters interface configuration mode for VLANs, which is
used to configure VLAN parameters for a physical interface.
S
YNTAX
[no] interface vlan vlan-id
vlan-id - ID of the configured VLAN. (Range: 1-4094)
D
S
EFAULT
ETTING
None
C
M
OMMAND
ODE
Global Configuration
– 1133 –
| VLAN Commands
C
36
HAPTER
Configuring VLAN Interfaces
Mode
IC
IC
IC
IC
IC
IC
IC
IC
IC