Port; Port Access Vlan - H3C s3100 series Command Manual

Hide thumbs Also See for s3100 series:
Table of Contents

Advertisement

port

Syntax
port interface-list
undo port interface-list
View
VLAN view
Parameters
interface-list: List of the Ethernet ports to be added to or removed from the current VLAN. In this list, you
can specify individual ports and port ranges. An individual port takes the form of interface-type
interface-number and a port range takes the form of interface-type interface-number1 to interface-type
interface-number2, with interface-number2 taking a value no less than interface-number1. The total
number of individual ports and port ranges defined in the list must not exceed 10.
Description
Use the port command to assign one or multiple access ports to the current VLAN.
Use the undo port command to remove the specified access port(s) from the current VLAN.
The command applies to access ports only. For information about how to assign to or remove from a
VLAN trunk or hybrid ports, refer to the
command . For port type configuration, refer to the
Related commands: display vlan.
Examples
# Assign Ethernet1/0/2 through Ethernet1/0/4 to VLAN 2.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] vlan 2
[Sysname-vlan2] port Ethernet 1/0/2 to Ethernet 1/0/4

port access vlan

Syntax
port access vlan vlan-id
undo port access vlan
View
Ethernet port view
Parameters
vlan-id: Specifies the ID of the VLAN to which you want to assign the current port, in the range of 1 to
4094. The specified VLAN must already exist.
port hybrid vlan
command and the
port link-type
1-9
port trunk permit vlan
command .

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents