====== ネットワークコマンド ====== よく使う便利なネットワークコマンドの一覧 ※ただし「ifconfig」などのコマンドは古いともされており、Ubuntuにおいては18.04以降、デフォルトではインストールされていない。「ifconfig」コマンドを使用するには「net-tools」パッケージをインストールする必要がある。 ==== net-toolsのインストール ==== $ sudo apt install net-tools \\ ==== ネットワークインターフェースの確認(IPアドレスなど) ==== |< 100% 50% 50% >| ^ Windows ^ Linux ^ |ipconfig |ifconfig | | |ip addr show / ip a(省略形) | \\ ==== ネットワーク接続確認 ==== |< 100% 50% 50% >| ^ Windows ^ Linux ^ |ping |ping | \\ ==== ネットワーク経路の表示 ==== |< 100% 50% 50% >| ^ Windows ^ Linux ^ |tracert |traceroute | \\ ==== ホスト名の表示 ==== |< 100% 50% 50% >| ^ Windows ^ Linux ^ |hostname |hostname | \\ ==== ARPテーブル(IPアドレスとMACアドレスの関連付け情報)の表示 ==== |< 100% 50% 50% >| ^ Windows ^ Linux ^ |arp |arp | \\ ==== ドメイン名からIPアドレスを問合せ(または逆) ==== |< 100% 50% 50% >| ^ Windows ^ Linux ^ |nslookup |nslookup | \\