R0106-HP MSR Router Series Layer 2 - LAN Switching Configuration Guide(V7)
94
Configuring a VLAN group
A VLAN group includes a set of VLANs. You can add multiple VLAN lists to a VLAN group.
You can configure the authentication server to assign VLANs in a VLAN group to an 802.1X user that has
passed authentication. For more information about 802.1X authentication, see Security Configuration
Guide.
To configure a VLAN group:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Create a VLAN group and
enter VLAN group view.
vlan-group group-name By default, no VLAN group exists.
3. Add VLANs to the VLAN
group.
vlan-list { vlan-id1 [ to vlan-id2 ] }
&<1-10>
By default, no VLAN exists in a
VLAN group.
Displaying and maintaining VLANs
Execute display commands in any view and reset commands in user view.
Task Command
Display VLAN interface information.
display interface [ vlan-interface ] [ brief [ down ] ]
display interface [ vlan-interface [ interface-number ] ] [ brief
[ description ] ]
Display VLAN information.
display vlan [ vlan-id1 [ to vlan-id2 ] | all | dynamic | reserved
| static ]
Display VLAN group information. display vlan-group [ group-name ]
Display hybrid ports or trunk ports on the
device.
display port { hybrid | trunk }
Clear statistics on a port. reset counters interface vlan-interface [ vlan-interface-id ]
VLAN configuration examples
Port-based VLAN configuration example
Network requirements
As shown in Figure 28:
• Host A and Host C belong to Department A. VLAN 100 is assigned to Department A.
• Host B and Host D belong to Department B. VLAN 200 is assigned to Department B.
Configure port-based VLANs so that only hosts in the same department can communicate with each
other.