The AAA local authentication server enables the E-series router to provide local PAP and CHAP user authentication for subscribers. The router also provides limited authorization, using the IP address, IP address pool, and operational virtual router parameters. When a subscriber logs on to the E-series router that is using local authentication, the subscriber is authenticated against user entries in a local user database; the optional parameters are assigned to subscribers after the subscriber is authenticated.
To create your local authentication environment:
When a subscriber connects to an E-series router that is using local authentication, the local authentication server uses the entries in the local user database selected by the virtual router to authenticate the subscriber.
A local authentication server can have multiple local user databases, and each database can have entries for multiple subscribers. The default local user database, if it exists, is used for local authentication by default. The E-series router supports a maximum of 100 user entries. A maximum of 100 databases can be configured.
To create a local user database, use the aaa local database command and the name of the database; use the name default to create the default local user database:
- host1(config)#aaa local database westLocal40
The local authentication server uses the information in a local user database to authenticate a subscriber. A local user database can contain information for multiple users.
The E-series router provides two commands for adding entries to local user databases: the username command and the aaa local username command. You can specify the following parameters:
The username command is similar to the command used by some third-party vendors. The command can be used to add entries in the default local user database; it is not supported for named local user databases. The IP address, IP address pool, and operational virtual router parameters are not supported in the username command. However, after the user is added to the default local user database, you can use the aaa local username command with a database name default to enter Local User Configuration mode and add the additional parameters.
![]() |
Note: If the default local user database does not exist, the username command creates this database and adds the user entry to the database. |
To add a subscriber and password or secret to the default local user database, complete the following step:
- host1(config)#username rockyB password rockyPassword
To enter Local User Configuration mode and add user entries to a local user database, use the following commands:
- host1(config)# aaa local username cksmith
database westLocal40
- host1(config-local-user)#
![]() |
Note: You can use the aaa local username command to add or modify user entries to a default database that was created by the username command. |
- host1(config-local-user)#password 8 iTtakes2%
- host1(config-local-user)#ip-address 192.168.101.19
- host1(config-local-user)#ip-address-pool svPool2
- host1(config-local-user)#operational-virtual-router
boston2
Use the procedure in this section to assign a local user database to a virtual router. The virtual router uses the database for local authentication when the subscriber connects to the E-series router. Use the following commands in Global Configuration mode:
![]() |
Note: If you do not specify a local user database, the virtual router selects the default database by default. This applies to all virtual routers. |
- host1(config)# virtual-router cleveland
- host1:cleveland(config)# aaa local select
database westLocal40
On the E-series router, RADIUS is the default AAA authentication method for PPP subscribers. Use the commands in this section to specify that the local authentication method is used.
To enable local authentication on the default router, use the following command:
- host1(config)# aaa authentication ppp default
local
To enable local authentication on a specific virtual router, first select the virtual router:
- host1(config)# virtual-router cleveland
- host1:cleveland(config)# aaa authentication
ppp default local
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
This example creates a sample local authentication environment. The steps in this example:
Example 1
This example shows the commands you use to create the AAA local authentication environment.
- host1(config)#aaa local database westfordLocal40
- host1(config)#aaa local username btjones database
westfordLocal40
- host1(config-local-user)#secret 38schillCy
- host1(config-local-user)#ip-address-pool addressPoolA
- host1(config-local-user)#operational-virtual-router
boston2
- host1(config-local-user)#exit
- host1(config)#aaa local username maryrdavis
database westfordLocal40
- host1(config-local-user)#secret 0 dav1sSecret99
- host1(config-local-user)#ip-address 192.168.20.106
- host1(config-local-user)#operational-virtual-router
boston1
- host1(config-local-user)#exit
- host1(config)#username cksmith password 0
yourPassword1
- host1(config)#aaa local username cksmith database
default
- host1(config-local-user)#ip-address-pool addressPoolA
- host1(config-local-user)#operational-virtual-router
boston2
- host1(config-local-user)#exit
- host1(config)#virtual-router cleveland
- host1(config)#aaa local select database default
- host1(config)#virtual-router default
- host1(config)#aaa local select database westfordLocal40
- host1(config)#virtual-router chicago
- host1(config)#aaa local select database westfordLocal40
- host1(config)#virtual-router default
- host1(config)#aaa authentication ppp default
local none
Example 2
This example verifies that local authentication is configured on the router.
host1#show aaa authentication ppp default local none
Example 3
This example uses the show configuration category aaa local-authentication command with the databases keyword to show the local user databases that are configured on the router.
host1# show configuration category aaa local-authentication databases ! Configuration script being generated on TUE NOV 09 2004 12:50:18 UTC ! Juniper Edge Routing Switch ERX-1400 ! Version: 6.1.0 (November 8, 2004 18:31) ! Copyright (c) 1999-2004 Juniper Networks, Inc. All rights reserved. ! ! Commands displayed are limited to those available at privilege level 15 ! ! NOTE: This script represents only a subset of the full system configuration. ! The category displayed is: aaa local-authentication databases ! hostname host1 aaa new-model aaa local database default aaa local database westfordLocal40
Example 4
This example uses the local-authentication users keywords to show the configured users and their parameters. The password for username cksmith is displayed unencrypted because the default setting of disabled or no for the service password-encryption command is used for the example. Secrets are always displayed encrypted.
host1# show configuration category aaa local-authentication users ! Configuration script being generated on THU NOV 11 2004 13:40:41 UTC ! Juniper Edge Routing Switch ERX-1400 ! Version: 6.1.0 (November 10, 2004 21:15) ! Copyright (c) 1999-2004 Juniper Networks, Inc. All rights reserved. ! ! Commands displayed are limited to those available at privilege level 15 ! ! NOTE: This script represents only a subset of the full system configuration. ! The category displayed is: aaa local-authentication users ! hostname host1 aaa new-model aaa local username cksmith database default password yourPassword1 operational-virtual-router boston2 ip-address-pool addressPoolA ! aaa local username btjones database westfordLocal40 secret 5 }9s7-4N<WK2)2=)^!6~# operational-virtual-router boston2 ip-address-pool addressPoolA ! aaa local username maryrdavis database westfordLocal40 secret 5 E@A:nDXJJ<irb\`mF#[j operational-virtual-router boston1 ip-address 192.168.20.106
Example 5
This example uses the users include-defaults keywords to show the configured users and their parameters, including the default parameters no-ip-address and no ip-address-pool.
host1# show configuration category aaa local-authentication users include-defaults ! Configuration script being generated on TUE NOV 09 2004 13:09:03 UTC ! Juniper Edge Routing Switch ERX-1400 ! Version: 6.1.0 (November 8, 2004 18:31) ! Copyright (c) 1999-2004 Juniper Networks, Inc. All rights reserved. ! ! Commands displayed are limited to those available at privilege level 15 ! ! NOTE: This script represents only a subset of the full system configuration. ! The category displayed is: aaa local-authentication users ! hostname host1 aaa new-model aaa local username cksmith database default password yourPassword1 operational-virtual-router boston2 no ip-address ip-address-pool addressPoolA ! aaa local username btjones database westfordLocal40 secret 5 }9s7-4N<WK2)2=)^!6~# operational-virtual-router boston2 no ip-address ip-address-pool addressPoolA ! aaa local username maryrdavis database westfordLocal40 secret 5 E@A:nDXJJ<irb\`mF#[j operational-virtual-router boston1 ip-address 192.168.20.106 no ip-address-pool
Example 6
This example uses the virtual-router keyword with the default specification to show the local user database that is used by the default virtual router.
host1# show configuration category aaa local-authentication virtual-router default ! Configuration script being generated on TUE NOV 09 2004 13:09:45 UTC ! Juniper Edge Routing Switch ERX-1400 ! Version: 6.1.0 (November 8, 2004 18:31) ! Copyright (c) 1999-2004 Juniper Networks, Inc. All rights reserved. ! ! Commands displayed are limited to those available at privilege level 15 ! ! NOTE: This script represents only a subset of the full system configuration. ! The category displayed is: aaa local-authentication ! virtual-router default aaa local select database westfordLocal40
Example 7
This example uses the virtual-router keyword with a named virtual router. The include-defaults keyword shows the default configuration, including the line showing that there is no named local user database selected.
host1# show configuration category aaa local-authentication virtual-router cleveland include-defaults ! Configuration script being generated on TUE NOV 09 2004 13:09:25 UTC ! Juniper Edge Routing Switch ERX-1400 ! Version: 6.1.0 (November 8, 2004 18:31) ! Copyright (c) 1999-2004 Juniper Networks, Inc. All rights reserved. ! ! Commands displayed are limited to those available at privilege level 15 ! ! NOTE: This script represents only a subset of the full system configuration. ! The category displayed is: aaa local-authentication ! virtual-router cleveland no aaa local select