Using banner tokens with banner login

Unanswered Question
Jun 11th, 2010
User Badges:


I am trying to configure new banners for our switches and routers that show up when connecting to the devices using SSH (version 2).

It works well except that I am not able to display banner tokens with the "banner login" command.

To explain what I mean, the following configuration is done on the switch:

banner login '
Login Banner: $(hostname)

banner exec '
Exec Banner: $(hostname)

banner motd '
Motd Banner: $(hostname)

When I connect using SSH I get the following result:

login as: admin

Login Banner: $(hostname)
Using keyboard-interactive authentication.

Motd Banner: CAT4948

Exec Banner: CAT4948


As you can see the hostname in the login banner is not translated, but the one in motd and exec is.

This example was taken connecting with PuTTY using SSH version 2 to a Catalyst 4948 running version 12.2(53)SG2.

According to the documentation it looks like it should work also for the login banner:

Do you know what could be the issue and how this could be solved?

Thanks in advance for your help!

Best regards,


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)


This Discussion