Configuring portal server detection and portal user information synchronization

Network requirements

As shown in Figure 62, a host is directly connected to a switch (the access device) and must pass portal authentication before it can access the Internet. A RADIUS server serves as the authentication/accounting server.

Detailed requirements are as follows:

Figure 62: Network diagram

Configuration considerations

  • Configure the portal server and enable portal server heartbeat function and the portal user heartbeat function.

  • Configure the RADIUS server to implement authentication and accounting.

  • Configure direct portal authentication on interface VLAN-interface 100, which is connected with the user host.

  • Configure the portal server detection function on the access device, so that the access device can detect the status of the portal server by cooperating with the portal server heartbeat function.

  • Configure the portal user information synchronization function, so that the access device can synchronize portal user information with the portal server by cooperating with the portal user heartbeat function.

  • Configuration prerequisites

    Configuring the portal server

    This example assumes that the portal server runs on IMC PLAT 5.0(E0101) and IMC UAM 5.0(E0101).

    # Configure the portal server.

    Log in to IMC and select the Service tab. Then, select User Access Manager > Portal Service Management > Server from the navigation tree to enter the portal server configuration page, as shown in Figure 63.

    Figure 63: Portal server configuration

    # Configure the IP address group.

    Select User Access Manager > Portal Service Management > IP Group from the navigation tree to enter the portal IP address group configuration page. Then, click Add to enter the page shown in Figure 64.

    Figure 64: Adding an IP address group

    # Add a portal device.

    Select User Access Manager > Portal Service Management > Device from the navigation tree to enter the portal device configuration page. Then, click Add to enter the page shown in Figure 65.

    Figure 65: Adding a portal device

    # Associate the portal device with the IP address group.

    As shown in Figure 66, click the icon in the Port Group Information Management column of device NAS to enter the port group configuration page.

    Figure 66: Device list

    On the port group configuration page, click Add to enter the page shown in Figure 67. Perform the following configurations:

    Figure 67: Adding a port group

    # Select User Access Manager > Service Parameters > Validate System Configuration from the navigation tree to validate the configurations.

    Configuring the switch

  • Configure a RADIUS scheme:

  • # Create RADIUS scheme rs1 and enter its view.

    <Switch> system-view
    [Switch] radius scheme rs1
    

    # Configure the server type for the RADIUS scheme. When using the IMC server, configure the RADIUS server type as extended.

    [Switch-radius-rs1] server-type extended
    

    # Specify the primary authentication server and primary accounting server, and configure the keys for communication with the servers.

    [Switch-radius-rs1] primary authentication 192.168.0.112
    [Switch-radius-rs1] primary accounting 192.168.0.112
    [Switch-radius-rs1] key authentication simple radius
    [Switch-radius-rs1] key accounting simple radius
    

    # Configure the access device to not carry the ISP domain name in the username sent to the RADIUS server.

    [Switch-radius-rs1] user-name-format without-domain
    [Switch-radius-rs1] quit
    
  • Configure an authentication domain:

  • # Create ISP domain dm1 and enter its view.

    [Switch] domain dm1
    

    # Configure AAA methods for the ISP domain.

    [Switch-isp-dm1] authentication portal radius-scheme rs1
    [Switch-isp-dm1] authorization portal radius-scheme rs1
    [Switch-isp-dm1] accounting portal radius-scheme rs1
    [Switch-isp-dm1] quit
    

    # Configure domain dm1 as the default ISP domain for all users. Then, if a user enters a username without the ISP domain at logon, the authentication and accounting methods of the default domain are used for the user.

    [Switch] domain default enable dm1
    
  • Configure portal authentication:

  • # Configure a portal server on the switch, specifying the portal server name as newpt, IP address as 192.168.0.111, key as plaintext string portal, port number as 50100, and URL as http://192.168.0.111:8080/portal.

    [Switch] portal server newpt ip 192.168.0.111 key portal port 50100 url http://192.168.0.111:8080/portal
    

    # Enable portal authentication on the interface connecting the host.

    [Switch] interface vlan-interface 100
    [Switch–Vlan-interface100] portal server newpt method direct
    [Switch–Vlan-interface100] quit
    
  • Configure the portal server detection function

  • # Configure the access device to detect portal server newpt, specifying the detection method as portal heartbeat probe, setting the server probe interval to 40 seconds, and specifying the access device to send a server unreachable trap message and disable portal authentication to permit unauthenticated portal users if two consecutive probes fail.

    [Switch] portal server newpt server-detect method portal-heartbeat action trap permit-all interval 40 retry 2
    

    The product of interval and retry must be greater than or equal to the portal server heartbeat interval, and Hewlett Packard Enterprise recommends configuring the interval as a value greater than the portal server heartbeat interval configured on the portal server.

  • Configure portal user synchronization

  • # Configure the access device to synchronize portal user information with portal server newpt, setting the synchronization probe interval to 600 seconds, and specifying the access device to log off users if the users do not appear in the user synchronization packets sent from the server in two consecutive probe intervals.

    [Switch] portal server newpt user-sync interval 600 retry 2
    

    The product of interval and retry must be greater than or equal to the portal user heartbeat interval, and Hewlett Packard Enterprise recommends configuring the interval as a value greater than the portal user heartbeat interval configured on the portal server.

    Verifying the configuration

    Use the following command to view information about the portal server.

    <Switch> display portal server newpt
     Portal server:
      1)newpt:
          IP   : 192.168.0.111
          Key  : ******
          Port : 50100
          URL  : http://192.168.0.111:8080/portal
       Status  : Up
    

    The Up state of the portal server indicates that the portal server is reachable. If the access device detects that the portal server is unreachable, you can see the portal server status is Down in the output, and the access device generates a server unreachable trap "portal server newpt lost" and disables portal authentication on the access interface, so the client can access the external network without authentication.