187
3.
Configure port security.
# Enable port security.
[Router] port-security enable
# Add five OUI values.
[Router] port-security oui 1234-0100-1111 index 1
[Router] port-security oui 1234-0200-1111 index 2
[Router] port-security oui 1234-0300-1111 index 3
[Router] port-security oui 1234-0400-1111 index 4
[Router] port-security oui 1234-0500-1111 index 5
[Router] interface gigabitethernet 1/0/1
# Set the port security mode to
userLoginWithOUI
.
[Router-GigabitEthernet1/0/1] port-security port-mode userlogin-withoui
[Router-GigabitEthernet1/0/1] quit
4.
Verify the configuration.
After completing the configurations, use the following command to view the configuration information of
the RADIUS scheme named
radsun
:
<Router> display radius scheme radsun
SchemeName : radsun
Index : 1 Type : standard
Primary Auth Server:
IP: 192.168.1.2 Port: 1812 State: active
Encryption Key : N/A
VPN instance : N/A
Primary Acct Server:
IP: 192.168.1.3 Port: 1813 State: active
Encryption Key : N/A
VPN instance : N/A
Second Auth Server:
IP: 192.168.1.3 Port: 1812 State: active
Encryption Key : N/A
VPN instance : N/A
Second Acct Server:
IP: 192.168.1.2 Port: 1813 State: active
Encryption Key : N/A
VPN instance : N/A
Auth Server Encryption Key : name
Acct Server Encryption Key : money
Accounting-On packet disable, send times : 5 , interval : 3s
Interval for timeout(second) : 5
Retransmission times for timeout : 5
Interval for realtime accounting(minute) : 15
Retransmission times of realtime-accounting packet : 5
Retransmission times of stop-accounting packet : 500
Quiet-interval(min) : 5
Username format : without-domain
Data flow unit : Byte