R0106-HP MSR Router Series Security Configuration Guide(V7)

173
userLoginWithOUI configuration example
Network requirements
As shown in Figure 60, a client is connected to the device through port GigabitEthernet 2/1/1. The
device authenticates the client with a RADIUS server. If the authentication succeeds, the client is
authorized to access the Internet.
The RADIUS server at 192.168.1.2 functions as the primary authentication server and the secondary
accounting server. The RADIUS server at 192.168.1.3 functions as the secondary authentication
server and the primary accounting server. The shared key for authentication is name, and the
shared key for accounting is money.
All users use the authentication, authorization, and accounting methods of ISP domain sun, which
can handle up to 30 users.
The RADIUS server response timeout time is 5 seconds. The maximum number of RADIUS packet
retransmission attempts is 5. The device sends real-time accounting packets to the RADIUS server at
15-minute intervals, and sends usernames without domain names to the RADIUS server.
Configure GigabitEthernet 2/1/1 to allow only one 802.1X user and a user who uses one of the
specified OUI values to be authenticated.
Figure 60 Network diagram
Configuration procedure
The following configuration steps cover some AAA/RADIUS configuration commands. For more
information about the commands, see Security Command Reference.
Make sure the host and the RADIUS server can reach each other.
1. Configure AAA:
# Configure a RADIUS scheme named radsun.
<Device> system-view
[Device] radius scheme radsun
[Device-radius-radsun] primary authentication 192.168.1.2
[Device-radius-radsun] primary accounting 192.168.1.3
[Device-radius-radsun] secondary authentication 192.168.1.3
[Device-radius-radsun] secondary accounting 192.168.1.2
[Device-radius-radsun] key authentication simple name
[Device-radius-radsun] key accounting simple money
[Device-radius-radsun] timer response-timeout 5
[Device-radius-radsun] retry 5
[Device-radius-radsun] timer realtime-accounting 15
[Device-radius-radsun] user-name-format without-domain