0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

サーバのネットワーク状態確認(CentOS6)

0
Posted at

本資料の目的

  • 私が業務で携わるサーバは月間数億リクエストの処理を行っています。
  • そのサーバでパケットロスが発生していないか?の確認を行うケースがありますので、そのナレッジをここに整理します。

概要

  • サーバのパケット状態の確認を行う方法を以下の通り。

詳細

  • 対象のサーバへログインし、以下のコマンドを実行する。
    • ifconfig
      * dropped:の数値を確認する
出力例
em2       Link encap:Ethernet  HWaddr 90:B1:1C:30:BF:2B
          inet addr:xxx.xxx.xxx.xxx  Bcast:192.168.199.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:35917473041 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39368376555 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19193188634415 (17.4 TiB)  TX bytes:8546421438841 (7.7 TiB)
          Interrupt:38

→「dropped:0」なので、ドロップしていないことが分かる
  • NICの詳細な状態を確認するには以下のコマンドを実行する。
    • ethtool NIC名称
      • 例えば、Speed:が想定通りの値となっているか?を確認する
出力例
Settings for em2:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Supported pause frame use: No
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Advertised pause frame use: No
	Advertised auto-negotiation: Yes
	Speed: 1000Mb/s
	Duplex: Full
	Port: Twisted Pair
	PHYAD: 1
	Transceiver: internal
	Auto-negotiation: on
	MDI-X: off
	Supports Wake-on: g
	Wake-on: d
	Link detected: yes
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?