Example: Configuring AAA for 802.1X users by a RADIUS server

Network configuration

As shown in Figure 21, configure the switch to meet the following requirements:

On the RADIUS server, perform the following tasks:

Set the shared keys to expert for secure RADIUS communication. Set the ports for authentication and accounting to 1812 and 1813, respectively.

Figure 21: Network diagram

Procedure

  1. Configure interfaces and VLANs, so the host promptly obtains a new IP address to access resources in the authorized VLAN after passing authentication. (Details not shown.)

  2. If you are using IMC PLAT 3.20, configure the RADIUS server as follows:


    [NOTE: ]

    NOTE:

    In this section, the RADIUS authentication and accounting servers are IMC UAM 3.60-E6206 and IMC CAMS 3.60-E6206, respectively. They are running on IMC PLAT 3.20-R2606.


    # Add the switch to the IMC Platform as an access device:

    Log in to IMC, click the Service tab, and select Access Service > Access Device from the navigation tree. Then, click Add to configure an access device as follows:

    1. Set the shared key to expert for secure authentication and accounting communication.

    2. Set the ports for authentication and accounting to 1812 and 1813, respectively.

    3. Select LAN Access Service from the Service Type list.

    4. Select HP from the Access Device Type list.

    5. Select an access device from the device list or manually add an access device. In this example, the device IP address is 10.1.1.2.

    6. Use the default values for other parameters and click OK.

    The IP address of the access device specified here must be the same as the source IP address of the RADIUS packets sent from the switch. The source IP address is chosen in the following order on the switch:

    • IP address specified by using the nas-ip command.

    • IP address specified by using the radius nas-ip command.

    • IP address of the outbound interface (the default).

    Figure 22: Adding the switch as an access device

# Add a charging plan:

Click the Service tab, and select Charging Service > Charging Plans from the navigation tree to enter the charging plan configuration page. Then, click Add to configure a charging plan as follows:

  1. Add a plan named UserAcct.

  2. Select Flat rate from the Charging Template list.

  3. Select time for Charge Based on, select Monthly for Billing Term, and enter 120 in the Fixed Fee field.

  4. Enter 120 in the Usage Threshold field and select hr (hours) for the in field. The configuration allows the user to access the Internet for up to 120 hours per month.

  5. Use the default values for other parameters and click OK.

Figure 23: Adding a charging plan

# Add a service:

Click the Service tab, and select Access Service > Service Configuration from the navigation tree. Then, click Add to configure a service as follows:

  1. Add a service named Dot1x auth, and set the service suffix to bbb, the authentication domain for the 802.1X user. With the service suffix configured, you must configure the access device to send usernames that include domain names to the RADIUS server.

  2. Select UserAcct from the Charging Plan list.

  3. Select Deploy VLAN and set the ID of the VLAN to be assigned to 4.

  4. Configure other parameters as needed.

  5. Click OK.

Figure 24: Adding a service

# Add a user:

Click the User tab, and select Access User View > All Access Users from the navigation tree to enter the All Access Users page. Then, click Add to configure a user as follows:

  1. Select the user or add a user named test.

  2. Specify the account name as dot1x and configure the password.

  3. Select Dot1x auth in the Access Service area.

  4. Configure other parameters as needed and click OK.

Figure 25: Adding an access user account

  1. If you are using IMC PLAT 5.0, configure the RADIUS server as follows:


    [NOTE: ]

    NOTE:

    In this section, the authentication and accounting RADIUS servers are IMC UAM 5.0 (E0101) and IMC CAMS 5.0 (E0101), respectively. They are running on IMC PLAT 5.0 (E0101).


    # Add the switch to the IMC Platform as an access device:

    Log in to IMC, click the Service tab, and select User Access Manager > Access Device Management > Access Device from the navigation tree. Then, click Add to configure an access device as follows:

    1. Set the shared key to expert for secure authentication and accounting communication.

    2. Set the ports for authentication and accounting to 1812 and 1813, respectively.

    3. Select LAN Access Service from the Service Type list.

    4. Select HP from the Access Device Type list.

    5. Select an access device from the device list or manually add an access device. In this example, the device IP address is 10.1.1.2.

    6. Use the default values for other parameters and click OK.

    The IP address of the access device specified here must be the same as the source IP address of the RADIUS packets sent from the switch. The source IP address is chosen in the following order on the switch:

    • IP address specified by using the nas-ip command.

    • IP address specified by using the radius nas-ip command.

    • IP address of the outbound interface (the default).

    Figure 26: Adding the switch as an access device

