R3102-R3103-HP 6600/HSR6600 Routers Layer 2 - LAN Switching Command Reference

101
Default command level
2: System level
Parameters
interface-list: Specifies an interface list, in the format of interface-list = { interface-type interface-number1
[ to interface-type interface-number2 ] }&<1-10>, where interface-type interface-number specifies an
interface by its type and number and &<1-10> indicates that you can specify up to 10 ports or port
ranges.
Usage guidelines
This command is only applicable on access ports.
You cannot assign Layer 2 aggregate interfaces to a VLAN.
Examples
# Assign GigabitEthernet 4/0/1 through GigabitEthernet 4/0/3 to VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] port GigabitEthernet 4/0/1 to GigabitEthernet 4/0/3
Related commands
display vlan
port access vlan
Use port access vlan to assign the access ports to the specified VLAN.
Use undo port access vlan to restore the default.
Syntax
port access vlan vlan-id
undo port access vlan
Default
All access ports belong to VLAN 1.
Views
Ethernet interface view, port group view, Layer 2 aggregate interface view
Default command level
2: System level
Parameters
vlan-id: Specifies a VLAN ID in the range of 1 to 4094. Make sure the VLAN specified by the VLAN ID
already exists.
Usage guidelines
The configuration made in Ethernet interface view applies only to the port.
The configuration made in port group view applies to all ports in the port group.
The configuration made in Layer 2 aggregate interface view applies to the aggregate interface and its
aggregation member ports.