28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Solution<br />

Use the following command to change the encryption used for plain-text passwords<br />

to DES:<br />

[edit]<br />

aviva@router1# set system login password format des<br />

For MD5 encryption, use the following command:<br />

[edit]<br />

aviva@router1# set system login password format md5<br />

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

All passwords that you enter in a JUNOS configuration are encrypted. For plain-text<br />

passwords, you can use one of three types of encryption: SHA1 (the default and the<br />

strongest), MD5, or DES. The encryption type that you configure is used for all plaintext<br />

passwords. You cannot specify different encryption types for different users.<br />

See Also<br />

Recipe 2.5<br />

2.8 Creating a Login Account for Remote<br />

Authentication<br />

Problem<br />

You want to use a RADIUS or TACACS+ database to authenticate users instead of<br />

setting up individual login accounts for them on the router.<br />

Solution<br />

Create a login account that has the username remote:<br />

[edit system]<br />

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

aviva@router1# set login user remote full-name "remote account"<br />

aviva@router1# set login user remote uid 9999<br />

Then set the authentication order so that the remote authentication server is checked<br />

before the router’s configuration file. The following command uses a RADIUS server:<br />

[edit system]<br />

aviva@router1# set authentication-order [ radius password ]<br />

Use the following command for TACACS+:<br />

[edit system]<br />

aviva@router1# set authentication-order [ tacacs password ]<br />

86 | Chapter 2: Basic Router Security and Access Control<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!