Skip to Content
Linux クックブック、第 2 版
book

Linux クックブック、第 2 版

by Carla Schroder
May 2025
Intermediate to advanced
544 pages
7h 23m
Japanese
O'Reilly Media, Inc.
Content preview from Linux クックブック、第 2 版

第21章 ネットワークのトラブルシューティング ネットワークのトラブルシューティング

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

ネットワークの問題を解決するのは、トラブルシューティングと同じだ。ネットワークを知り、基本的なツールの使い方を熟知し、忍耐強く計画的に行動することだ。

この章では、ping、FPing、Nmap、httpingarping、およびmtrを使用して、接続性のテスト、ネットワークのマッピング、不正サービスの発見、Webサイトのパフォーマンステスト、重複IPアドレスの発見、およびルーティングのボトルネックの発見を行う方法を学ぶ。

診断用ハードウェア

もしあなたが、ラベルのない不思議なイーサネットや電話ケーブルに行き詰まったら、イーサネット/電話ケーブル・テスト・アンド・トーン・トラッカーを手に入れよう。100ドル以下のものもたくさんある。これらは、エミッターとレシーバーの2つで構成されている。ケーブルの両端に1台ずつ、2人で使用する。ケーブルの両端を発見したら、ラベルを貼って次に進む。一人でもできるが、二人の方が早い。

マルチメーターは、、ショートやオープンの発見、導通や減衰のテスト、ワイヤーが正しく終端されているかどうかの判断、コンセントのテスト、コンピューターの電源やマザーボードのテストなど、多くの仕事に役立つ。 Adafruitは、マルチメーターの使用や電子工学の学習に関する優れたチュートリアルを見つけるのに最適なサイトだ。

できれば予備部品をいくつか持っておくこと。欠陥のあるハードウェアを発見するためには、ネットワーク・インタフェースやケーブル、スイッチを交換した方が早い場合がある。

21.1 pingで接続性をテストする

問題

ネットワーク上のいくつかのサービスやホストがアクセスできないか、断続的に障害が発生する。それがハードウェアの問題なのか、名前付けサービスの問題なのか、ルーティングの問題なのか、それとも他の問題なのかを突き止めたい。

解決策

ネットワークの問題をデバッグするときは、近いところから始めて、体系的に近いところから遠いところへと作業を進める。これは物理的な距離と、ルーターの数を意味する。まずローカルLANセグメントから始める。次に次のLANセグメント(複数ある場合)に進み、ルーターを1つ越える。次に2つ先のルーターへ、といった具合だ。

接続性をテストするために、古き良きpingから始める。まず、localhostにpingを打つ:

$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.065 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.035 ms

Ctrl-Cを押してpingを停止する。まずlocalhostにpingを打ち、ネットワーク・インタフェースが立ち上がって演算子になっていることを確認する。もし "connect:ネットワークは到達不能です」と表示されたら、ネットワーク・インターフェースに問題がある。 インターフェースに欠陥があるかどうかすぐに分かるように、予備のUSBネットワーク・インターフェースをいくつか手元に置いておくこと。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Jake VanderPlas, 菊池 彰
Bash クックブック第2版

Bash クックブック第2版

Carl Albing, JP Vossen
行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

Stephen Wendel, 武山 政直, 相島 雅樹, 反中 望, 松村 草也

Publisher Resources

ISBN: 9798341650091