Use of Banner Exec command.

Unanswered Question
Mar 6th, 2008

Hi,

What is the use of Banner Exec command .

Also what is the difference between Banner Exec and Banner Motd command .

Regards,

Akber.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Jon Marshall Thu, 03/06/2008 - 07:41

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

mirzaakberali Thu, 03/06/2008 - 07:49

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.

Jon Marshall Thu, 03/06/2008 - 07:52

Akber

Yes, the exec banner will appear after the user has logged into the router.

Jon

mirzaakberali Thu, 03/06/2008 - 08:08

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.

mirzaakberali Thu, 03/06/2008 - 08:56

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^

Edison Ortiz Sat, 03/08/2008 - 10:38

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.

Actions

This Discussion