Vlan commands set – LevelOne MSL-3S79 User Manual

Page 75

Advertising
background image

69

stp-admin- stp

[disable|enable]

Interface

configuration

mode

Use the stp-admstp interface

configuration command to

configure a port controlled by

stp protocol.

Enable

switch (config)#interface

gigaethernet 1

switch(config-if)# stp-admin stp

enable

40B

VLAN Commands Set

Commands

Command

Level

Description

Default

Example

vlan database

Privileged

EXEC

Enter VLAN configure mode

switch#vlan database

switch(vlan)#

vlanmode

[portbase| 802.1q|

gvrp ]

VLAN database

mode

To set switch VLAN mode.

8021q

switch(vlan)#vlanmode

portbase

or

switch(vlan)#vlanmode 802.1q

or

switch(vlan)#vlanmode gvrp

show vlan
or
show vlan
[GroupName|
VLAN ID]

VLAN database

mode

Show VLAN information

switch(vlan)#show vlan

or

switch(vlan)#show vlan 2

Port Base VLAN mode

no vlan group
[VLAN ID]

VLAN database

mode

Delete port base group ID

switch(vlan)#no vlan group 2

vlan port-based

grpname

[Group Name]

grpid

[VLAN ID]

port

[PortNumbers]

VLAN database

mode

Add new port based VALN

switch(vlan)#vlan port-based

grpname test grpid 2 port 2-4

or

switch(vlan)#vlan port-based

grpname test grpid 2 port 2,3,4

802.1Q | 802.1Q with GVRP VLAN mode*

vlan 8021q name

[GroupName] vid

[VLAN ID] media

VLAN database

mode

Change the name of VLAN

group, if the group didn’t exist,

this command can’t be applied.

switch(vlan)#

vlan 8021q name RD vid 2

media gigaethernet state

Advertising