Chapter 36: VLAN Commands
Configuring VLAN Interfaces
– 1087 –
interface vlan
This command enters interface configuration mode for VLANs, which is
used to configure VLAN parameters for a physical interface. Use the
no
form to change a Layer 3 normal VLAN back to a Layer 2 interface.
S
YNTAX
[
no
]
interface vlan
vlan-id
vlan-id
- ID of the configured VLAN. (Range: 1-4094)
D
EFAULT
S
ETTING
None
C
OMMAND
M
ODE
Global Configuration
C
OMMAND
U
SAGE
•
Creating a “normal” VLAN with the
command initializes it as a
Layer 2 interface. To change it to a Layer 3 interface, use the
command to enter interface configuration for the desired VLAN, enter
any Layer 3 configuration commands, and save the configuration
settings.
•
To change a Layer 3 normal VLAN back to a Layer 2 VLAN, use the
no
command.
E
XAMPLE
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)#
R
ELATED
C
OMMANDS
switchport
acceptable-frame-
types
This command configures the acceptable frame types for a port. Use the
no
form to restore the default.
Sets a port priority for incoming untagged frames
IC
Allows unknown VLANs to cross the switch
IC
Table 36-4: Commands for Configuring VLAN Interfaces (Continued)
Command
Function
Mode
Summary of Contents for SSE-G2252
Page 42: ...44 General IP Routing on page 627...
Page 603: ...Chapter 16 IP Configuration Setting the Switch s IP Address IP Version 6 609...
Page 883: ...Chapter 24 General Security Measures Port based Traffic Segmentation 894...
Page 989: ...Chapter 30 Congestion Control Commands Automatic Traffic Control Commands 1000 Console...
Page 1007: ...Chapter 33 Address Table Commands 1019...
Page 1137: ...Chapter 38 Quality of Service Commands 1150...