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
vlan-trunking
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-4094, 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-227)
4-306
Table 4-76
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
Allows unknown VLANs to cross the switch
Mode
Page
GC
4-306
IC
4-307
IC
4-308
IC
4-308
IC
4-309
IC
4-310
IC
4-301
IC
4-311
IC
4-364
IC
4-311