
6-16
To do...
Use the command…
Remarks
Clear statistics on a port
reset counters interface
[
interface-type
[
interface-number
] ]
Available in user view
The
reset counters interface
command can be used to clear statistics on a VLAN interface. For more
information, refer to
Ethernet Interface Commands
in the
Access Volume
.
VLAN Configuration Example
Network requirements
z
Device A connects to Device B through a trunk port GigabitEthernet 1/0/1;
z
The default VLAN ID of GigabitEthernet 1/0/1 is 100;
z
GigabitEthernet 1/0/1 allows packets from VLAN 2, VLAN 6 through VLAN 50, and VLAN 100 to
pass through.
Figure 6-4
Network diagram for port-based VLAN configuration
Configuration procedure
1) Configure
Device
A
# Create VLAN 2, VLAN 6 through VLAN 50, and VLAN 100.
<DeviceA> system-view
[DeviceA] vlan 2
[DeviceA-vlan2] quit
[DeviceA] vlan 100
[DeviceA-vlan100] vlan 6 to 50
Please wait... Done.
# Enter GigabitEthernet 1/0/1 interface view.
[DeviceA] interface GigabitEthernet 1/0/1
# Configure GigabitEthernet 1/0/1 as a trunk port and configure its default VLAN ID as 100.
[DeviceA-GigabitEthernet1/0/1] port link-type trunk
[DeviceA-GigabitEthernet1/0/1] port trunk pvid vlan 100
# Configure GigabitEthernet 1/0/1 to deny the packets of VLAN 1 (by default, the packets of VLAN 1
are permitted to pass through on all the ports).
[DeviceA-GigabitEthernet1/0/1] undo port trunk permit vlan 1
Содержание 4510G
Страница 502: ...4 8 ...
Страница 1010: ...18 6 000f e235 dc71 1 Config static GigabitEthernet 1 0 1 NOAGED 1 mac address es found ...