質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Cisco IOS

Cisco IOSは、シスコシステムズ社が提供しているOSです。同社のほとんどのルーターやスイッチに使用されており、特徴のあるコマンドラインインターフェースをもちます。実行操作に制限があるユーザーモードと特権モードのセキュリティレベルがあります。

Cisco

シスコ(Cisco Systems,Inc.)は、アメリカ合衆国に本社を置く、世界最大のコンピュータネットワーク機器開発会社及び同社の製品

Q&A

解決済

1回答

19361閲覧

IOSのバックアップ(ファイル転送)がエラーになる

narururu

総合スコア172

Cisco IOS

Cisco IOSは、シスコシステムズ社が提供しているOSです。同社のほとんどのルーターやスイッチに使用されており、特徴のあるコマンドラインインターフェースをもちます。実行操作に制限があるユーザーモードと特権モードのセキュリティレベルがあります。

Cisco

シスコ(Cisco Systems,Inc.)は、アメリカ合衆国に本社を置く、世界最大のコンピュータネットワーク機器開発会社及び同社の製品

0グッド

0クリップ

投稿2018/02/01 06:10

編集2018/02/01 06:17

###実現したいこと
Catalyst3750からPCへIOSを転送したい。

###現状
以前「cisco IOSを吸い出したい」で質問させていただき、原因はPCのNICへのIPアドレスの設定が間違っていたからでした。
今回はpingが双方通っているにも関わらずファイル転送できません。

LANケーブルをPCとスイッチfa1/0/1に接続。
LED緑色に点灯。
telnetログイン可。

###環境
ネットワーク機器:Catalyst3750
PC:Windows10
FTPソフト:Tftpd64
ファイアウォールの設定解除

Catalyst3750
show run

ruru#show run Building configuration... Current configuration : 1669 bytes ! version 12.2 no service pad service timestamps debug uptime service timestamps log uptime service password-encryption ! hostname ruru ! enable password 7 111D180E161C041E0D ! no aaa new-model switch 1 provision ws-c3750-24ts system mtu routing 1500 ip subnet-zero ip routing ! ! ! ! no file verify auto spanning-tree mode pvst spanning-tree extend system-id ! vlan internal allocation policy ascending ! ! interface FastEthernet1/0/1 no switchport ip address 192.168.1.1 255.255.255.0 ip access-group 1 in ! interface FastEthernet1/0/2 switchport access vlan 10 switchport mode access ! interface FastEthernet1/0/3 ! interface FastEthernet1/0/4 ! interface FastEthernet1/0/5 ! interface FastEthernet1/0/6 ! interface FastEthernet1/0/7 ! interface FastEthernet1/0/8 ! interface FastEthernet1/0/9 ! interface FastEthernet1/0/10 ! interface FastEthernet1/0/11 ! interface FastEthernet1/0/12 ! interface FastEthernet1/0/13 ! interface FastEthernet1/0/14 ! interface FastEthernet1/0/15 ! interface FastEthernet1/0/16 ! interface FastEthernet1/0/17 ! interface FastEthernet1/0/18 ! interface FastEthernet1/0/19 ! interface FastEthernet1/0/20 ! interface FastEthernet1/0/21 ! interface FastEthernet1/0/22 ! interface FastEthernet1/0/23 ! interface FastEthernet1/0/24 ! interface GigabitEthernet1/0/1 ! interface GigabitEthernet1/0/2 ! interface Vlan1 no ip address shutdown ! interface Vlan10 ip address 192.168.10.1 255.255.255.0 ! ip classless ip http server ! ! access-list 1 permit any log ! control-plane ! ! line con 0 password 7 071B20474F0716171E line vty 0 4 password 7 071B20474F0716171E login line vty 5 15 password 7 071B20474F0716171E login ! end

show arp

ruru#show arp Protocol Address Age (min) Hardware Addr Type Interface Internet 192.168.1.10 1 54e1.ad58.cf96 ARPA FastEthernet1/0/1 Internet 192.168.10.1 - 001e.133f.68c2 ARPA Vlan10 Internet 192.168.1.1 - 001e.133f.68c1 ARPA FastEthernet1/0/1

show log

00:44:11: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.1.10) 00:54:35: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.1.10) 01:34:33: %SEC-6-IPACCESSLOGS: list 1 permitted 192.168.1.10 1 packet 01:34:36: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.1.10) 01:34:58: %SEC-6-IPACCESSLOGS: list 1 permitted 0.0.0.0 1 packet

PC
ipconfig

イーサネット アダプター イーサネット: 接続固有の DNS サフィックス . . . . .: リンクローカル IPv6 アドレス. . . . .: fe80::8522:d323:6a84:c4fe%4 IPv4 アドレス . . . . . . . . . . . .: 192.168.1.10 サブネット マスク . . . . . . . . . .: 255.255.255.0 デフォルト ゲートウェイ . . . . . . .:

