F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
58
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 interface-type
interface-number1 [ to interface-type interface-number2 ] parameters.
Usage guidelines
This command is only applicable on access ports.
You cannot assign Layer 2 aggregate interfaces to a VLAN.
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, Layer 2 aggregate interface 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.
Usage guidelines
The configuration made in Ethernet interface view or Ethernet subinterface view applies only to the port.
The configuration made in Layer 2 aggregate interface view applies to the aggregate interface and its
aggregation member ports.