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-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-160)
4-222
Table 4-69
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-222
IC
4-223
IC
4-224
IC
4-224
IC
4-225
IC
4-226
IC
4-217
IC
4-227
IC
4-245
Need help?
Do you have a question about the 8126PL2-F - annexe 1 and is the answer not in the manual?
Questions and answers