Cisco   « iPod-Linux の巻。 | HOME | DHCP server »

 ■ Initial setup

Here is a useful command for initial setup on Cisco router.

Save setup
Router# copy running-config startup-config
You need to execute it after changed setup. Otherwise it will be gone after router restarted.


Date & Time
Router# clock set 12:34:56 october 15 2009
Router# show clock

Host name
Router(config)# hostname name

Buffer setup for logging (Log can be saved in buffer.)
Router(config)# logging buffered

Reject access from web browser
Router(config)# no ip http server

If you would like to enable it again,
Router(config)# ip http server

Create a speed command by user

Router(config)# alias exec speed-command original-command

For example,
Router(config)# alias exec sr show running-config

Show message when logging in
Router(config)# banner motd # message #

Kill inquiry to DNS when inputting wrong command
Router(config)# no ip domain lookup

Kill auto disconnection from console or telnet (10mins)
To keep remote session,
Router(config)# line vty 0 4
Router(config-line)# exec-timeout 0 0

To keep local session,
Router(config)# line console 0
Router(config-line)# exec-timeout 0 0

Or you can input no exec-timeoue.
(Default is exect-timeout 10 0)

Kill status message breaking in the line while inputting command
Sometimes the router status message makes your inputting cursor move to somewhere. To prevent this,
Router(config)# line console 0
Router(config-line)# logging synchronous


Always enable password mode

For console,
Router(config)# line console 0
router(config-line)# privilege level 15

For telnet,
Router(config)# line vty 0 4
router(config-line)# privilege level 15

Change the page length
The default setup is 24 lines for one page. This is how to show all in the screen at once.
Router(config)# line console 0
Router(config-line)# length 0

投稿者 tomopugh : 2009年10月15日 17:10

Comment

Please comment !




Save the info?


  (Please don't click on "post" twice. It takes time a bit to change to the next screen!!)