Chapter 7 Service Configuration
Configuration of switch A:
zte(cfg)#set garp en
zte(cfg)#set gvrp en
zte(cfg)#set gvrp port 1 en
zte(cfg)#set vlan 10-20 en
zte(cfg)#set vlan 10-20 add port 1
Configuration of switch B:
zte(cfg)#set garp en
zte(cfg)#set gvrp en
zte(cfg)#set gvrp port 1 en
zte(cfg)#set vlan 30-40 en
zte(cfg)#set vlan 30-40 add port 1
Configuration check:
SwitchA(cfg)#show garp
/*View GARP configuration*/
GARP is enabled!
GARP Timers:
Hold Timeout
:100 milliseconds
Join Timeout
:200 milliseconds
Leave Timeout
:600 milliseconds
LeaveAll Timeout
:10000 milliseconds
SwitchA(cfg)#show gvrp
/*View GVRP configuration*/
GVRP is enabled!
PortId
Status
Registration
LastPduOrigin
------
--------
------------
-----------------
1
Enabled
Normal
00.d0.d0.f2.51.24
SwitchA(cfg)#show port 1 vlan
PortId
: 1
Tagged in vlan
: 30-40
Untagged in vlan : 1
,
10-20
SwitchB(cfg)#show port 1 vlan
PortId
: 1
Tagged in vlan
: 10-20
Untagged in vlan : 1
,
30-40
SwitchA(cfg)#show vlan 30-40
VlanId
: 30
VlanStatus: enabled
VlanName:
VlanMode: Dynamic
Tagged ports
:
1
Untagged ports
:
Forbidden ports :
SwitchB(cfg)#show vlan 10-20
VlanId
: 10
VlanStatus: enabled
VlanName:
VlanMode: Dynamic
Tagged ports
:1
Untagged ports
:
Forbidden ports :
Caution:
1. Garp function should be enabled first before Gvrp function is
enabled.
2. Enabling GVRP can enable up to 256 vlans.
3. Timer of Garp generally uses the default value. If it is modi-
fied, the value must be the same as the one configured in the
network.
4. Gvrp port registration type uses default Normal value. If it is
modified to other types, vlan learning can’t be done.
Confidential and Proprietary Information of ZTE CORPORATION
83