Banners |
Banners can be set so that an administrator can warn users or relay information to users when they log onto the router. Type in the banner command, then see what is available. In this example we will create a message of the day banner. So type in motd #, not what is the pound sign for you might ask, the pound sign is the delimiting character, which means that when I am finished typing the message I use the pound sign to signify that I am finished typing the banner. Router(config)#banner ? LINE c banner-text c, where 'c' is a delimiting character Router(config)#banner motd ? LINE c banner-text c, where 'c' is a delimiting character Router(config)#banner motd # Enter TEXT message. End with the character ‘#’. Unauthrorized access prohibited!! You will be prosecuted!!# Now exit out of the router, then log back in. You should see the banner that you created. Press RETURN to get started. Unauthrorized access prohibited!! You will be prosecuted!! Router> Router>enable In this example I have created the user exec mode and privileged mode passwords. A network adminsitrator will wan to create these passwords so that not anybody can access the router and get in. Later I a will show you how to encrypt the passwords. Notice how the enable secret password and the enable password cannot be the same. Make sure that they are different for security purposes. Router#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. Router(config)#enable secret cisco Router(config)#enable password cisco The enable password you have chosen is the same as your enable secret. This is not recommended. Re-enter the enable password. In the first line I have created a password to get into the global configuration mode. Now we have set a password at each step of accessing the configuration files of the router. A user can also set passwords for each interface. Router(config)#enable password cisco1 Router(config)# # #line con 0 Router(config-line)#login Router(config-line)#password cisco In this example I wanted to see what commands are available at this step. Take a look through them. Some of these we will use in later steps. Router(config-line)#? Line configuration commands: absolute-timeout Set absolute timeout for line disconnection –More– ######### ######### flowcontrol Set the flow control –More– ######### ######### flush-at-activation Clear input stream at activation full-help Provide help to unprivileged user –More– ######### ######### private Configuration options that user can set will remain in effect between terminal sessions –More– ######### ######### After exciting out of the line command I went back in to explore the line aux command. Notice how when I use the ? command the option is only zero. This is the same with the console command and the v t y command, zero is the only option on all of these. I went ahead and entered in passwords for each of these interfaces. Router(config-line)#exit Router(config)#line aux ? <0-0> First Line number Router(config)#line aux 0 Router(config-line)#login Router(config-line)#password cisco Router(config-line)#^Z Router# %SYS-5-CONFIG_I: Configured from console by console Router#config ti# # Enter configuration commands, one per line. End with CNTL/Z. Router(config)#line vty 0 Router(config-line)#password cisco Router(config-line)#login Router(config-line)#^Z |