Wednesday, 18 July 2012

Summary of different modes and hostname/password commands

REMEMBER YOU MUST BE IN THE RIGHT MODES TO EXECUTE THE RIGHT COMMANDS.

For NWF, there are 3 main modes for now

User mode (denoted by the ">" sign)

Router>

Priviledged mode (denoted by the "#" sign)

Router> enable
Router#

Global config mode (denoted by the "(config)#")

Router# configure terminal or conf t (short form)
Router (config)#

To return to the previous mode, type exit

For example, to return to user mode from global config mode, use the following

Router (config)# exit
Router# exit
Router >

There are 4 passwords you will need to configure in the router.

1) Console password - The password you used when you first log in to the router. There is only one console session which is numbered "0"

router(config)# line console 0
router(config)# password XXX
router(config)# login

Remember to type login to activate the password

2) Enable password - The PLAINTEXT password you used after you type "enable"

router(config)# enable password XXX

3) Enable password - The ENCRYPTED password you used after you type "enable". Cisco router will use it instead of the PLAINTEXT password.

router(config)# enable secret XXX

4) Telnet password - The password you used when you telnet into the router (seldom used in NWF). There are 5 telnet sessions supported, which are numbered from "0" to "4".

router(config)# line vty 0 4
router(config)# password XXX
router(config)# login

Remember to type login to activate the password

To configure hostname, use the command

router (config)# hostname XXX

Knowing all these will help you score good grades in the semester later on.

No comments:

Post a Comment