HABP configuration example

Network requirements

As shown in Figure 66, Switch A is attached with access devices Switch B and Switch C. 802.1X authentication is configured on Switch A for central authentication and management of users (Host A through Host D).

For communication between Switch B and Switch C, enable HABP server on Switch A, enable HABP client on Switch B and Switch C, and specify VLAN 1 for HABP packets.

Configure the HABP server to send HABP request packets to the HABP clients in VLAN 1 at an interval of 50 seconds.

Figure 66: Network diagram

Configuration procedure

  • Configure Switch A:

  • # Perform 802.1X related configurations on Switch A (see "Configuring 802.1X").

    # Enable HABP. (HABP is enabled by default. This configuration is optional.)

    <SwitchA> system-view
    [SwitchA] habp enable
    

    # Configure HABP to work in server mode, and specify VLAN 1 for HABP packets.

    [SwitchA] habp server vlan 1
    

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

    [SwitchA] habp timer 50
    
  • Configure Switch B:

  • # Enable HABP. (HABP is enabled by default. This configuration is optional.)

    <SwitchA> system-view
    [SwitchB] habp enable
    

    # Configure HABP to work in client mode. (HABP works in client mode by default. This configuration is optional.)

    [SwitchB] undo habp server
    

    # Specify the VLAN to which the HABP client belongs as VLAN 1. (An HABP client belongs to VLAN 1 by default. This configuration is optional.)

    [SwitchB] habp client vlan 1
    
  • Configure Switch C:

  • Configurations on Switch C are similar to those on Switch B.

  • Verify your configuration:

  • # Display HABP configuration information.

    <SwitchA> display habp
    Global HABP information:
             HABP Mode: Server
             Sending HABP request packets every 50 seconds
             Bypass VLAN: 1
    

    # Display HABP MAC address table entries.

    <SwitchA> display habp table
    MAC             Holdtime  Receive Port
    001f-3c00-0030  53        Ethernet1/0/2
    001f-3c00-0031  53        Ethernet1/0/1