細かい所あれこれ 1

ということで1812Jの細かい主に管理用の設定をごちょごちょ入れていきます。まずはアカウントまわりから。

  • 特権モードのパスワードをつける


(Config)# enable password $password

  • コンソールログインのパスワードをつける


(config)# line console 0
(config-line)# password $password
(config-line)# login

  • sshでログインできるようにする


(config)#ip domain name $domain
(config)#crypto key generate
The name for the keys will be: .home
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.

How many bits in the modulus [512]: 1024
(config)#username $id password $password
(config)#line vty 0 4
(config-line)#login local
(config-line)#transport input ssh

一見ドメイン名は余分な設定に見えますが、どうやら必要みたい。

  • 時刻をJST


(config)clock timezone JST 9

  • ntpサーバを指定(ちなみにマルチフィードです。)


(config)ntp server 210.173.160.27

同期の確認はshow ntp statusで確認できます。


# show ntp status
Clock is synchronized, stratum 3, reference is 210.173.160.57
nominal freq is 250.0000 Hz, actual freq is 250.0000 Hz, precision is 2**18
reference time is CC575678.0EB813E5 (11:50:32.057 JST Thu Aug 21 2008)
clock offset is 2.6413 msec, root delay is 10.28 msec
root dispersion is 12.41 msec, peer dispersion is 3.97 msec

こんなとこですかね。次はsnmpとsyslogの設定を。