03-06-2008 07:36 AM - edited 03-05-2019 09:35 PM
Hi,
What is the use of Banner Exec command .
Also what is the difference between Banner Exec and Banner Motd command .
Regards,
Akber.
03-06-2008 07:41 AM
Hi Akber
From Cisco configuration guide
=============================================
This command specifies a message to be displayed when an EXEC process is created (a line is activated, or an incoming connection is made to a vty). Follow this command with one or more blank spaces and a delimiting character of your choice. Then enter one or more lines of text, terminating the message with the second occurrence of the delimiting character.
When a user connects to a router, the message-of-the-day (MOTD) banner appears first, followed by the login banner and prompts. After the user logs in to the router, the EXEC banner or incoming banner will be displayed, depending on the type of connection. For a reverse Telnet login, the incoming banner will be displayed. For all other connections, the router will display the EXEC banner.
To disable the EXEC banner on a particular line or lines, use the no exec-banner line configuration command
=============================================
HTH
Jon
03-06-2008 07:49 AM
Thanks Jon for the information.
So you mean to say Banner exec message shld be displayed after you login with user/pwd credentails and banner motd and login messages befre the user authentication ?
Thanks, Akber.
03-06-2008 07:52 AM
Akber
Yes, the exec banner will appear after the user has logged into the router.
Jon
03-06-2008 08:08 AM
Agreed with you, But in my case banner motd and banner login messaeges also appearing after entering the user credentials.
Plz help me....
Thanks, Akber.
03-06-2008 08:34 AM
Akber
Can you post your config ?
Jon
03-06-2008 08:56 AM
Please see the configs below:
banner motd ^Cc SSH enabled with password defined. SSH and console banner to read
-=*=- -=*=- -=*=- -=*=- -=*=- -=*=- -=*=- -=*=-
S Y S T E M A C C E S S W A R N I N G
-=*=- -=*=- -=*=- -=*=- -=*=- -=*=- -=*=- -=*=-
You have connected to a private network. This system is to only be used
by authorized personnel for authorized business purposes. All activity
is monitored and logged. Unauthorized access or activity is a violation
of law. If you have connected to this system by mistake, disconnect now.^C
banner exec ^C you are into the exec mode. PLease enter your commands C^
03-06-2008 09:41 AM
Variations on banner Command Output
03-08-2008 10:38 AM
I copied and pasted you config in my router and I don't see that behavior. It's working as expected.
exit
Rack1R1 con0 is now available
Press RETURN to get started.
SSH enabled with password defined. SSH and console banner to read
-=*=- -=*=- -=*=- -=*=- -=*=- -=*=- -=*=- -=*=-
S Y S T E M A C C E S S W A R N I N G
-=*=- -=*=- -=*=- -=*=- -=*=- -=*=- -=*=- -=*=-
You have connected to a private network. This system is to only be used
by authorized personnel for authorized business purposes. All activity
is monitored and logged. Unauthorized access or activity is a violation
of law. If you have connected to this system by mistake, disconnect now
User Access Verification
Username: test
Password:
you are into the exec mode. PLease enter your commands
One thing to keep in mind, if you are using SSH, you send the username and password information before getting the prompt. Try getting into the router via the console and see if the behavior is SSH or Banner related.
HTH,
__
Edison.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: