0
0

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 1 year has passed since last update.

サーバーとの通信を確認するコマンド備忘録

Last updated at Posted at 2022-12-23

SQL/Webサーバーを立てたり、特定のサーバーにSSHでログインする際に、ネットワーク周りの確認は必須である。それらネットワーク設定の確認コマンドを一覧化した。

特定のIPと通信ができているか確認

ping 192.168.***.***

特定のIPのサーバーの特定のポートが開いているか確認

Test-NetConnection -ComputerName 192.168.***.*** -Port 80

現在アクティブになっているTCPの通信状態を調べる

netstat
netstat -n //名前解決前のIPアドレスで表示
netstat -f //ドメインネームをフルで表示
netstat -p //プロセスIDを表示

ARPテーブルの確認

MACアドレスとIPアドレスの対応表が表示される

arp -a

ルーティングテーブルの確認

宛先ネットワーク(IP/サブネット)とインターフェースアドレスが載っている。

route print
route

DNSサーバーで名前解決できているか確認

nslookup www.sagawa-exp.co.jp

IP/マスクなどネットワーク設定の確認

ipconfig
ipconfig /all
ifconfig
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?