F3215-HP Load Balancing Module Network Management Command Reference-6PW101
67
Default
All ports are in VLAN 1. All ports are access ports. However, you can manually configure the port type.
For more information, see "port link-type."
Views
VLAN view
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 applies only to access ports.
Examples
# Assign GigabitEthernet 0/1 through GigabitEthernet 0/3 to VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] port gigabitethernet 0/1 to gigabitethernet 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, Ethernet subinterface view
Default command level
2: System level
Parameters
vlan-id: Specifies a VLAN ID, ranging from 1 to 4094. Make sure the VLAN specified by the VLAN ID
already exists.
Examples
# Assign GigabitEthernet 0/1 to VLAN 3.