07 gvrp commands

9
Command Manual – GVRP Quidway S8500 Series Routing Switches Table of Contents Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd i Table of Contents Chapter 1 GARP and GVRP Configuration Commands ............................................................ 1-1 1.1 GARP Configuration Commands ....................................................................................... 1-1 1.1.1 display garp statistics .............................................................................................. 1-1 1.1.2 display garp timer .................................................................................................... 1-2 1.1.3 garp timer ................................................................................................................ 1-2 1.1.4 garp timer leaveall ................................................................................................... 1-2 1.1.5 reset garp statistics ................................................................................................. 1-2 1.2 GVRP Configuration Commands ....................................................................................... 1-2 1.2.1 display gvrp statistics .............................................................................................. 1-2 1.2.2 display gvrp status .................................................................................................. 1-2 1.2.3 gvrp ......................................................................................................................... 1-2 1.2.4 gvrp registration....................................................................................................... 1-2

Upload: randy-dookheran

Post on 21-Jul-2016

14 views

Category:

Documents


0 download

DESCRIPTION

GVRP Commands

TRANSCRIPT

Page 1: 07 GVRP Commands

Command Manual – GVRP Quidway S8500 Series Routing Switches Table of Contents

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

i

Table of Contents

Chapter 1 GARP and GVRP Configuration Commands ............................................................ 1-1 1.1 GARP Configuration Commands....................................................................................... 1-1

1.1.1 display garp statistics .............................................................................................. 1-1 1.1.2 display garp timer.................................................................................................... 1-2 1.1.3 garp timer ................................................................................................................ 1-2 1.1.4 garp timer leaveall ................................................................................................... 1-2 1.1.5 reset garp statistics ................................................................................................. 1-2

1.2 GVRP Configuration Commands....................................................................................... 1-2 1.2.1 display gvrp statistics .............................................................................................. 1-2 1.2.2 display gvrp status .................................................................................................. 1-2 1.2.3 gvrp ......................................................................................................................... 1-2 1.2.4 gvrp registration....................................................................................................... 1-2

Page 2: 07 GVRP Commands

Command Manual – GVRP Quidway S8500 Series Routing Switches

Chapter 1 GARP and GVRP Configuration Commands

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-1

Chapter 1 GARP and GVRP Configuration Commands

1.1 GARP Configuration Commands

1.1.1 display garp statistics

Syntax

display garp statistics [ interface interface-list ]

View

Any view

Parameters

interface-list: List of Ethernet ports to be displayed, expressed as interface-list = { interface-type interface-number [ to interface-type interface-number] }&<1-10>. interface-type is interface type, and interface-number is interface number. The interface number after the keyword to must be larger than or equal to that before to. &<1-10> represents that the preceding parameter can be repeated up to 10 times.

Description

Use the display garp statistics command to view the GARP statistics information, including the number of packets received/sent and discarded by GVRP/GMRP.

Examples

# Display the GARP statistics information on Ethernet port Ethernet 2/1/1.

<Quidway> display garp statistics interface ethernet2/1/1

GARP statistics on port Ethernet2/1/1

Number Of GMRP Frames Received : 0

Number Of GVRP Frames Received : 0

Number Of GMRP Frames Transmitted : 0

Number Of GVRP Frames Transmitted : 0

Number Of Frames Discarded : 0

The information above indicates that the number of received/sent packets and the number of packets discarded by GVRP/GMRP on Ethernet 2/1/1 are all 0.

Page 3: 07 GVRP Commands

Chapter 1 GARP and GVRP Configuration Commands

Command Manual – GVRPQuidway S8500 Series Routing Switches

1-2 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1.1.2 display garp timer

Syntax

display garp timer [ interface interface-list ]

View

Any view

Parameters

interface-list: List of Ethernet ports of which the GARP timer information is to be displayed, expressed as interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-10>. interface-type is interface type, and interface-number is interface number. The interface number after the keyword to must be larger than or equal to that before to. &<1-10> means that the preceding parameter can be repeated up to 10 times.

Description

Use the display garp timer command to view the value of GARP timer, including Hold timer, Join timer, Leave timer and LeaveAll timer.

Related commands: garp timer, garp timer leaveall.

Examples

# Display GARP timer on Ethernet 2/1/1.

<Quidway> display garp timer interface ethernet2/1/1

GARP timers on port Ethernet2/1/1

