Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Use of Banner Exec command.

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
Hall of Fame Super Blue

Re: Use of Banner Exec command.

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

New Member

Re: Use of Banner Exec command.

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.

Hall of Fame Super Blue

Re: Use of Banner Exec command.

Akber

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

Jon

New Member

Re: Use of Banner Exec command.

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.

Hall of Fame Super Blue

Re: Use of Banner Exec command.

Akber

Can you post your config ?

Jon

New Member

Re: Use of Banner Exec command.

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^

Bronze

Re: Use of Banner Exec command.

Variations on banner Command Output

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

Hall of Fame Super Bronze

Re: Use of Banner Exec command.

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.

5188
Views
0
Helpful
8
Replies