Configuring Other Options

Any self-respecting Junos OS device will include other things, such as the banner and time and time zone, which you configure in this section.

Configuring a banner for login

When you log in to the Junos OS device, you're immediately placed into the CLI and can start working. The prompt shows the username you used to log in and the name of the device:

user@junos-device>

Because the device is shared on a network, you may want to send a message to all the other users who log in. One way to do so is to display a message on the screen each time someone logs in. This banner containing the message displays before or after the login prompt, depending on which command you use.

After entering configuration mode, use the banner command set system login message to place your message before the login prompt. The \n puts one blank line (a new line) after the text and before the login prompt:

[edit]
user@junos-device# set system login message “Junos OS device managed by the
       4Dummies Network team\n”

The following banner appears each time someone logs in to the router:

user@remote-host# ssh junos-device
Junos OS device managed by the 4Dummies Network team
junos-device (ttyp0)
login:

If your company has legal requirements in place to limit access to key network devices, such as routers, you can use the login banner to warn that only certain people are allowed to work on the router. Be sure to use the specific language the legal department provides for the banner. ...

Get Junos® OS For Dummies®, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.