H3C S9500 Command Manual-Release1648[v1.24]-01 IP Access Volume

HomeSupportSwitchesH3C S9500 Series SwitchesReference GuidesCommand ReferencesH3C S9500 Command Manual-Release1648[v1.24]-01 IP Access Volume
15-HVRP Commands
Title Size Download
15-HVRP Commands 43.17 KB

Chapter 1  HVRP Configuration Commands

1.1  HVRP Configuration Commands

1.1.1  debugging hvrp error

Syntax

debugging hvrp error

undo debugging hvrp error

View

User view

Parameters

None

Description

Use the debugging hvrp error command to enable HVRP error debugging.

Use the undo debugging hvrp error command to disable HVRP error debugging.

By default, HVRP error debugging is disabled.

Examples

# Enable HVRP error debugging.

<H3C> debugging hvrp error

1.1.2  debugging hvrp info

Syntax

debugging hvrp info

undo debugging hvrp info

View

User view

Parameters

None

Description

Use the debugging hvrp info command to enable HVRP VLAN debugging function.

Use the undo debugging hvrp info command to disable HVRP VLAN debugging function.

By default, HVRP VLAN debugging function is disabled.

Examples

# Enable HVRP VLAN debugging function.

<H3C> debugging hvrp info

1.1.3  display hvrp brief

Syntax

display hvrp brief

View

Any view

Parameters

None

Description

Use the display hvrp brief command to display HVRP status.

Examples

# Display HVRP status.

<H3C> display hvrp brief

HVRP is enabled globally.

1.1.4  display hvrp local-vlan

Syntax

display hvrp local-vlan

View

Any view

Parameters

None

Description

Use the display hvrp local-vlan command to display local VLAN information.

Examples

# Display local VLAN information.

<H3C> display hvrp local-vlan

Now, the following VLAN exist(s):

1(default), 97-100

1.1.5  display hvrp port-vlan

Syntax

display hvrp port-vlan interface-type interface-num

View

Any view

Parameters

interface-type: Port type, can be Ethernet or GigabitEthernet.

interface-num: Port number, in the form of ‘’service board slot number/card slot number/port number”

l           Service board slot number represents the slot number of the service board for a specified port, with S9505 ranging from 2 to 6, S9512 from 0 to 13, and S9508 from 0 to 3, 6 to 9.

l           Card slot number indicates the card slot number of a specific port, in the range of 1 to 3.

l           Port number specifies the card slot number of a given port. Depending on the actual port number of the card, it can be 1, or in the range of 1 to 2, 1 to 4, 1 to 10, 1 to 20, 1 to 24, 1 to 32, 1 to 48.

Description

Use the display hvrp port-vlan command to display all interconnected VLANs for a given port.

Examples

# Display all interconnected VLANs for a given port.

<H3C> display hvrp port-vlan ethernet 6/1/18

Now, the following VLAN exist(s):

2-5, 9-10, 99

1.1.6  display hvrp verbose

Syntax

display hvrp verbose

View

Any view

Parameters

None

Description

Use the display hvrp verbose command to display detailed HVRP information.

Examples

# Display detailed HVRP information.

<H3C> display hvrp verbose

 HVRP is enabled globally.

 HVRP registervlan timer       : 5s

 HVRP registervlan age interval   : 15s

 HVRP age all VLAN             : Enabled

 

    HVRP statistics on port GigabitEthernet5/1/1 (PORT_LINK_UP)

    Mstp role            :

                 1 - designated

                 2 - designated

                 3 - designated

                 4 - designated

                 5 - designated

                 6 – designated

1.1.7  hvrp enable

Syntax

hvrp enable

undo hvrp enable

View

System view or Ethernet port view

Parameters

None.

Description

Use the hvrp enable command to enable HVRP globally (in system view), or enable HVRP on an Ethernet port (in Ethernet port view).

Use the undo hvrp enable command to disable HVRP globally (in system view), or disable HVRP on an Ethernet port (in Ethernet port view).

By default, HVRP is disabled both globally and on Ethernet ports.

Be aware of the following aspects while configuring HVRP:

l           HVRP-enabled ports must be Trunk ports;

l           It is recommended to remove HVRP-enabled ports from VLAN 1

l           Only after HVRP has been enabled globally can HVRP be enabled on an Ethernet port.

l           Globally disabling HVRP will simultaneously disable HVRP on all ports.

l           Disabling HVRP on a port will automatically disable the other HVRP-related configurations on the port, such as timer configuration.

l           HVRP must be used together with STP/MSTP. Before HVRP is enabled, you must enable STP/MSTP. After you enable HVRP, it is not allowed to disable STP/MSTP.

l           After you enable HVRP, the system will dynamically set the mode in which a VLAN learns MAC addresses. Thus, you need not manually configure the number of MAC addresses that can be learned by the VLAN.

l           HVRP configuration cannot be copied between ports.

l           HVRP and GVRP are mutually exclusive.

l           XP4-type boards (except XP4L boards) do not support HVRP.

Examples

# Enable HVRP globally.

<H3C> system-view

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

[H3C] hvrp enable

# Enable HVRP for port Ethernet 2/1/1.

<H3C>system-view

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

[H3C] interface Ethernet 2/1/1

[H3C-Ethernet2/1/1] hvrp enable

1.1.8  hvrp permanent-vlan

Syntax

hvrp permanent-vlan vlan-id [ to vlan-id ]

undo hvrp permanent-vlan [ vlan-id [ to vlan-id ] ]

View

System view

Parameters

vlan-id: VLAN ID, in the range of 1 to 4094.

Description

Use the hvrp permanent-vlan command to configure a permanent VLAN or a group of permanent VLANs.

Use the undo hvrp permanent-vlan command to remove the permanent attribute of a VLAN or a group of VLANs.

No VLAN is configured as a permanent VLAN by default.

Except permanent VLANs, VLANs on HVRP ports may be aged out. Permanent VLANs will never be aged out.

You can configure the permanent property of a VLAN only after the specified VLAN is created.

Examples

# Configure VLAN 112 through VLAN 120 as permanent VLANs.

<H3C> system-view

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

[H3C] hvrp permanent-vlan 112 to 120

1.1.9  hvrp timer

Syntax

hvrp timer { registervlan | registervlan-age } timer-num

undo hvrp timer { registervlan | registervlan-age }

View

System view

Parameters

registervlan: Specifies VLAN registration timer.

registervlan-age: Specifies registered-VLAN aging interval.

timer-num: VLAN registration interval or registered-VLAN aging time, in seconds.

Description

Use the hvrp timer registervlan command to configure the VLAN registration timer for HVRP.

Use the undo hvrp timer registervlan command to restore the default VLAN registration time.

Use the hvrp timer registervlan-age command to configure the registered-VLAN aging interval for HVRP.

Use the undo hvrp timer registervlan-age command to restore the default registered-VLAN aging interval.

By default, the VLAN registration time is 5 seconds and the registered-VLAN aging interval is 15 seconds.

 

&  Note:

The hvrp timer registervlan-age command is used to configure the registered-VLAN aging interval. The VLAN registration timer is within the range below: not less than the registered-VLAN aging interval, but less than twice the registered-VLAN aging interval.

 

Examples

# Set the registered-VLAN aging interval to 5 seconds.

<H3C> system-view

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

[H3C]hvrp timer registervlan-age 5

1.1.10  hvrp vlan-age all

Syntax

hvrp vlan-age all

undo hvrp vlan-age all

View

System view

Parameters

None

Description

Use the hvrp vlan-age all command to allow the switch to age all VLANs.

Use the undo hvrp vlan-age all command to allow the switch to age only Local VLANs.

By default, only Local VLANs are allowed to be aged.

 

  Caution:

For single ring networks and multiple ring networks, you are recommended to use the default configuration that ages only the local VLANs. A switch located on the intersection point of the intersected rings must be configured to age all the VLANs.

 

Examples

# Allow the system to age all VLANs.

<H3C> system-view

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

[H3C] hvrp vlan-age all

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网