Vlan Configuration Example - HP 4800G Series Configuration Manual

24/48 port
Table of Contents

Advertisement

To do...
Clear statistics on a port
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
Device A connects to Device B through a trunk port GigabitEthernet 1/0/1;
The default VLAN ID of GigabitEthernet 1/0/1 is 100;
GigabitEthernet 1/0/1 allows packets from VLAN 2, VLAN 6 through VLAN 50, and VLAN 100 to
pass through.
Figure 1-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
Use the command...
reset counters interface
[ interface-type
[ interface-number ] ]
1-16
Remarks
Available in user view

Advertisement

Chapters

Table of Contents
loading

Table of Contents