###結果
copy tftp flash

ruru#copy tftp flash Address or name of remote host []? 192.168.1.10 Source filename []? c3750-ipservices-mz.122-35.SE5.bin Destination filename [c3750-ipservices-mz.122-35.SE5.bin]? test Accessing tftp://192.168.1.10/c3750-ipservices-mz.122-35.SE5.bin... %Error opening tftp://192.168.1.10/c3750-ipservices-mz.122-35.SE5.bin (No such file or directory)

###疑問点
copy <コピー元> <コピー先>
スイッチの中のflashから取り出して、PCへファイルを転送
上記の構文、構図で考えると、copy flash tftp になると思うのですが、なぜcopy tftp flashなのでしょうか。
理屈として理解できません。copy tftp flashであれば、PCからスイッチへのファイル転送だと思うのですが。

IOSの転送できるようになったと思ったのに(>_<)
再度同じ環境でやってるにも関わらずできないなんて、自分にはコンピューターを扱うセンスがないのかな。。
難しいです。
原因が分からず問題解決できません。
どなたか、アドバイスください。

以上、よろしくお願いいたします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

私もcopy flash tftpの方が正しいと思いますよ。

投稿2018/02/01 13:26

HogeAnimalLover

総合スコア4830

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

narururu

2018/02/02 05:41

ご回答ありがとうございます。Hogeさん☺ copy flash tftpで試しtのですが、 %Error opening tftp://192.168.1.10/c3750-ipservices-mz.122-35.SE5.bin (No such file or directory) とエラーになってしまうんです。 うーん困りました。
taichi_0807

2018/02/03 06:32

まず、cop run tftp が成功しますか? 成功するなら、tftpサーバが正常動作していることになるので、 ファイル名の指定の仕方とかの問題だと思います。 testなど、"."が入らないファイル名だとうまくいかないですかね?
narururu

2018/02/03 07:35

ご回答ありがとうございます。taichiさん☺ copy run tftpは成功しました。 しかし、IOSの場合ですと、以下の通りエラーになってしまうんです。 ファイル名もtest2でやってます。 ruru#copy flash tftp Source filename []? c3750-ipservices-mz.122-35.SE5.bin Address or name of remote host []? 192.168.1.10 Destination filename [c3750-ipservices-mz.122-35.SE5.bin]? test2 %Error opening flash:c3750-ipservices-mz.122-35.SE5.bin (No such file or directory) 「No such file or directory」←なぜこのエラーになるのか不思議です。ファイル名もディレクトリも間違っていないです。
narururu

2018/02/03 07:54 編集

原因が判明しました! ズバリcd c3750-ipservices-mz.122-35.SE5をしていなかったからです。 どのように表現すればいいのか分かりませんが、自分がいる場所がc3750-ipservices-mz.122-35.SE5のディレクトリではなかったためです。 【ダメだったパターン】 ruru#show flash Directory of flash:/ 2 -rwx 616 Mar 1 1993 00:18:19 +00:00 vlan.dat 3 -rwx 5 Mar 1 1993 00:45:27 +00:00 private-config.text 5 drwx 192 Mar 1 1993 00:06:56 +00:00 c3750-ipservices-mz.122-35.SE5 509 -rwx 1611 Mar 1 1993 00:45:27 +00:00 config.text ruru#dir c3750-ipservices-mz.122-35.SE5 Directory of flash:/c3750-ipservices-mz.122-35.SE5/ 6 -rwx 8054867 Mar 1 1993 00:05:53 +00:00 c3750-ipservices-mz.122-35.SE5.bin 7 drwx 4224 Mar 1 1993 00:06:16 +00:00 html 508 -rwx 616 Mar 1 1993 00:06:56 +00:00 info 【成功パターン】 ruru#show flash Directory of flash:/ 2 -rwx 616 Mar 1 1993 00:18:19 +00:00 vlan.dat 3 -rwx 5 Mar 1 1993 00:45:27 +00:00 private-config.text 5 drwx 192 Mar 1 1993 00:06:56 +00:00 c3750-ipservices-mz.122-35.SE5 509 -rwx 1611 Mar 1 1993 00:45:27 +00:00 config.text 15998976 bytes total (5487616 bytes free) ruru#cd c3750-ipservices-mz.122-35.SE5 ruru#dir Directory of flash:/c3750-ipservices-mz.122-35.SE5/ 6 -rwx 8054867 Mar 1 1993 00:05:53 +00:00 c3750-ipservices-mz.122-35.SE5.bin 7 drwx 4224 Mar 1 1993 00:06:16 +00:00 html 508 -rwx 616 Mar 1 1993 00:06:56 +00:00 info 15998976 bytes total (5487616 bytes free) お二人とも、いろいろアドバイスしてくださり本当にありがとうございました! おかげさまで原因が分かりました! よかたです☺
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問