GARP JoinTime : 20 centiseconds

GARP Leave Time : 60 centiseconds

GARP LeaveAll Time : 1000 centiseconds

GARP Hold Time : 10 centiseconds

1.1.3 garp timer

Syntax

garp timer { hold | join | leave } timer-value

undo garp timer { hold | join | leave }

View

Ethernet port view

Page 4: 07 GVRP Commands

Command Manual – GVRP Quidway S8500 Series Routing Switches

Chapter 1 GARP and GVRP Configuration Commands

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-3

Parameters

hold: GARP Hold timer. After receiving certain registration information, the GARP application entity will not send Join Message at once. Instead, it starts the Hold timer. All the registration information received within duration of the Hold timer will be transmitted in the same frame after the Hold timer times out, thereby saving the bandwidth resource.

join: GARP Join timer. GARP application entity will send out Join message after the Join timer goes timeout to make other GARP application entity register its own information.

leave: GARP Leave timer . When a GARP application entity wants to deregister certain attribute information, it sends Leave message. The GARP application entity receiving the message starts Leave timer. If the entity receives no Join message before the timer goes timeout, it will deregister the attribute information.

timer-value: Value of GARP hold timer, join timer and leave timer in centiseconds. The step is five centiseconds. By default, Hold timer is 10 centiseconds, Join timer is 20 centiseconds, Leave timer is 60 centiseconds.

The range conforms to the following rule:

The value of Join timer should be no less than the doubled value of Hold timer. The value of Leave timer should be greater than the doubled value of Join timer

and smaller than the Leaveall timer value. The minimal value of Join timer is 10 centiseconds.

Description

Use the garp timer command to set the value of GARP timer (including Hold timer, Join timer and Leave timer) of the port.

Use the undo garp timer command to restore the default value of GARP timer.

The value range of a timer varies with the values of other timers. So if the value of a timer you want to set is not within the available value range, you can change the value range by changing the values of other related timers.

The lower limit of Hold timer is 10 centiseconds. You can change its upper limit by changing the value of Join timer.

You can change the lower limit and upper limit of Join timer by changing the value of Hold timer and Leave timer respectively.

You can change the lower limit and upper limit of Leave timer by changing the value of Join timer and LeaveAll timer respectively.

The upper limit of LeaveAll timer is 32765 centiseconds. You can change its lower limit by changing the value of Leave timer.

Related commands: display garp timer.

Page 5: 07 GVRP Commands

Chapter 1 GARP and GVRP Configuration Commands

Command Manual – GVRPQuidway S8500 Series Routing Switches

1-4 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Examples

# Set Join timer of GARP to 300 ms.

<Quidway> system-view

System View: return to User View with Ctrl+Z.

[Quidway] interface ethernet 2/1/1

[Quidway-Ethernet2/1/1] garp timer join 300

1.1.4 garp timer leaveall

Syntax

garp timer leaveall timer-value

undo garp timer leaveall

View

System view

Parameters

timer-value: Value of GARP LeaveAll timer in centiseconds, ranging from 65 to 32765. The step is five centiseconds. The value of LeaveAll timer should be greater than the value of Leave timer.

Description

Use the garp timer leaveall command to configure GARP LeaveAll timer.

Use the undo garp timer leaveall command to restore the default value.

By default, the value of LeaveAll timer is 1000 centiseconds, that is, 10s.

After every GARP application entity is started, the LeaveAll timer will be started simultaneously. The GARP application entity will send LeaveAll message after the timer times out to make other application entities re-register all attribute information on the entities themselves. Then, the LeaveAll timer is started and the new cycle begins.

Related commands: display garp timer.

Examples

# Set GARP LeaveAll timer to 1s.

<Quidway> system-view

System View: return to User View with Ctrl+Z.

[Quidway] garp timer leaveall 100

Page 6: 07 GVRP Commands

Command Manual – GVRP Quidway S8500 Series Routing Switches

Chapter 1 GARP and GVRP Configuration Commands

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-5

1.1.5 reset garp statistics

Syntax

reset garp statistics [ interface interface-list ]

View

User view

Parameters

interface-list: Specifies a list of Ethernet ports on which the GARP statistics information will be cleared, expressed as interface-list = { interface-type interface-number [ to interface-type interface-num] }&<1-10>. interface-type is interface type, and interface-number is interface number. The interface-number after the keyword to must be larger than or equal to that before to. &<1-10> means that the preceding parameter can be repeated up to 10 times.

