beautypg.com

Vlan commands set – American Fibertek SM10p-PoE User Manual

Page 36

background image






VLAN Commands Set

Commands

Level Description








Example

vlan database

P Enter VLAN configure switch#vlan database

mode

Vlanmode

[portbase| 802.1q |

gvrp]




no vlan

V To set switch VLAN

mode.






V No VLAN

switch(vlan)#vlanmode portbase

or

switch(vlan)#vlanmode 802.1q

or

switch(vlan)#vlanmode gvrp

Switch(vlan)#no vlan

Ported based VLAN configuration

vlan port-based

V Add new port based


switch(vlan)#vlan port-based

grpname

[Group Name]

grpid

[GroupID]

port

[PortNumbers]

show vlan

[GroupID]

or

show vlan

VALN










V Show

VLAN

information

grpname test grpid 2 port 2-4

or

switch(vlan)#vlan port-based

grpname test grpid 2 port 2,3,4




switch(vlan)#show vlan 23

no vlan group

[GroupID]

V Delete port base group switch(vlan)#no vlan group 2

ID

IEEE 802.1Q VLAN

vlan 8021q name

[GroupName]

vid

[VID]




vlan 8021q port

[PortNumber]

V Change the name of

VLAN group, if the

group didn’t exist, this

command can’t be

applied.

V Assign a access link

switch(vlan)#vlan 8021q name

test vid 22






switch(vlan)#vlan 8021q port 3

access-link untag

[UntaggedVID]

for VLAN by port, if the access-link untag 33




29