# Add a charging plan:

Click the Service tab, and select Accounting Manager > Charging Plans from the navigation tree to enter the charging plan configuration page. Then, click Add to configure a charging plan as follows:

  1. Add a plan named UserAcct.

  2. Select Flat rate from the Charging Template list.

  3. Select time for Charge Based on, select Monthly for Billing Term, and enter 120 in the Fixed Fee field.

  4. Enter 120 in the Usage Threshold field and select hr (hours) for the in field. The configuration allows the user to access the Internet for up to 120 hours per month.

  5. Use the default values for other parameters and click OK.

Figure 27: Adding a charging plan

# Add a service:

Click the Service tab, and select User Access Manager > Service Configuration from the navigation tree. Then, click Add to configure a service as follows:

  1. Add a service named Dot1x auth, and set the service suffix to bbb, the authentication domain for the 802.1X user. With the service suffix configured, you must configure the access device to send usernames that include domain names to the RADIUS server.

  2. Select UserAcct from the Charging Plan list.

  3. Select Deploy VLAN and set the ID of the VLAN to be assigned to 4.

  4. Configure other parameters as needed.

  5. Click OK.

Figure 28: Adding a service

# Add a user:

Click the User tab, and select Access User View > All Access Users from the navigation tree to enter the All Access Users page. Then, click Add to configure a user as follows:

  1. Select the user or add a user named hello.

  2. Specify the account name as dot1x and configure the password.

  3. Select Dot1x auth in the Access Service area.

  4. Configure other parameters as needed and click OK.

Figure 29: Adding an access user account

  1. Configure the switch:

    1. Configure a RADIUS scheme:

      # Create a RADIUS scheme named rad and enter RADIUS scheme view.

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

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

      [Switch-radius-rad] primary authentication 10.1.1.1
      [Switch-radius-rad] primary accounting 10.1.1.1
      [Switch-radius-rad] key authentication simple expert
      [Switch-radius-rad] key accounting simple expert
      

      # Include domain names in the usernames sent to the RADIUS server.

      [Switch-radius-rad] user-name-format with-domain
      [Switch-radius-rad] quit
      
    2. Configure an authentication domain:

      # Create an ISP domain named bbb and enter ISP domain view.

      [Switch] domain bbb
      

      # Configure the ISP domain to use RADIUS scheme rad for authentication, authorization, and accounting of LAN users.

      [Switch-isp-bbb] authentication lan-access radius-scheme rad
      [Switch-isp-bbb] authorization lan-access radius-scheme rad
      [Switch-isp-bbb] accounting lan-access radius-scheme rad
      [Switch-isp-bbb] quit
      
    3. Configure 802.1X authentication:

      # Enable 802.1X globally.

      [Switch] dot1x
      

      # Enable 802.1X for .

      [Switch] interface 
      [Switch-] dot1x
      

      # Configure the access control method. By default, an 802.1X-enabled port uses the MAC-based access control.

      [Switch-] dot1x port-method macbased
      

Verifying the configuration

  1. On the host, use account dot1x@bbb to pass 802.1X authentication:

    # If the host runs the Windows XP 802.1X client, configure the network connection properties as follows:

    1. Click the Authentication tab of the properties window.

    2. Select the Enable IEEE 802.1X authentication for this network option.

    3. Select MD5 challenge as the EAP type.

    4. Click OK.

    The user passes authentication after entering the correct username and password on the authentication page.

    # If the host runs the iNode client, no advanced authentication options are required. The user can pass authentication after entering username dot1x@bbb and the correct password on the client property page.

  2. On the switch, verify that the server assigns the port connecting the client to VLAN 4 after the user passes authentication. (Details not shown.)

  3. Display 802.1X connection information on the switch.

    [Switch] display dot1x connection