R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101

28
To do… Use the command…
Remarks
Enter VLAN view vlan vlan-id
Required
By default, only the default VLAN
(VLAN 1) exists in the system.
If the specified VLAN does not exist,
this command creates the VLAN first.
Configure a name for the
VLAN
name text
Optional
By default, the name of a VLAN is its
VLAN ID. For example, VLAN 0001.
Configure the description
of the VLAN
description text
Optional
By default, the description of a VLAN is
its VLAN ID. For example, VLAN 0001.
NOTE:
As the default VLAN, VLAN 1 cannot be created or removed.
You cannot manually create or remove VLANs reserved for special purposes.
Configuring basic settings of a VLAN interface
VLAN interface overview
For hosts of different VLANs to communicate, you must use a router or Layer 3 switch to perform Layer 3
forwarding. To achieve this, VLAN interfaces are used.
VLAN interfaces are virtual interfaces used for Layer 3 communication between different VLANs. They do
not exist as physical entities on devices. For each VLAN, you can create one VLAN interface. You can
assign the VLAN interface an IP address and specify it as the gateway of the VLAN to forward traffic
destined for an IP subnet different from that of the VLAN.
Configuration procedure
Follow these steps to configure basic settings of a VLAN interface:
To do… Use the command…
Remarks
Enter system view system-view
Create a VLAN interface
and enter VLAN interface
view
interface vlan-interface
vlan-interface-id
Required
If the VLAN interface already exists,
you enter its view directly.
Assign an IP address to the
VLAN interface
ip address ip-address { mask |
mask-length } [ sub ]
Optional
By default, no IP address is assigned to
any VLAN interface.
Configure the description
of the VLAN interface
description text
Optional
By default, the description of a VLAN is
the VLAN interface name. For
example, Vlan-interface1 Interface.