Wednesday 24 June 2020

Configuring Banner or Login Message in Cisco and Juniper


Taking Cisco's  Sample Legal Banner message from their Network Security Baseline page.
Sample Legal Banner Notification Configuration
! Present a legal notification banner approved by company legal counsel
banner login #
UNAUTHORIZED ACCESS TO THIS DEVICE IS PROHIBITED
You must have explicit, authorized permission to access or configure this device.
Unauthorized attempts and actions to access or use this system may result in civil and/or 
criminal penalties.
All activities performed on this device are logged and monitored.
#
!

Here's how to configure for:
Cisco

RP/0/0/CPU0:R3#configure 
Wed Jun 24 05:33:02.134 UTC
RP/0/0/CPU0:R3(config)#banner login #
Enter TEXT message. End with the character '#'
*************************************************************************
        UNAUTHORIZED ACCESS TO THIS DEVICE IS PROHIBITED

You must have explicit, authorized permission to access or configure this 
device.Unauthorized attempts and actions to access or use this system may
result in civil and/or criminal penalties. 
All activities performed on this device are logged and monitored.

*************************************************************************
#
RP/0/0/CPU0:R3#commit
Sample Output:


Juniper

darwin@vMX-1>configure
darwin@vMX-1#set system login message "\n*************************************************************************\n       UNAUTHORIZED ACCESS TO THIS DEVICE IS PROHIBITED\n\nYou must have explicit, authorized permission to access or configure this \ndevice.Unauthorized attempts and actions to access or use this system may \nresult in civil and/or criminal penalties.\nAll activities performed on this device are logged and monitored.\n\n*************************************************************************\n\n"

darwin@vMX-1#commit

As per Juniper website, message can be formatted using these following characters:

\n—New line
\t—Horizontal tab
\'—Single quotation mark
\"—Double quotation mark
\\—Backslash

Sample output:


No comments:

Post a Comment