Description

Use the reset garp statistics command to reset the GARP statistics information (such as the packets received/sent and discarded by GVRP/GMRP). If the command has no parameter, it will clear the GARP statistics information of all the ports.

Related commands: display garp statistics.

Examples

# Clear GARP statistics information.

<Quidway> reset garp statistics

1.2 GVRP Configuration Commands

1.2.1 display gvrp statistics

Syntax

display gvrp statistics [ interface interface-list ]

View

Any view

Parameters

Interface-list: List of Ethernet ports on which the GVRP statistics information is to be displayed, expressed as interface-list = { interface-type interface-number } [ to interface-type interface-number] }&<1-10>. interface-type is interface type, and interface-number is interface number. The interface-number after the keyword to must

Page 7: 07 GVRP Commands

Chapter 1 GARP and GVRP Configuration Commands

Command Manual – GVRPQuidway S8500 Series Routing Switches

1-6 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

be larger than or equal to that before to. &<1-10> means that the preceding parameter can be repeated up to 10 times.

Description

Use the display gvrp statistics command to view the GVRP statistics information of all the Trunk ports, including GVRP status information, failed GVRP registration entries and the last GVRP data unit origin.

Examples

# Display the GVRP statistics information on Ethernet 2/1/1.

<Quidway> display gvrp statistics interface ethernet2/1/1

GVRP statistics on port Ethernet2/1/1

GVRP Status : Enabled

GVRP Failed Registrations : 0

GVRP Last Pdu Origin : 0000-0000-0000

GVRP Registration Type : Normal

Table 1-1 Description on the fields of the display gvrp statistics command

Field Description

GVRP Status GVRP status, that is, enabled or disabled

GVRP Failed Registrations Failed GVRP registration entries

GVRP Last Pdu Origin

The source of the last GVRP data unit. If GVRP data unit is not received, the system displays 0000-0000-0000; if received from a device, the GVRP data unit received last time is regarded as coming from this MAC address of this device.

GVRP Registration Type GVRP registration type, that is, fixed, forbidden or normal

1.2.2 display gvrp status

Syntax

display gvrp status

View

Any view

Parameters

None

Page 8: 07 GVRP Commands

Command Manual – GVRP Quidway S8500 Series Routing Switches

Chapter 1 GARP and GVRP Configuration Commands

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-7

Description

Use the display gvrp status command to view the global GVRP status information.

Examples

# Display the global status information about GVRP.

<Quidway> display gvrp status

GVRP is enabled

The above information means that the global GVRP is enabled.

1.2.3 gvrp

Syntax

gvrp

undo gvrp

View

System view, Ethernet port view

Parameters

None

Description

Use the gvrp command to enable GVRP.

Use the undo gvrp command to disable GVRP.

By default, GVRP is disabled.

This command can be used to enable/disable global GVRP in system view or enable/disable port GVRP in Ethernet port view.

Before enabling port GVRP, you must enable global GVRP first. In addition, port GVRP only can be enabled or disabled on Trunk ports.

Related commands: display gvrp status.

Examples

# Enable global GVRP.

<Quidway> system-view

System View: return to User View with Ctrl+Z.

[Quidway] gvrp

Page 9: 07 GVRP Commands

Chapter 1 GARP and GVRP Configuration Commands

Command Manual – GVRPQuidway S8500 Series Routing Switches

1-8 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1.2.4 gvrp registration

Syntax

gvrp registration { fixed | forbidden | normal }

undo gvrp registration

View

Ethernet port view

Parameters

fixed: Enables to create or register VLAN on the port manually and disables to register or deregister VLAN dynamically.

forbidden: Deregisters all VLANs except VLAN 1 and disables to create or register any other VLAN on the port.

normal: Enables to create, register and deregister VLAN on the port manually or dynamically.

Description

Use the gvrp registration command to configure GVRP registration type.

Use the undo gvrp registration command to restore the default type.

By default, the registration type is normal.

This command can be only used on Trunk port.

Related commands: display gvrp statistics.

Examples

# Set the GVRP registration type of Ethernet 2/1/1 as fixed.

<Quidway> system-view

System View: return to User View with Ctrl+Z.

[Quidway] interface ethernet 2/1/1

[Quidway-Ethernet2/1/1] gvrp registration fixed