Quidway S5000 series User manual

Operation Manual - VLAN
Quidway S5000 Series Ethernet Switches Table of Contents
i
Table of Contents
Chapter 1 VLAN Configuration ....................................................................................................1-1
1.1 VLAN Overview..................................................................................................................1-1
1.2 Configure VLAN.................................................................................................................1-1
1.2.1 Create/Delete a VLAN.............................................................................................1-1
1.2.2 Add Ethernet Ports to a VLAN ................................................................................1-2
1.2.3 Set/Delete VLAN Description Character String.......................................................1-2
1.3 Display and Debug VLAN.................................................................................................. 1-2
1.4 VLAN Configuration Example............................................................................................1-3
Chapter 2 GARP/GVRP Configuration......................................................................................... 2-1
2.1 Configure GARP................................................................................................................2-1
2.1.1 GARP Overview......................................................................................................2-1
2.1.2 Set GARP Timer......................................................................................................2-2
2.1.3 Display and Debug GARP....................................................................................... 2-3
2.2 Configure GVRP................................................................................................................2-3
2.2.1 GVRP Overview......................................................................................................2-3
2.2.2 Enable/Disable Global GVRP .................................................................................2-4
2.2.3 Enable/Disable Port GVRP.....................................................................................2-4
2.2.4 Set GVRP Registration Type ..................................................................................2-4
2.2.5 Display and Debug GVRP....................................................................................... 2-5
2.2.6 GVRP Configuration Example.................................................................................2-5

Operation Manual - VLAN
Quidway S5000 Series Ethernet Switches Chapter 1 VLAN Configuration
1-1
Chapter 1 VLAN Configuration
1.1 VLAN Overview
Virtual Local Area Network (VLAN) groups the devices of a LAN logically but not
physically into segments to implement the virtual workgroups. IEEE issued the IEEE
802.1Q in 1999, which was intended to standardize VLAN implementation solutions.
Through VLAN technology, network managers can logically divide the physical LAN
into different broadcast domains. Every VLAN contains a group of workstations with the
same demands. The workstations of a VLAN do not have to belong to the same
physical LAN segment.
With VLAN technology, the broadcast and unicast traffic within a VLAN will not be
forwarded to other VLANs, therefore, it is very helpful in controlling network traffic,
saving device investment, simplifying network management and improving security.
1.2 Configure VLAN
To configure a VLAN, first create a VLAN according to the requirements.
Main VLAN configuration includes:
zCreate/Delete a VLAN
zAdd Ethernet ports to a VLAN
zSet/Delete VLAN description character string
1.2.1 Create/Delete a VLAN
You can use the following command to create/delete a VLAN.
Perform the following configurations in system view.
Table 1-1 Create/Delete a VLAN
Operation Command
Create a VLAN and enter the VLAN view vlan vlan_id
Delete the specified VLAN undo vlan { vlan_id [to vlan_id ]| all }
If the VLAN to be created exists, enter the VLAN view directly. Otherwise, create the
VLAN first, and then enter the VLAN view.

Operation Manual - VLAN
Quidway S5000 Series Ethernet Switches Chapter 1 VLAN Configuration
1-2
vlan_id specifies the VLAN ID. Note that the default VLAN, namely VLAN 1, cannot be
deleted.
1.2.2 Add Ethernet Ports to a VLAN
You can use the following command to add the Ethernet ports to a VLAN.
Perform the following configuration in VLAN view.
Table 1-2 Add Ethernet ports to a VLAN
Operation Command
Add Ethernet ports to a VLAN port interface_list
Remove Ethernet ports from a VLAN undo port interface_list
By default, the system adds all the ports to a default VLAN, whose ID is 1.
Note that you can add/delete trunk port and hybrid port to/from VLAN by port and undo
port commands in Ethernet port view, but not in VLAN view.
1.2.3 Set/Delete VLAN Description Character String
You can use the following command to set/delete VLAN description character string.
Perform the following configuration in VLAN view.
Table 1-3 Set/Delete VLAN description character string
Operation Command
Set the description character string for VLAN description string
Restore the default description of current VLAN undo description
By default, VLAN description character string is VLAN ID of the VLAN, e.g. VLAN 0001.
1.3 Display and Debug VLAN
After the above configuration, execute display command in any view to display the
running of the VLAN configuration, and to verify the effect of the configuration.
Table 1-4 Display and debug VLAN
Operation Command
Display the related information about VLAN display vlan[ vlan_id | all | static | dynamic ]

