17
Task Command
Clear statistics on a VLAN interface.
reset counters interface
[
vlan-interface
[
interface-number
]
]
Display MAC-to-VLAN entries.
display mac-vlan
{
all
|
dynamic
|
mac-address mac-address
[
mask mac-mask
]
|
static
|
vlan vlan-id
}
Display all ports that are enabled with the
MAC-based VLAN feature.
display mac-vlan interface
VLAN configuration examples
Example: Configuring port-based VLANs
Network configuration
As shown in
:
•
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.
Figure 3 Network diagram
Procedure
1.
Configure Device A:
# Create VLAN 100, and assign Twenty-FiveGigE 1/0/1 to VLAN 100.
<DeviceA> system-view
[DeviceA] vlan 100
[DeviceA-vlan100] port twenty-fivegige 1/0/1
[DeviceA-vlan100] quit
# Create VLAN 200, and assign Twenty-FiveGigE 1/0/2 to VLAN 200.
[DeviceA] vlan 200
[DeviceA-vlan200] port twenty-fivegige 1/0/2
[DeviceA-vlan200] quit
# Configure Twenty-FiveGigE 1/0/3 as a trunk port, and assign the port to VLANs 100 and 200.
[DeviceA] interface twenty-fivegige 1/0/3
[DeviceA-Twenty-FiveGigE1/0/3] port link-type trunk
[DeviceA-Twenty-FiveGigE1/0/3] port trunk permit vlan 100 200
WGE1/0/2
WGE1/0/1
Host A
Host C
Host B
Host D
Device A
VLAN 100
VLAN 100
VLAN 200
VLAN 200
Device B
WGE1/0/1
WGE1/0/2
WGE1/0/3
WGE1/0/3
Содержание S6850 Series
Страница 108: ...48 WGE1 0 3 32768 49153 50100 0x7b 0001 0001 0001 ACDEF...
Страница 259: ...21 6 N A 200 6...
Страница 337: ...ii...