Cisco banners

From Ever changing code
Jump to navigation Jump to search

Banner	Telnet			SSHv1			SSHv2
motd	Displayed before login	Displayed after login	Displayed after login
login	Displayed before login	Not displayed		Displayed before login
exec	Displayed after login	Displayed after login	Displayed after login

The exec banner is displayed after authentication therefore it is safe to display system specific info thus certain variables can be used. See an example below to display a hostname and a domain name using $(variable).

banner exec ^C  You have logged in to $(hostname).$(domain).  ^C

Examples

           YOU HAVE ACCESSED A DEVICE THAT IS A PART OF A
                   PRIVATE NETWORK INFRASTRUCTURE

       *********************************************************
       *                                                       *
       *     Unauthorised access or use of this equipment      *
       *      is prohibited and constitutes an offence         *
       *        under the Computer Misuse Act 1990.            *
       *     If you are not authorised to use this system      *
       *         TERMINATE THIS SESSION IMMEDIATELY            *
       *                                                       *
       *********************************************************