![Amer.com SS2GD8I User Manual Download Page 128](http://html1.mh-extra.com/html/amer-com/ss2gd8i/ss2gd8i_user-manual_2921991128.webp)
122
set mode
Syntax:
set mode <mode> [up-link]
Description:
Switches VLAN mode.
Arguments:
<mode>: can be “disable” to disable VLANs, “tag” to set tag-based VLAN, “port” to set port-based VLAN,
“metro” to set metro mode VLAN, or “double-tag” to enable Q-in-Q function.
[up-link] (optional): can be “7”, “8”, or “7,8”, only for metro mode VLAN
Example:
SS2GD8I(vlan)# set mode port
set port-group
Syntax:
set port-group <name> <port range>
Description:
Adds or edits a port-based VLAN group.
Arguments:
<name>: port-VLAN name
<port range>: which ports to change, can be a single port (e.g. “1”) or a range of ports (e.g. “5-7”), range
from 1-8.
Example:
SS2GD8I(vlan)# set port-group VLAN-1 2-5,6,8
set port-role
Syntax:
set port-role <port range> <role> [vid]
Description:
Sets egress rule and configures port roles.
Arguments:
<port range>: which ports to change, can be a single port (e.g. “1”) or a range of ports (e.g. “5-7”), range
from 1-8.
<role>: can be “access” to not tag frames, “trunk” to tag all frames, or “hybrid” to tag all frames except a
specific VID.
[vid] (optional): untag-VID for hybrid port, range from 1-4094.
Example:
SS2GD8I(vlan)# set port-role 5 hybrid 6