133
[DeviceA-GigabitEthernet1/0/3] display vlan 200
VLAN ID: 200
VLAN type: Static
Route interface: Not configured
Description: VLAN 0200
Name: VLAN 0200
Tagged ports:
GigabitEthernet1/0/3
Untagged ports:
GigabitEthernet1/0/2
MAC-based VLAN configuration example
Network requirements
As shown in
:
•
GigabitEthernet 1/0/1 of Device A and Device C are each connected to a meeting room. Laptop
1 and Laptop 2 are used for meetings and might be used in either of the two meeting rooms.
•
Different departments own Laptop 1 and Laptop 2. The two departments use VLANs 100 and
200, respectively.
Configure MAC-based VLANs, so that each laptop is able to access only its own department server,
no matter which meeting room they are used in.
Figure 39 Network diagram
Configuration procedure
1.
Configure Device A:
# Create VLANs 100 and 200.
<DeviceA> system-view
[DeviceA] vlan 100
[DeviceA-vlan100] quit