
VLAN Commands Set
Commands | Command | Description |
| Defaults | Example |
Level |
| ||||
|
|
|
|
| |
|
|
|
|
|
|
| Privileged | To enter the VLAN |
|
| Switch# vlan |
Vlan datatbase | configuration |
|
| database | |
EXEC mode |
|
| |||
| interface |
|
| Switch(vlan)# | |
|
|
|
| ||
|
|
|
|
|
|
vlanmode |
| To set switch |
|
|
|
VLAN | VLAN mode .Use |
|
|
| |
[disable |
|
| Switch (vlan)# | ||
database | the no form of this |
| Disable | ||
portbase |
| vlanmode 802.1q | |||
mode | command to |
|
| ||
802.1q gvrp] |
|
|
| ||
| restore to default. |
|
|
| |
|
|
|
|
| |
|
|
|
|
|
|
|
| Port Base VLAN |
|
| |
|
|
|
|
|
|
vlan [Group | VLAN |
|
|
|
|
Name] grpid | Add new Port Base |
|
| Switch (vlan)# vlan | |
database |
|
| |||
[Group ID] port | VLAN |
|
| v2 grpid 2 port | |
mode |
|
| |||
[Port ID] |
|
|
|
| |
|
|
|
|
| |
|
|
|
|
|
|
no vlan [Group | VLAN | Delete port base |
|
| Switch (vlan)# no |
Name] [Group | database |
|
| ||
VLAN group |
|
| vlan v2 2 | ||
ID] | mode |
|
| ||
|
|
|
| ||
|
|
|
|
|
|
show vlan | VLAN | Show VLAN of |
|
|
|
[Group Name] | Group Name or |
|
| Switch (vlan)# | |
database |
|
| |||
[Group ID] or | Group ID |
|
| Show vlan v2 2 | |
mode |
|
| |||
show vlan | information |
|
|
| |
|
|
|
| ||
|
|
|
|
|
|
vlan [Group | VLAN | Set the port of |
|
| Switch (vlan)# vlan |
name] add | database |
|
| ||
some port group |
|
| v2 add 5 | ||
[port ID] | mode |
|
| ||
|
|
|
| ||
|
|
|
|
|
|
30