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.

statement in the configuration, which uses the lo0 interface address as the router’s<br />

system address, this address is used as the source for most Telnet connections (see<br />

Recipe 7.4).<br />

The result of this behavior is that the default Telnet source address is not always the<br />

same and not always deterministic. If the source address matters when using Telnet<br />

to access another system, include it in the telnet command. One instance when you<br />

should do so is when filtering the source address on incoming connections, which<br />

may block packets coming to the default source address. Another instance is when<br />

you use Telnet as a generic way to check and troubleshoot other TCP ports (such as<br />

connecting to a server on port 25 to see if it is listening for SNMP mail connections).<br />

The source address that you specify must be an address that’s configured on the<br />

router.<br />

See Also<br />

Recipes 7.4 and 7.12<br />

2.16 Creating a Login Banner<br />

Problem<br />

You want to display a banner during login that indicates that the router is for authorized<br />

users only.<br />

Solution<br />

You define a login banner:<br />

[edit system login]<br />

aviva@router1# set message "\n\<br />

n==========================================================\n\nAccess to this device<br />

is limited to authorized users only.\n\n WARNING: All unauthorized access is<br />

prohibited.\n\n=================================================<br />

=========\n\n"<br />

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

A login banner is displayed each time anyone logs in to the router, before the login<br />

prompt:<br />

aviva-server% telnet router1<br />

==========================================================<br />

Access to this device is limited to authorized users only.<br />

WARNING: All unauthorized access is prohibited.<br />

==========================================================<br />

router1 (ttyp0)<br />

login:<br />

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

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.<br />

Creating a Login Banner | 101

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

Saved successfully!

Ooh no, something went wrong!