提供:すだちWiki
移動先: 案内検索

自機のIPアドレスを調べる (Linux)

関連資料

実行例

[root@host3 ~]# /sbin/ifconfig
enp30s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.3  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::9e8e:99ff:fe01:5738  prefixlen 64  scopeid 0x20<link>
        inet6 2001:a453:61e1:9000:9e8e:99ff:fe01:5738  prefixlen 64  scopeid 0x0<global>
        ether 9c:8e:99:01:57:38  txqueuelen 1000  (Ethernet)
        RX packets 7789692  bytes 9987177362 (9.3 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4395678  bytes 1862425939 (1.7 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 19  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 172362  bytes 61975746 (59.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 172362  bytes 61975746 (59.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0