4
Command Line Interface
Configuring VLAN Interfaces
Command
interface vlan
switchport mode
switchport
acceptable-frame-types
switchport ingress-filtering
switchport native vlan
switchport allowed vlan
switchport gvrp
switchport forbidden vlan
switchport priority default
interface vlan
This command enters interface configuration mode for VLANs, which is used to
configure VLAN parameters for a physical interface.
Syntax
interface vlan vlan-id
vlan-id - ID of the configured VLAN. (Range: 1-4092, no leading zeroes)
Default Setting
None
Command Mode
Global Configuration
Example
The following example shows how to set the interface configuration mode to
VLAN 1, and then assign an IP address to the VLAN:
Console(config)#interface vlan 1
Console(config-if)#ip address 192.168.1.254 255.255.255.0
Console(config-if)#
Related Commands
shutdown (4-171)
4-226
Table 4-64
Configuring VLAN Interfaces
Function
Enters interface configuration mode for a specified VLAN
Configures VLAN membership mode for an interface
Configures frame types to be accepted by an interface
Enables ingress filtering on an interface
Configures the PVID (native VLAN) of an interface
Configures the VLANs associated with an interface
Enables GVRP for an interface
Configures forbidden VLANs for an interface
Sets a port priority for incoming untagged frames
Mode
Page
GC
4-226
IC
4-227
IC
4-227
IC
4-228
IC
4-229
IC
4-230
IC
4-221
IC
4-231
IC
4-269