Popular Posts

Share |

Wednesday, March 10, 2010

How to Create a VLAN ?

Three methods to create a VLAN


Switch>enable "Enter to privilege mode"
Switch#configure terminal "Enter to Global Configuration mode"
Enter configuration commands, one per line.  End with CNTL/Z.


Method 1
Switch(config)#vlan 10 "Create VLAN 10"
Switch(config-vlan)#name admin "Name VLAN as admin"
Switch(config-vlan)#exit


Method 2
Switch(config)#interface vlan 20 


Method 3
Switch#vlan data "Enter to VLAN database"
% Warning: It is recommended to configure VLAN from config mode,
 as VLAN database mode is being deprecated. Please consult user
 documentation for configuring VTP/VLAN in config mode.


Switch(vlan)#?
VLAN database editing buffer manipulation commands:
exit  Apply changes, bump revision number, and exit mode
no    Negate a command or set its defaults
vlan  Add, delete, or modify values associated with a single VLAN
vtp   Perform VTP administrative functions.


Switch(vlan)#vlan 30 name accounts "Create VLAN 30 and name it as Accounts in VLAN database"
VLAN 30 added:
Name: accounts

No comments:

Post a Comment

Related Posts with Thumbnails