![background image](http://html1.mh-extra.com/html/xenya/xs26gs/xs26gs_user-manual_3274837097.webp)
XS26GS Managed Optical Ethernet Switch User Manual
92
switchport
Syntax
switchport { forbidden | tagged | untagged } ethernet
interface
[
to
ethernet
interface
]
no switchport { forbidden | tagged | untagged } ethernet
interface
[
to
ethernet
interface
]
View
VLAN view.
Parameters
forbidden
: does not allow the port to be added to the VLAN group, even if GARP
indicates so.
tagged
: indicates the port is a tagged member of the VLAN group. All packets
forwarded by the port are tagged. The packets contain VLAN information.
untagged
: indicates the port is an untagged VLAN member of the VLAN group.
Packets forwarded by the port are untagged.
interface
: port number. Ethernet ports to be added to or removed from the current
VLAN.
to
: specifies the last port number of the range.
Description
Use
switchport
command to add forbidden, tagged or untagged port to the VLAN.
Use
no
switchport
command to delete forbidden, tagged or untagged port from
the VLAN.
Examples
XS(vlan5)#
switchport tagged ethernet
0/8
to ethernet
0/15
Ethernet0/8 belongs to a trunk. The other member in the same trunk will be added
to this vlan as well!
Add tagged ports successfully!
XS(vlan5)#
no switchport tagged ethernet
0/8
to ethernet
0/15
Ethernet0/8 belongs to a trunk. The other member in the same trunk will be
removed from this vlan!
Delete tagged ports successfully!
protocol-vlan
Syntax
protocol-vlan { at | ip | ipx | mode ethernetii
etype-id
}
no protocol-vlan { at | ip | ipx | mode ethernetii
etype-id
}
View
VLAN view.
Parameters
at
: creates the AppleTalk-based protocol template.
ip
: creates the IP-based protocol template.