R0106-HP MSR Router Series Layer 2 - LAN Switching Configuration Guide(V7)
90
Ste
p
Command
Remarks
3. Enter VLAN view.
vlan vlan-id
To configure a VLAN after you create a list
of VLANs, you must perform this step.
4. Configure a name for the
VLAN.
name text
By default, VLAN names are in the format
VLAN vlan-id. For example, the name of
VLAN 100 is VLAN 0100 by default.
5. Configure the description
of the VLAN.
description text
The default setting is VLAN vlan-id, which is
the ID of the VLAN. For example, the
description of VLAN 100 is VLAN 0100 by
default.
NOTE:
• As the system default VLAN, VLAN 1 cannot be created or removed.
• You cannot use the undo vlan command to delete a dynamic VLAN, a VLAN with a QoS policy
applied, or a VLAN locked by an application. To delete one of these VLANs, first remove the
configuration from the VLAN.
Configuring basic settings of a VLAN interface
For hosts of different VLANs to communicate at Layer 3, you can use VLAN interfaces. 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 and assign an IP
address to it. The VLAN interface acts as the gateway of the VLAN to forward packets destined for
another IP subnet.
Before you create a VLAN interface for a VLAN, create the VLAN first.
To configure basic settings of a VLAN interface:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Create a VLAN interface
and enter VLAN interface
view.
interface vlan-interface
vlan-interface-id
If the VLAN interface already exists, you
enter its view directly.
By default, no VLAN interface is created.
3. Assign an IP address to the
VLAN interface.
ip address ip-address { mask |
mask-length } [ sub ]
By default, no IP address is assigned to a
VLAN interface.
4. Configure the description of
the VLAN interface.
description text
The default setting is the VLAN interface
name. For example, Vlan-interface1
Interface.
5. Configure the MTU for the
VLAN interface.
mtu size The default setting is 1500 bytes.
6. Configure a MAC address
for the VLAN interface.
mac-address mac-address
By default, no MAC address is assigned
to a VLAN interface.
7. Configure the expected
bandwidth of the interface.
bandwidth bandwidth-value
By default, the expected bandwidth (in
kbps) is the interface baud rate divided
by 1000.