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
Содержание SSE-G2252
Страница 42: ...44 General IP Routing on page 627...
Страница 174: ...Chapter 6 VLAN Configuration Configuring VLAN Mirroring 178 Figure 6 27 Showing the VLANs to Mirror...
Страница 511: ...Chapter 14 Basic Administration Protocols UDLD Configuration 518 Figure 14 100 Displaying UDLD Neighbor Information...
Страница 603: ...Chapter 16 IP Configuration Setting the Switch s IP Address IP Version 6 609...
Страница 883: ...Chapter 24 General Security Measures Port based Traffic Segmentation 894...
Страница 989: ...Chapter 30 Congestion Control Commands Automatic Traffic Control Commands 1000 Console...
Страница 1007: ...Chapter 33 Address Table Commands 1019...
Страница 1137: ...Chapter 38 Quality of Service Commands 1150...
Страница 1366: ...Chapter 46 IP Routing Commands Global Routing Configuration 1381 Connected 2 Total 2 FIB 0 Console...