- 追加された行はこの色です。
- 削除された行はこの色です。
[[ネットワーク関連]]~
目次~
#contents
*設定 [#v0cd909d]
**ホスト名設定 [#bdb43917]
-手順
>enable
(config)#configure terminal
(config)#hostname [HOSTNAME]
**アドレスの設定 [#kcd3142f]
***管理アドレスの設定 [#m054e93e]
-手順
>enable
#configure terminal
(config)#interface vlan1
(config-if)#ip address [IP]/[MASK]
***デフォルトゲートウェイの設定 [#ucb87db8]
-手順
>enable
#configure terminal
(config)#ip route 0.0.0.0/0 [GATEWAY]
**時刻設定 [#g7557214]
***現在時刻の変更 [#pecc4c65]
-手順
>enable
#configure terminal
(config)#clock set HH:MM:SS dd mmm yyyy
***タイムゾーン設定 [#beddac0d]
-手順(日本時間)
>enable
#configure terminal
(config)#clock timezone JST plus 9
***NTP設定 [#le15185c]
-手順
>enable
#configure terminal
(config)#ntp server [NTP SERVER]
**syslog設定 [#x1720d0b]
syslogサーバへのログ転送設定。~
-書式
(config)# log host [IP]
(config)# log host [IP] level [LEVEL]
(config)# log host [IP]
(config)# log host [IP] level [LEVEL]
-例
(config)# log host 172.16.1.1
(config)# log host 172.16.1.1 level informational
(config)# log host 172.16.1.1
(config)# log host 172.16.1.1 level informational
**LLDP設定 [#h5790aa3]
LLDPを使用するためには、LLDPの有効化の他にポート単位での発出情報の有効化が必要となる。
-例
#conf t
(config)#lldp run
(config)#interface port1.0.1-1.0.9
(config-if)#lldp transmit
(config-if)#lldp receive
(config-if)#lldp tlv-select all
**SSH設定 [#g0987ccb]
-パスワード設定
>enable
#configure terminal
(config)#username admin privilege 15 password [PASSWORD]
(config)#username manager password [PASSWORD]
-SSH鍵の生成
(config)#crypto key generate hostkey rsa
Generating host key (1024 bits rsa)
This may take a while. Please wait ... Done
WARNING: The SSH server must now be enabled with "service ssh"
-SSH有効化
(config)#ssh server allow-users admin
(config)#service ssh ip
WARNING: SSHv1 host key does not exist. SSH will not be available for version 1.
**TELNET設定 [#yf357810]
-telnet無効化
>enable
#configure terminal
(config)#no service telnet
**設定の保存 [#lfae86e7]
-手順
>enable
#copy running-config startup-config