1-14 
Configuration procedure 
 
 
z  The following configuration steps cover some AAA/RADIUS configuration commands. For details 
about the commands, refer to AAA Configuration in the Security Volume.  
z  Configurations on the host and RADIUS servers are omitted.  
 
1)  Configure the RADIUS protocol 
# Configure a RADIUS scheme named radsun. 
<Switch> system-view 
[Switch] radius scheme radsun 
[Switch-radius-radsun] primary authentication 192.168.1.2 
[Switch-radius-radsun] primary accounting 192.168.1.3 
[Switch-radius-radsun] secondary authentication 192.168.1.3 
[Switch-radius-radsun] secondary accounting 192.168.1.2 
[Switch-radius-radsun] key authentication name 
[Switch-radius-radsun] key accounting money 
[Switch-radius-radsun] timer response-timeout 5 
[Switch-radius-radsun] retry 5 
[Switch-radius-radsun] timer realtime-accounting 15 
[Switch-radius-radsun] user-name-format without-domain 
[Switch-radius-radsun] quit 
# Configure an ISP domain named sun.  
[Switch] domain sun 
[Switch-isp-sun] authentication default radius-scheme radsun 
[Switch-isp-sun] authorization default radius-scheme radsun 
[Switch-isp-sun] accounting default radius-scheme radsun 
[Switch-isp-sun] access-limit enable 30 
[Switch-isp-sun] quit 
2)  Configure port security 
# Enable port security. 
[Switch] port-security enable 
# Add five OUI values.  
[Switch] port-security oui 1234-0100-1111 index 1 
[Switch] port-security oui 1234-0200-1111 index 2 
[Switch] port-security oui 1234-0300-1111 index 3 
[Switch] port-security oui 1234-0400-1111 index 4 
[Switch] port-security oui 1234-0500-1111 index 5 
[Switch] interface gigabitethernet 1/0/1 
# Set the port security mode to userLoginWithOUI. 
[Switch-GigabitEthernet1/0/1] port-security port-mode userlogin-withoui 
3)  Verify the configuration