SUNIX Co., Ltd.
TEL : +886-2-8913-1987
Email : [email protected]
Vlanmode
[portbase| 802.1q |
gvrp]
V
To set switch VLAN mode.
switch(vlan)# vlanmode portbase
or
switch(vlan)# vlanmode 802.1q
or
switch(vlan)# vlanmode gvrp
no vlan
V
Disable VLAN.
Ported based VLAN configuration
vlan port-based
grpname
[Group Name]
grpid
[GroupID]
port
[PortNumbers]
V
Add new port based VALN.
switch(vlan)# vlan port-based grpname test grpid
2 port 2-4
show vlan
[GroupID]
or
show vlan
V
Show VLAN information.
switch(vlan)#show vlan 23
no vlan group
[GroupID]
V
Delete port base group ID.
switch(vlan)#no vlan group 2
IEEE 802.1Q VLAN
vlan 8021q name
[GroupName]
vid
[VID]
V
Change the name of VLAN group, if
the group didn’t exist, this
command can’t be applied.
switch(vlan)#vlan 8021q test vid 22
vlan 8021q port
[PortNumber]
access-link untag
[UntaggedVID]
V
Assign an access link for VLAN by
port, if the port belong to a trunk
group, this command can’t be
applied.
switch(vlan)#vlan 8021q port 3 access-link untag
33
vlan 8021q port
[PortNumber]
trunk-link tag
[TaggedVID List]
V
Assign a trunk link for VLAN by port,
if the port belong to a trunk group,
this command can’t be applied.
switch(vlan)#vlan 8021q port 3 trunk-link tag
2,3,6,99
or
switch(vlan)#vlan 8021q port 3 trunk-link tag
3-20
vlan 8021q port
[PortNumber]
hybrid-link untag
[UntaggedVID]
tag
[TaggedVID List]
V
Assign a hybrid link for VLAN by
port, if the port belong to a trunk
group, this command can’t be
applied.
switch(vlan)# vlan 8021q port 3 hybrid-link
untag 4 tag 3,6,8
or
switch(vlan)# vlan 8021q port 3 hybrid-link
untag 5 tag 6-8
vlan 8021q trunk
[PortNumber]
access-link untag
[UntaggedVID]
V
Assign an access link for VLAN by
trunk group.
switch(vlan)#vlan 8021q trunk 3 access-link
untag 33
vlan 8021q trunk
[PortNumber]
trunk-link tag
[TaggedVID List]
V
Assign a trunk link for VLAN by trunk
group.
switch(vlan)#vlan 8021q trunk 3 trunk-link tag
2,3,6,99
or
switch(vlan)#vlan 8021q trunk 3 trunk-link tag
3-20
vlan 8021q trunk
[PortNumber]
hybrid-link untag
[UntaggedVID]
tag
[TaggedVID List]
V
Assign a hybrid link for VLAN by
trunk group.
switch(vlan)# vlan 8021q trunk 3 hybrid-link
untag 4 tag 3,6,8
or
switch(vlan)# vlan 8021q trunk 3 hybrid-link
untag 5 tag 6-8
show vlan
[GroupID]
or
show vlan
V
Show VLAN information.
switch(vlan)#show vlan 23
no vlan group
[GroupID]
V
Delete port base group ID.
switch(vlan)#no vlan group 2
5.3.5
S
PANNING
T
REE
C
OMMANDS
S
ET
Commands
Level
Description
Example
spanning-tree enable
G
Enable spanning tree.
switch(config)#spanning-tree enable
spanning-tree
priority
[0~61440]
G
Configure spanning tree priority
parameter.
switch(config)#spanning-tree priority 32767
spanning-tree
max-age
[seconds]
G
Use the spanning-tree max-age
global configuration command to
change the interval between
messages the spanning tree receives
from the root switch. If a switch
does not receive a bridge protocol
data unit (BPDU) message from the
root switch within this interval, it
recomputed the Spanning Tree
Protocol (STP) topology.
switch(config)# spanning-tree max-age 15