HP VPN Firewall Appliances Network Management Command Reference

60
Field Descri
p
tion
Tagged VLANs for which the port sends packets without removing VLAN tags.
Untagged VLANs for which the port sends packets after removing VLAN tags.
port
Use port to assign the specified access ports to the VLAN.
Use undo port to remove the specified access ports from the VLAN.
Syntax
port interface-list
undo port interface-list
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 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.