Part 8 - Security

06-HABP Commands

Chapters Download  (44.36 KB)

06-HABP Commands


HABP Configuration Commands

display habp

Syntax

display habp

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display habp command to display HABP configuration information.

Examples

# Display HABP configuration information.

<Sysname> display habp

Global HABP information:

    HABP Mode: Server

    Sending HABP request packets every 20 seconds

    Bypass VLAN: 2

Table 1-1  display habp command output description

Field

Description

HABP Mode

HABP mode of the current device, server or client

Sending HABP request packets every 20 seconds

Interval at which the switch sends HABP request packets

Bypass VLAN

ID of the VLAN in which HABP packets are transmitted

 

display habp table

Syntax

display habp table

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display habp table command to display HABP MAC address table entries.

Examples

# Display HABP MAC address table entries.

<Sysname> display habp table

MAC             Holdtime  Receive Port

001f-3c00-0030  53        GigabitEthernet1/0/1

Table 1-2  display habp table command output description

Field

Description

MAC

MAC address

Holdtime

Lifetime of an entry in seconds. The initial value is three times of the interval to send HABP request packets. An entry will age out if it is not updated during the period.

Receive Port

Port that learned the MAC address

 

display habp traffic

Syntax

display habp traffic

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display habp traffic command to display HABP packet statistics.

Examples

# Display HABP packet statistics.

<Sysname> display habp traffic

HABP counters :

    Packets output: 0, Input: 0

    ID error: 0, Type error: 0, Version error: 0

    Sent failed: 0

Table 1-3  display habp traffic command output description

Field

Description

Packets output

Number of HABP packets sent

Input

Number of HABP packets received

ID error

Number of packets with an incorrect ID

Type error

Number of packets with an incorrect type

Version error

Number of packets with an incorrect version number

Sent failed

Number of packets failed to be sent

 

habp enable

Syntax

habp enable

undo habp enable

View

System view

Default Level

2: System level

Parameters

None

Description

Use the habp enable command to enable HABP.

Use the undo habp enable command to disable HABP.

By default, HABP is enabled.

Examples

# Enable HABP.

<Sysname> system-view

[Sysname] habp enable

habp server vlan

Syntax

habp server vlan vlan-id

undo habp server

View

System view

Default Level

2: System level

Parameters

vlan-id: ID of the VLAN in which HABP packets are to be transmitted, in the range 1 to 4094.

Description

Use the habp server vlan command to configure HABP to work in server mode and specify the VLAN in which HABP packets are to be transmitted.

Use the undo habp server command to configure HABP to work in the default mode.

By default, HABP works in client mode.

Note that in a cluster, if a member device with 802.1X authentication or MAC authentication enabled is attached with some other member devices of the cluster, you also need to configure HABP server on this device. Otherwise, the cluster management device will not be able to manage the devices attached to this member device. For information about the cluster function, see Cluster Management Configuration in the Configuration Guide - Part 1 - Login.

Examples

# Configure HABP to work in server mode and specify the VLAN for HABP packets as VLAN 2.

<Sysname> system-view

[Sysname] habp server vlan 2

habp timer

Syntax

habp timer interval

undo habp timer

View

System view

Default Level

2: System level

Parameters

interval: Interval (in seconds) at which the switch sends HABP request packets, in the range 5 to 600.

Description

Use the habp timer command to set the interval at which the switch sends HABP request packets.

Use the undo habp timer command to restore the default.

The default interval is 20 seconds.

This command is required only on the HABP server.

Examples

# Set the interval at which the switch sends HABP request packets to 50 seconds.

<Sysname> system-view

[Sysname] habp timer 50

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.