28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A slight twist to this recipe is to use only a single authentication, specifying a remote<br />

method. The following command uses only RADIUS authentication:<br />

[edit]<br />

aviva@router1> set system authentication-order radius<br />

This configuration allows users to log in to the router only if the RADIUS server has<br />

an account for them and only if the RADIUS server is up. This means that as long as<br />

the RADIUS server is up, users not listed in the RADIUS database won’t be able to<br />

log in to the router even if there is a configured account for them on the router. However,<br />

if the RADIUS server fails or becomes unreachable, the JUNOS software<br />

authenticates the users locally. If you configure multiple RADIUS servers, the software<br />

checks for locally configured user accounts only after all the servers fail.<br />

Make sure you configure user accounts and assign passwords in the JUNOS configuration<br />

for some users (see Recipe 2.5) so that login access to the router will be possible<br />

if the RADIUS or TACACS+ servers fail.<br />

See Also<br />

Recipes 2.5, 2.8, 2.12, and 2.13<br />

2.5 Setting Up Login Accounts on the Router<br />

Problem<br />

You want a number of people to be able to work on the router to monitor and configure<br />

it.<br />

Solution<br />

Set up a login account for each person who is allowed to log in to the router:<br />

[edit system login]<br />

aviva@router1# set user sage class operator<br />

aviva@router1# set user sage full-name "sage david"<br />

aviva@router1# set user sage uid 1991<br />

aviva@router1# set user sage authentication plain-text-password<br />

New password:<br />

Retype new password:<br />

<strong>Discussion</strong><br />

For each user who you want to log in to the router, create a login account, providing<br />

information about the user that is similar to what you set for Unix accounts. The<br />

JUNOS software uses this account to locally authenticate the user.<br />

Each account requires two pieces of information: a login name (configured with the<br />

user statement) and a login class (configured with the class statement), which associates<br />

a set of privileges with the user, defining the scope of operations that can be<br />

Setting Up Login Accounts on the Router | 81<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!