ciscoうるせぇ、その1
うるせぇ出力
%Error opening tftp://255.255.255.255/network-confg (Socket error)
%Error opening tftp://255.255.255.255/cisconet.cfg (Socket error)
%Error opening tftp://255.255.255.255/switch-confg (Socket error)
%Error opening tftp://255.255.255.255/ciscortr.cfg (Socket error)
*Nov 27 14:14:01.505: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
*Nov 27 14:14:01.506: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
*Nov 27 14:14:01.507: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/switch-confg) failed
*Nov 27 14:14:01.508: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/ciscortr.cfg) failed
Ciscoスイッチが起動時にTFTPサーバーから設定ファイルを取得しようとし、失敗している
ブロードキャストして、有効なTFTPサーバーを探している
(4分に一回探している)
解決手順
1.TFTP設定の自動取得を無効化する
Switch# configure terminal
Switch(config)# no service config
Switch(config)# exit
2.何か設定を入れる
Switch# configure terminal
Switch(config)# interface vlan 1
Switch(config-if)# ip address 192.168.1.2 255.255.255.0
Switch(config-if)# no shutdown
Switch(config)# exit
適当に設定を入れると、止む
%Error opening tftp://255.255.255.255/network-confg (Socket error)
%Error opening tftp://255.255.255.255/cisconet.cfg (Socket error)
%Error opening tftp://255.255.255.255/switch-confg (Socket error)
%Error opening tftp://255.255.255.255/ciscortr.cfg (Socket error)
*Nov 27 14:22:31.507: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
*Nov 27 14:22:31.508: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
*Nov 27 14:22:31.509: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/switch-confg) failed
*Nov 27 14:22:31.510: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/ciscortr.cfg) failed
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface
Switch(config)#interface vl
Switch(config)#interface vlan ?
<1-4094> Vlan interface number
Switch(config)#interface vlan 1
Switch(config-if)#ip address 192.168.1.2 255.255.255.0
Switch(config-if)#no shu
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#
*Nov 27 14:26:57.073: %SYS-5-CONFIG_I: Configured from console by console
Switch#show run
Building configuration...
Current configuration : 1545 bytes
!
! Last configuration change at 14:26:57 UTC Wed Nov 27 2024
!
version 15.2
〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
略
〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
!
interface Vlan1
ip address 192.168.1.2 255.255.255.0
!
ip http server
ip http secure-server
!
!
!
!
line con 0
line vty 5 15
!
end
Switch#
Switch#en
Switch#show clock
*14:28:02.977 UTC Wed Nov 27 2024
Switch#
3.TFTP設定を提供
TFTPサーバーを作ってnetwork-confgを用意してあげる
VLANインターフェースにIPアドレスを設定し、TFTPサーバーに接続可能にする
Switch# copy tftp: running-config
Address or name of remote host []? <TFTPサーバーのIPアドレス>
Source filename []? network-confg
Destination filename [running-config]? running-config
show run
ping <TFTPサーバ>
show ip int brief
まとめ
Switch(config)# no service config
を打てば解決
← Go home