150
4.2.2 VLAN Interface Configuration
4.2.2.1 VLAN Interface Configuration Task List
1. Enter VLAN Mode
2. Configure the IP address for VLAN interface and enable VLAN interface.
1. Enter VLAN Mode
2. Configure the IP address for VLAN interface and enables VLAN interface.
Command Explanation
VLAN Mode
ip address <ip-address> <mask> [secondary]
no ip address [<ip-address> <mask>]
Configures the VLAN interface
IP address; the “
no ip address
[<ip-address> <mask>]”
command deletes the VLAN
interface IP address.
VLAN Mode
Shutdown
no shutdown
Enables/Disables VLAN
interface
4.2.2.2 Command For Vlan Interface
4.2.2.2.1 interface vlan
Command: interface vlan <vlan-id>
no interface vlan <vlan-id>
Function:
Enters Interface Mode; the “
no interface vlan <vlan-id>
“ command deletes
existing VLAN interface.
Parameters: <vlan-id>
is the VLAN ID for the establish VLAN, the valid range is 1 to
4094.
Command mode:
Global Mode
Usage Guide:
Before setting a VLAN interface, the existence of the VLAN must be
verified. Run the
exit
command to exit the VLAN Mode to Global Mode.
Example:
Entering into the Interface Mode for VLAN1.
Switch(Config)#interface vlan 1
Command Explanation
Global Mode
interface vlan <vlan-id>
no interface vlan <vlan-id>
Enters Interface Mode; the “
no
interface vlan <vlan-id>
“ command
deletes specified VLAN interface. .