7 commands for vlan – KBC Networks ESML6-FL2 User Manual

Page 39

Advertising
background image

Ethernet Switch User Manual

Manual_sw-ESML6-FL2-Rev1106

Copyright © KBC Networks Ltd.

Page 38 of 64

www.kbcnetworks.com

4.7 Commands for VLAN

Commands

Description

add vlan <name> vid <number
1> protocol <number 2> ports
<portlist> [tag|untag]

create VLAN group.

<name>: the name assigned to the VLAN. The valid strings
are 15 max.

<number 1>: the VLAN ID assigned to the VLAN. The valid
values are 1~4094.

<number 2>: to assign a protocol defined by the user. The
valid values are 0~18.

<portlist>: port number. Eg. add vlan v1 vid 2 protocol 0
ports 1,2 tag

config vlan <name> protocol
<number>

assign a protocol to the VLAN

<name>: the VLAN name. Eg. config vlan v1 protocol 5

config vlan <name> addport
<portlist> [tag|untag]

add one or more ports to the VLAN. The user can assign
tagged or untagged port. Eg. config vlan v1 addport 3,4 tag

config vlan <name> delport
<portlist>

delete one or more ports from the VLAN.

Eg. config vlan v1 delport 3,4

Config vlan <name> tag
<portlist>

configure the tagged port in the VLAN.

Eg. config vlan v1 tag 1

config vlan <name> untag
<portlist>

configure the untagged port in the VLAN.

Eg. config vlan v1 untag 2

delete vlan <name>

delete the VLAN by name

Eg. del vlan v1

delete vlan vid <1~4094>

delete the VID by name

Eg. del vlan vid 2

show vlantbl <name>

display the VLAN name.

show vlantblindex

display all switch names

enable vlan gvrp

configure VLAN as port-based 802.1Q with GVRP.

disable vlan gvrp

configure VLAN as port-based 802.1Q without GVRP.

show vlanstate

display the VLAN status

show prtcl vlantbl

display the VLAN protocol type.

config vlan pvid <1~4094> ports
<portlist>

configure the PVID of each port.

Advertising