eth:インターフェース情報の取得中にエラーが発生しました。デバイスが見つかりません。

eth:インターフェース情報の取得中にエラーが発生しました。デバイスが見つかりません。

Ubuntu 18.04 Linuxサーバーがあります。

command( ifconfig eth) ではデバイスが見つからないと言いますが、なぜ command( ifconfig eth0) は動作するのですか?

$ ifconfig eth

eth: error fetching interface information: Device not found


$ ifconfig eth0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9001
        inet 96.114.208.69  netmask 255.255.255.128  broadcast 
        96.114.208.127
        inet6 fe80::8a9:12ff:fe5b:c324  prefixlen 64  scopeid 0x20<link>
        ether 0a:a9:12:5b:c3:24  txqueuelen 1000  (Ethernet)
        RX packets 5126229  bytes 7622036755 (7.6 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1823543  bytes 124228703 (124.2 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

注:他の14.04 Linuxサーバーでも同じことを試しました。どちらのコマンドも有効です。

ベストアンサー1

デバイスはありませんが、使用すると利用可能なすべてのデバイスを表示できるためethですeth0
ifconfig -aip addr

おすすめ記事