Operation Manual - VLAN
Quidway S5000 Series Ethernet Switches Chapter 1 VLAN Configuration
1-3
1.4 VLAN Configuration Example
I. Networking requirements
Create VLAN2 and VLAN3. Add GigabitEthernet0/1 and GigabitEthernet0/2 to VLAN2
and add GigabitEthernet0/3 and GigabitEthernet0/4 to VLAN3.
II. Networking diagram
VLAN3
GE0/3
GE0/2
VLAN2 VLAN3
GE0/4
GE0/1
VLAN3
VLAN2 VLAN3
Switch
Figure 1-1 VLAN configuration example
III. Configuration procedure
# Create VLAN 2 and enters its view.
[Quidway] vlan 2
# Add GigabitEthernet0/1 and GigabitEthernet0/2 to VLAN2.
[Quidway-vlan2] port gigabitethernet0/1 gigabitethernet0/2
# Create VLAN 3 and enters its view.
[Quidway-vlan2] vlan 3
# Add GigabitEthernet0/3 and GigabitEthernet0/4 to VLAN3.
[Quidway-vlan3] port gigabitethernet0/3 gigabitethernet0/4

Operation Manual - VLAN
Quidway S5000 Series Ethernet Switches Chapter 2 GARP/GVRP Configuration
2-1
Chapter 2 GARP/GVRP Configuration
2.1 Configure GARP
2.1.1 GARP Overview
GenericAttribute Registration Protocol (GARP) offers a mechanism that is used by the
members in the same switching network to distribute, propagate and register such
information as VLAN and multicast addresses.
GARP dose not exist in a switch as an entity. A GARP participant is called GARP
application. The main GARP applications at present are GVRP and GMRP. GVRP is
described in the GVRP Configuration section and GMRP will be described in Multicast
Configuration. When a GARP participant is on a port of the switch, each port
corresponds to a GARP participant.
Through GARP mechanism, the configuration information on one GARP member will
be advertised rapidly in the whole switching network. GARP member can be a terminal
workstation or bridge. AGARPmember can notify other members to register or remove
its attribute information by sending declarations or withdrawal declarations. It can also
register or remove the attribute information of other GARP members according to the
received declarations/withdrawal declarations.
GARP members exchange information through sending messages. There mainly are 3
types of GARP messages including Join, Leave, and LeaveAll. When a GARP
participant wants to register its attribute information on other switches, it will send Join
message outward. When it wants to remove some attribute values from other switches,
it will send Leave message. LeaveAll timer will be started at the same time when each
GARP participant is enabled and LeaveAll message will be sent upon timeout. Join
message and Leave message cooperate to ensure the logout and the re-registration of
a message. Through exchanging messages, all the attribute information to be
registered can be propagated to all the switches in the same switching network.
The destination MAC addresses of the packets of the GARP participants are specific
multicast MAC addresses.AGARP-supporting switch will classify the packets received
from the GARP participants and process them with corresponding GARP applications
(GVRP or GMRP).
GARP and GMRP are described in details in the IEEE 802.1p standard (which has
been added to the IEEE802.1D standard). Quidway Series Ethernet Switches fully
support the GARP compliant with the IEEE standards.

Operation Manual - VLAN
Quidway S5000 Series Ethernet Switches Chapter 2 GARP/GVRP Configuration
2-2
Main GARP configuration includes:
zSet GARP timer
Note:
1)ThevalueofGARPtimerwill beusedinalltheGARPapplications,includingGVRPandGMRP,running
in one switching network.
2)Inoneswitchingnetwork,theGARPtimersonalltheswitchingdevicesshouldbesettothe samevalue.
Otherwise, GARP application cannot work normally.
2.1.2 Set GARP Timer
GARP timers include Hold timer, Join timer, Leave timer and LeaveAll timer.
The GARP participant sends Join Message regularly when Join timer timeouts so that
other GARP participants can register its attribute values.
When the GARP participant wants to remove some attribute values, it will send Leave
Message outward. The GARP participant receiving the information will start the Leave
timer. If Join Message is not received again before the Leave timer expires, the GARP
attribute values will be removed
LeaveAll timer will be started as soon as the GARP participant is enabled. LeaveAll
message will be sent upon timeout so that other GARP participants will remove all the
attribute values of this participant. Then, Leaveall timer is restarted and a new cycle
begins.
When the switch receives some GARP registration information, it will not send Join
Message immediately. Instead, it will enable a hold timer and send the Join Message
outward upon timeout of the hold timer. In this way, all the VLAN registration information
received within the time specified by the Hold timer can be sent in one frame so as to
save the bandwidth resource.
Configure Hold timer, Join timer and Leave timer in Ethernet port view. Configure
LeaveAll timer in system view.
Table 2-1 Set GARP timer
Operation Command
Set GARP Hold timer, Join timer and Leave timer garp timer {hold |join |leave }timer_value
Set GARP LeaveAll timer garp timer leaveall timer_value
Restore the default GARP Hold timer, Join timer and
Leave timer settings undo garp timer {hold |join |leave }
Restore the default GARP LeaveAll timer settings. undo garp timer leaveall

Operation Manual - VLAN
Quidway S5000 Series Ethernet Switches Chapter 2 GARP/GVRP Configuration
2-3
Note that, the value of Join timershould be no less than the doubledvalue of Hold timer,
and the value of Leave timer should be greater than the doubled value of Join timer and
smaller than the Leaveall timer value. Otherwise, the system will prompt message of
error.
By default, Hold timer is 10 centiseconds, Join timer is 20 centiseconds, Leave timer is
60 centiseconds, and LeaveAll timer is 1000 centiseconds.
2.1.3 Display and Debug GARP
After the above configuration, execute display command in any view to display the
running of GARP configuration, and to verify the effect of the configuration. Execute
reset command in user view to reset the configuration of GARP. Execute debugging
command in user view to debug the configuration of GARP.
Table 2-2 Display and debug GARP
Operation Command
Display GARP statistics information display garp statistics [interface interface-list ]
Display GARP timer display garp timer [interface interface-list ]
Clear GARP statistics information reset garp statistics [interface interface-list ]
Enable GARP event debugging debugging garp event
Disable GARP event debugging undo debugging garp event
2.2 Configure GVRP
2.2.1 GVRP Overview
GARP VLAN Registration Protocol (GVRP) is a GARP application. Based on GARP
operating mechanism, GVRP provides maintenance of the dynamic VLAN registration
information in the switch and propagates the information to other switches. All the
GVRP-supporting switches can receive VLAN registration information from other
switches and dynamically update the local VLAN registration information including the
active members and through which port those members can be reached. All the
GVRP-supporting switches can propagate their local VLAN registration information to
other switches so that the VLAN information can be consistent on all GVRP-supporting
devices in one switching network. The VLAN registration information propagated by
GVRP includes both the local static registration information configured manually and
the dynamic registration information from other switches.
GVRP is described in details in the IEEE 802.1Q standard. Quidway Series Ethernet
Switches fully support the GARP compliant with the IEEE standards.
Main GVRP configuration includes:

Operation Manual - VLAN
Quidway S5000 Series Ethernet Switches Chapter 2 GARP/GVRP Configuration
2-4
zEnable/Disable global GVRP
zEnable/Disable port GVRP
zSet GVRP registration type
In the above-mentioned configuration tasks, GVRP should be enabled globally before it
is enabled on the port. Configuration of GVRP registration type can only take effect
after the port GVRP is enabled. Besides, GVRP must be configured on the Trunk port.
2.2.2 Enable/Disable Global GVRP
You can use the following command to enable/disable global GVRP.
Perform the following configurations in system view.
Table 2-3 Enable/Disable global GVRP
Operation Command
Enable global GVRP gvrp
Disable global GVRP undo gvrp
By default, global GVRP is disabled.
2.2.3 Enable/Disable Port GVRP
You can use the following command to enable/disable the GVRP on a port.
Perform the following configurations in Ethernet port view.
Table 2-4 Enable/Disable port GVRP
Operation Command
Enable port GVRP gvrp
Disable port GVRP undo gvrp
GVRP should be enabled globally before it is enabled on the port. The GVRP can only
be enabled/disabled on Trunk port.
By default, port GVRP is disabled.
2.2.4 Set GVRP Registration Type
The GVRP registration types include Normal, Fixed and Forbidden (see IEEE 802.1Q).
zWhen an Ethernet port is set to be in Normal registration mode, the dynamic and
manual creation, registration and logout of VLAN are allowed on this port.

Operation Manual - VLAN
Quidway S5000 Series Ethernet Switches Chapter 2 GARP/GVRP Configuration
2-5
zWhen one Trunk port is set as fixed, the system will add the port to the VLAN if a
static VLAN is created on the switch and the Trunk port allows the VLAN passing.
GVRP will also add this VLAN item to the local GVRP database, one link table for
GVRP maintenance. However, GVRP cannot learn dynamic VLAN through this
port. The learned dynamic VLAN from other ports of the local switch will not be
able to send statements to outside through this port.
zWhen an Ethernet port is set to be in Forbidden registration mode, all the VLANs
except VLAN1 will be logged out and no other VLANs can be created and
registered on this port.
Perform the following configurations in Ethernet port view.
Table 2-5 Set GVRP registration type
Operation Command
Set GVRP registration type gvrp registration { normal |fixed |forbidden }
Restore the default GVRP registration type undo gvrp registration
By default, GVRP registration type is normal.
2.2.5 Display and Debug GVRP
After the above configuration, execute display command in any view to display the
running of GVRP configuration, and to verify the effect of the configuration. Execute
debugging command in user view to debug the configuration of GVRP.
Table 2-6 Display and debug GVRP
Operation Command
Display GVRP statistics information display gvrp statistics [ interface interface-list ]
Display GVRP global status information display gvrp status
Enable GVRP packet or event debugging debugging gvrp {packet |event}
Disable GVRP packet or event debugging undo debugging gvrp {packet |event }
2.2.6 GVRP Configuration Example
I. Networking requirements
To dynamically register and update VLAN information among switches, GVRP needs to
be enabled on the switches.

Operation Manual - VLAN
Quidway S5000 Series Ethernet Switches Chapter 2 GARP/GVRP Configuration
2-6
II. Networking diagram
GE0/1
Switch A Switch B
GE0/2
Figure 2-1 GVRP configuration example
III. Configuration procedure
Configure Switch A:
# Enable GVRP globally.
[Quidway] gvrp
# Set GigabitEthernet0/1 as a Trunk port and allows all the VLANs to pass through.
[Quidway] interface gigabitethernet0/1
[Quidway-GigabitEthernet0/1] port link-type trunk
[Quidway-GigabitEthernet0/1] port trunk permit vlan all
# Enable GVRP on the Trunk port.
[Quidway-GigabitEthernet0/1]gvrp
Configure Switch B:
# Enable GVRP globally.
[Quidway] gvrp
# Set GigabitEthernet0/2 as a Trunk port and allows all the VLANs to pass through.
[Quidway] interface gigabitethernet0/2
[Quidway-GigabitEthernet0/2]port link-type trunk
[Quidway-GigabitEthernet0/2]port trunk permit vlan all
# Enable GVRP on the Trunk port.
[Quidway-GigabitEthernet0/2]gvrp
Table of contents
Other Quidway Network Router manuals