Use the following commands to configure the local authentication server.
aaa authentication default
![]() |
Note: You can specify multiple authentication methods; for example, aaa authentication ppp default local radius. If, during local authentication, the matching user entry is not found in a populated database or if it is found and rejected, the authentication procedure terminates. However, if the specified local user database is empty or if it does not exist, the authentication process uses the next authentication method specified (RADIUS in this case). |
- host1(config)#aaa authentication ppp default
local radius
aaa local database
- host1(config)#aaa local database westLocal40
aaa local select database
- host1(config)#virtual-router cleveland
- host1:cleveland(config)#aaa local select database
westLocal40
aaa local username
![]() |
Note: The router supports usernames up to 64 characters long; however, PAP and CHAP support is limited to 31-character usernames. |
- host1(config)#aaa local username cksmith database
westLocal40
ip address
- host1(config-local-user)#ip-address 192.168.42.6
ip address-pool
- host1(config-local-user)#ip-address-pool svPool2
operational-virtual-router
- host1(config-local-user)#operational-virtual-router
boston2
password
![]() |
Note: CHAP authentication requires that passwords and secrets be stored in clear text or use two-way encryption. Two-way encryption is not supported for the secret command. Therefore, use the password command if you want to enable encryption for subscribers that use CHAP authentication. |
- host1(config-local-user)#password 0 myPassword
secret
![]() |
Note: CHAP authentication requires that passwords and secrets be stored in clear text or use two-way encryption. Two-way encryption is not supported for the secret command. Therefore, use the password command if you want to enable encryption for subscribers that use CHAP authentication. |
- host1(config-local-user)#secret 5 Q3&t9REwk45jxSM#fj$z
user-name
![]() |
Note: CHAP authentication requires that passwords and secrets be stored in clear text or use two-way encryption. Two-way encryption is not supported for the secret command. Therefore, use the password command if you want to enable encryption for subscribers that use CHAP authentication. |
- host1(config-local-user)#username cksmith
secret 5 Q3&t9REwk45jxSM#fj$z