H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – VLAN
H3C S7500 Series Ethernet Switches Chapter 1
VLAN Configuration Commands
1-9
[H3C] vlan 1
[H3C-vlan1]
1.2 Port-Based VLAN Configuration Commands
1.2.1 port
Syntax
port interface-list
undo port interface-list
View
VLAN view
Parameters
interface-list: List of Ethernet ports to be added to or removed from a VLAN. You need
to provide this argument in the form of interface-list = { interface-type interface-number
[ to interface-type interface-number ] } &<1-10>, where:
z interface-type is port type and interface-number is port number. For detailed
explanation, refer to port related command part in this manual.
z The port number to the right of the to keyword must be larger than or equal to the
one to the left of the keyword.
z &<1-10> means that you can specify up to ten ports or port ranges.
Description
Use the port command to add a port or multiple ports to a VLAN.
Use the undo port command to remove a port or multiple ports from a VLAN.
Caution:
The port command is only applicable to access ports. To add trunk ports and hybrid
ports to a VLAN, you can use the port trunk permit vlan and port hybrid vlan
commands in Ethernet port view. For related command information, refer to the Port
Basic Configuration part in H3C S7500 Series Ethernet Switches – Command Manual.
Related commands: display vlan.
Examples
# Add Ethernet 2/0/1 through Ethernet 2/0/3 to VLAN 2.