GVRP Configuration Commands GVRP Configuration Commands I GVRP Configuration Commands Table of Contents Chapter 1 GVRP Configuration Commands............................................................................................... 1 1.1 GVRP Configuration Commands...................................................................................................1 1.1.1 gvrp......................................................................................................................................... 1 1.1.2 gvrp dynamic-vlan-pruning..................................................................................................2 1.1.3 show gvrp statistics.............................................................................................................. 2 1.1.4 show gvrp status...................................................................................................................3 1.1.5 debug gvrp event.................................................................................................................. 4 1.1.6 debug gvrp packet................................................................................................................4 1.2 GARPC onfiguration Commands...................................................................................................5 1.2.1 garp timer leaveall................................................................................................................ 5 1.2.2 garp timer hold...................................................................................................................... 6 1.2.3 garp timer join........................................................................................................................7 1.2.4 garp timer leave.................................................................................................................... 8 1.2.5 show garp timers...................................................................................................................8 1.2.6 show garp status...................................................................................................................9 1.2.7 debug garp...........................................................................................................................10 II GVRP Configuration Commands Chapter 1 GVRP Configuration Commands 1.1 GVRP Configuration Commands 1.1.1 gvrp Syntax To enable or disableGVRP, run gvrp. To resume the default value, run no gvrp. gvrp no gvrp Parameters None Default Value The global GVRP is shut down, while GVRP on ports is enabled. Usage Guidelines GVRP can be enabled globally or on a port. Hence, GVRP can be really enabled only after GVRP is enabled both globally and on ports. Example The following example shows how to enable GVRP globally. Switch_config#gvrp Switch_config# The following example shows how to enable GVRP on port 1. Switch_config_g0/1#gvrp Switch_config_g0/1# 1 GVRP Configuration Commands 1.1.2 gvrp dynamic-vlan-pruning Syntax To set the dynamic vlan to be effective on a registered port, run gvrp dynamic-vlan-pruning; to return to the default setting, use the “no” form of this command. gvrp dynamic-vlan-pruning no gvrp dynamic-vlan-pruning Parameters None Default Value dynamic-vlan-pruning is disabled by default, that is, dynamic VLAN can take effect on all ports. Command Mode Global configuration mode Usage Guidelines After this command is enabled and if a port has not registered a dynamic VLAN, this port will not belong to the dynamic VLAN even though this port is a trunk port and it allows the dynamic VLAN to pass through. Example The following example shows how to make dynamic VLAN validate on its registered port. Switch_config#gvrp dynamic-vlan-pruning Switch_config# 1.1.3 show gvrp statistics Syntax To display the GVRP statistics information, run this command. 2 GVRP Configuration Commands show gvrp statistics [interface intf-id] Parameters Parameters Description Intf-id Stands for a specific physical interface. Default Value None Usage Guidelines This command is used to display the GVRP statistics information. Example The following example shows how to display the GVRP statistics information about interface g0/1. Switch_config#show gvrp statistics interface g0/1 GVRP statistics on port g0/1 GVRP Status : Enabled GVRP Frames Received : 0 GVRP Frames Transmitted : 20 GVRP Frames Discarded : 0 GVRP Last Pdu Origin : 0000.0000.0000 1.1.4 show gvrp status Syntax To display the GVRP state information, run this command. show gvrp status Parameters None Default Value None 3 GVRP Configuration Commands Usage Guidelines This command is used to display the GVRP state information. Example The following example shows how to display the GVRP state information about a switch. Switch_config#show gvrp status GVRP is enabled 1.1.5 debug gvrp event Syntax To enable the information output of GVRP debugging, run debug gvrp event. To shut down the information output of GVRP debugging, run no debug GVRP event. debug gvrp event no debug gvrp event Parameters None Default Value None Usage Guidelines To enable the information output of GVRP debugging, run debug gvrp event. To shut down the information output of GVRP debugging, run no debug GVRP event. Example Switch# debug gvrp event Switch# 1.1.6 debug gvrp packet Syntax To enable or disable GVRP displaying, run this command. 4 GVRP Configuration Commands debug gvrp packet no debug gvrp packet Parameters None Default Value None Usage Guidelines To enable or disable GVRP displaying, run this command. Example switch# debug gvrp packet switch# 1.2 GARPC onfiguration Commands GARP is the basic module of GVRP/CMRP. It schedules GVRP/GMRP running and provides services to GVRP/GMRP. 1.2.1 garp timer leaveall Syntax To configure the garp leaveall timer, run garp timer leaveall time_value. To resume the corresponding default value, run no garp timer leaveall. garp timer leaveall time_value no garp timer leaveall Parameters Parameters Description timer_value Stands for the global leave all timer value. Value range: 10~ 32765 centiseconds. 5 GVRP Configuration Commands Default Value 1000 centiseconds Usage Guidelines After the leave all timer times out, the bridge cancels all registered VLAN information and transmits Leave All Message to the outside. Example The following example configures leaveall timer on the switch to 1200 centiseconds. Switch_config# garp timer leaveall 1200 Switch_config# 1.2.2 garp timer hold Syntax To configure the garp hold timer, run garp timer hold time_value. To return to the default setting, run no garp timer hold. garp timer hold time_value no garp timer hold Parameters Parameters Description timer_value hold timer value of the port Value range: 10~ 32765 centiseconds. Default Value 10 centiseconds Command Mode Port configuration mode Usage Guidelines None 6 GVRP Configuration Commands Example The following example shows how to configure garp hold timer on the switch to 15 centiseconds. Switch_config_g0/1#garp timer hold 15 Switch_config_g0/1# 1.2.3 garp timer join Syntax To configure the garp join timer, run garp timer join time_value. To return to the default setting, run no garp timer join. garp timer join time_value no garp timer join Parameters Parameters Description timer_value join timer value of the port Value range: 10~ 32765 centiseconds. Default Value 20 centiseconds Command Mode Port configuration mode Usage Guidelines None Example The following example shows how to configure garp join timer of the port g0/1 on the switch to 25 centiseconds. Switch_config_g0/1#garp timer join 25 Switch_config_g0/1# 7 GVRP Configuration Commands 1.2.4 garp timer leave Syntax To configure the garp leave timer, run garp timer leave time_value. To return to the default setting, run no garp timer leave. garp timer leave time_value no garp timer leave Parameters Parameters Description timer_value leave timer value of the port Value range: 10~ 32765 centiseconds. Default Value 60 centiseconds Command Mode Port configuration mode Usage Guidelines None Example The following example shows how to configure garp leave timer of the port g0/1 on the switch to 80 centiseconds. Switch_config_g0/1#garp timer leave 80 Switch_config_g0/1# 1.2.5 show garp timers Syntax To display theGARP-configured clock information, run the following command. show garp timers [ interface intf_id ] 8 GVRP Configuration Commands Parameters Parameters Description Intf-id Stands for a specific physical interface. Default Value None Usage Guidelines This command is used to display theGARP-configured clock information, including the global leaveall timer value, the hold/join/leave timer value on the port. Example The following example shows how to display the timer information on interface G0/1. Switch# show garp timers interface g0/1 GARP timers on port 1(G0/1) Garp Join Time : 20 centiseconds Garp Leave Time : 60 centiseconds Garp LeaveAll Time : 1000 centiseconds Garp Hold Time : 10 centiseconds 1.2.6 show garp status Syntax To display the current GARP application instance by default, run the following command. show garp status Parameters None Default Value None Usage Guidelines To display the current GARP application instance by default, run the following command. 9 GVRP Configuration Commands Example The following example shows the running GARP application instances. Switch_config#show garp status No GARP application is running. 1.2.7 debug garp Syntax To enable or disable the debug information about the GARP event or timer, run this command. debug garp { event | timer } no debug garp { event | timer } Parameters Parameters Description event event debug timer timer debug Default Value None Usage Guidelines To enable or disable the debug information about the GARP event or timer, run this command. Example The following example shows how to enable GARP event debug information. Switch# debug garp event Switch# 10