cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
16229
Views
5
Helpful
8
Replies

Use of Banner Exec command.

mirzaakberali
Level 1
Level 1

Hi,

What is the use of Banner Exec command .

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

Regards,

Akber.

8 Replies 8

Jon Marshall
Hall of Fame
Hall of Fame

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

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.

Akber

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

Jon

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.

Akber

Can you post your config ?

Jon

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^

Variations on banner Command Output

http://www.cisco.com/warp/public/707/ssh.shtml#banners

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.

Getting Started

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:

Review Cisco Networking products for a $25 gift card