To secure the switch for HTTP access by using AAA methods, you must configure the switch with the
ip
http authentication aaa
global configuration command. Configuring AAA authentication does not secure
the switch for HTTP access by using AAA methods.
Note
Follow these steps to configure AAA to operate without a server by setting the switch to implement AAA in
local mode:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
aaa new-model
4.
aaa authentication login default local
5.
aaa authorization exec local
6.
aaa authorization network local
7.
username name
[
privilege level
] {
password encryption-type password
}
8.
end
9.
show running-config
10.
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode. Enter your password if prompted.
enable
Step 1
Example:
Switch>
enable
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 2
Enables AAA.
aaa new-model
Example:
Switch(config)#
aaa new-model
Step 3
Sets the login authentication to use the local username database.
The
default
keyword applies the local user database authentication
to all ports.
aaa authentication login default local
Example:
Switch(config)#
aaa authentication login
Step 4
Catalyst 2960-X Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX
108
OL-29048-01
Configuring Local Authentication and Authorization
Configuring the Switch for Local Authentication and Authorization