81 |
VLAN Commands Set
|
|
|
|
|
|
| Netstar Commands | Level | Description | Example |
|
| vlan database | P | Enter VLAN configure mode | switch#vlan database |
|
|
|
|
|
|
|
|
|
|
| switch(vlan)#vlanmode portbase |
|
| Vlanmode |
|
| or |
|
| [portbase 802.1q | V | To set switch VLAN mode. | switch(vlan)#vlanmode 802.1q |
|
| gvrp] |
|
| or |
|
|
|
|
| switch(vlan)#vlanmode gvrp |
|
|
|
|
|
|
|
| no vlan | V | No VLAN | Switch(vlan)#no vlan |
|
| Ported based VLAN configuration |
|
| ||
|
|
|
|
|
|
| vlan |
|
|
|
|
| grpname |
|
| switch(vlan)#vlan |
|
| [Group Name] |
|
| grpid 2 port |
|
| grpid | V | Add new port based VALN | or |
|
| [GroupID] |
|
| switch(vlan)#vlan |
|
| port |
|
| grpid 2 port 2,3,4 |
|
| [PortNumbers] |
|
|
|
|
| show vlan [GroupID] |
|
|
|
|
| or | V | Show VLAN information | switch(vlan)#show vlan 23 |
|
| show vlan |
|
|
|
|
|
|
|
|
|
|
| no vlan group | V | Delete port base group ID | switch(vlan)#no vlan group 2 |
|
| [GroupID] |
| |||
|
|
|
|
| |
|
|
|
|
|
|
| IEEE 802.1Q VLAN |
|
|
|
|
|
|
|
|
|
|
| vlan 8021q name |
| Change the name of VLAN |
|
|
| [GroupName] | V | group, if the group didn’t | switch(vlan)#vlan 8021q name test vid 22 |
|
| vid | exist, this command can’t be |
| ||
| [VID] |
| applied. |
|
|
|
|
|
|
|
|
| vlan 8021q port |
| Assign a access link for |
|
|
| [PortNumber] | V | VLAN by port, if the port | switch(vlan)#vlan 8021q port 3 |
|
| belong to a trunk group, this | untag 33 |
| ||
|
|
| |||
| [UntaggedVID] |
| command can’t be applied. |
|
|
|
|
|
|
|
|
| vlan 8021q port |
| Assign a trunk link for | switch(vlan)#vlan 8021q port 3 |
|
|
| tag 2,3,6,99 |
| ||
| [PortNumber] |
| VLAN by port, if the port |
| |
| V | or |
| ||
| belong to a trunk group, this |
| |||
|
| switch(vlan)#vlan 8021q port 3 |
| ||
| [TaggedVID List] |
| command can’t be applied. | tag |
|
|
|
|
|
| |
| vlan 8021q port |
|
| witch(vlan)#vlan 8021q port 3 |
|
| [PortNumber] |
| Assign a hybrid link for |
| |
|
| untag 4 tag 3,6,8 |
| ||
|
| VLAN by port, if the port |
| ||
| V | or |
| ||
| [UntaggedVID] | belong to a trunk group, this |
| ||
| tag |
| command can’t be applied. | switch(vlan)#vlan 8021q port 3 |
|
|
| untag 5 tag |
| ||
| [TaggedVID List] |
|
|
| |
|
|
|
|
| |
|
|
|
|
|
|