R2511-HP MSR Router Series Layer 2 - LAN Switching Configuration Guide(V5)

12
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 specified VLAN interface already
exists, you enter its view directly.
3. 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.
4. 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.
5. Set the MTU for the VLAN
interface.
mtu size
Optional.
By default, the MTU is 1500 bytes.
6. Configure a MAC address
for the VLAN interface.
mac-address mac-address Optional.
7. Set the expected
bandwidth for the VLAN
interface.
bandwidth bandwidth-value Optional.
8. Restore the default settings
for the VLAN interface.
default Optional.
9. Cancel the action of
manually shutting down the
VLAN interface.
undo shutdown
Optional.
By default, a VLAN interface is not
manually shut down. The VLAN interface
is up if one or more ports in the VLAN is
up, and goes down if all ports in the
VLAN go down.
Configuring port-based VLANs
Introduction to port-based VLAN
Port-based VLANs group VLAN members by port. A port forwards traffic for a VLAN only after it is
assigned to the VLAN.
Port link type
You can configure the link type of a port as access, trunk, or hybrid. The link types use the following
VLAN tag handling methods:
Access port—Belongs to only one VLAN and sends traffic untagged. Access ports are usually used
to connect a terminal device unable to identify VLAN-tagged packets, or are used when separating
different VLAN members is unnecessary. As shown in Figure 5,
Device A is connected to common
PCs that cannot recognize VLAN-tagged packets, and you must configure Device A's ports that
connect to the PCs as access ports.
Trunk port—Carries multiple VLANs to receive and send traffic for them. Except traffic from the port
VLAN ID (PVID), traffic sent through a trunk port will be VLAN-tagged. Usually, ports that connect
network devices are configured as trunk ports. As shown in Figure 5,
Device A and Device B need