ネットワーク関連
目次

設定

ホスト名設定

  • 手順
    >enable
    (config)#configure terminal
    (config)#hostname [HOSTNAME]

アドレスの設定

管理アドレスの設定

  • 手順
    >enable
    #configure terminal
    (config)#interface vlan1
    (config-if)#ip address [IP]/[MASK]

デフォルトゲートウェイの設定

  • 手順
    >enable
    #configure terminal
    (config)#ip route 0.0.0.0/0 [GATEWAY]

時刻設定

現在時刻の変更

  • 手順
    >enable
    #configure terminal
    (config)#clock set HH:MM:SS dd mmm yyyy

タイムゾーン設定

  • 手順(日本時間)
    >enable
    #configure terminal
    (config)#clock timezone JST plus 9

NTP設定

  • 手順
    >enable
    #configure terminal
    (config)#ntp server [NTP SERVER]

syslog設定

syslogサーバへのログ転送設定。

  • 書式
    (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 

LLDP設定

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設定

  • パスワード設定
    >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設定

  • telnet無効化
    >enable
    #configure terminal
    (config)#no service telnet 

設定の保存

  • 手順
    >enable
    #copy running-config startup-config

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS