Friday, May 22, 2009

Telnet login using IP address

Cisco


Line vty 0 4
Logging synchronous
Password (level 1 password) =>encrypt password
Login local =>enable password login
Session-limit 1 =>limit to 1 login session
Motd-banner =>display warning message


Juniper


set system services telnet  => enable telnet service on the router
set system login user user1 class super-user authentication plain-text-password


=>You will prompted to set your password


Replace user1 with the username you will like to create
Replace super-user with the level of access right you will like to give to the user

Console Login using rollback cable

Line console 0
Logging synchronous => Information items sent to the console will not interrupt the command you are typing.
Password  7 (level 1 password) =>encrypt password
Login local =>enable password login
Session-limit 1 =>limit to 1 login session
exec-timeout 0 0 => Sets the time limit when the console automatically logs off. Set to 0 0 (minutes seconds) means the console never logs off. Default is 10 minutes.

Thursday, May 14, 2009

Hostname


Cisco


Router(config)#Hostname B10_L23_R30
B10_L23_R30(config)#


Juniper



[edit]
root# set system host-name B10_L23_R30


[edit]
root# commit
commit complete


[edit]
root@B10_L23_R30# [edit]

Wednesday, May 13, 2009

Banner - Warning Message

Cisco


Banner login % (warning message) %
Banner motd % (warning message) %

e.g. 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                                                                                                                   *
*                                                                                 *
*    Please navigate away from this website or ip address now if                     *
*    you are not an authorised personnel belonging to ABC Pte Ltd *
*    You will be prosecuted as the host IP that you are using has                    *
*   already been captured by our system if you attempt to navigate                    *
*                                          any further                                           *
*                                                                                 *
*                                                                                 *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



Juniper

Special Characters—You can format the message using the following special characters:
  • \n—New line
  • \t—Horizontal tab
  • \'—Single quotation mark
  • \"—Double quotation mark
  • \\—Backslash

root@B10_L23_R30# set system login message "\n\n\n\tPlease Do not enter!!!\n\tYou will be prosecuted under the law\n\tPlease contact abc@company.com to gain access.\n\n\n"



e.g.




                Please Do not enter!!!
                You will be prosecuted under the law
                Please contact abc@company.com to gain access.