Up ifconfig 作成: 2021-02-03
更新: 2021-02-07


    $ sudo ifconfig eth0 down
    $ ifconfig
    eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
      ether b8:27:eb:49:40:35 txqueuelen 1000 (Ethernet)
      RX packets 0 bytes 0 (0.0 B)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 0 bytes 0 (0.0 B)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    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 1000 (Local Loopback)
      RX packets 5 bytes 284 (284.0 B)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 5 bytes 284 (284.0 B)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
      inet 192.168.1.150 netmask 255.255.255.0 broadcast 192.168.1.255
      inet6 fe80::5a89:f9a8:2cbd:39cc prefixlen 64 scopeid 0x20<link>
      inet6 2400:4060:e62:a700:cd8e:3129:6af4:817e prefixlen 64 scopeid 0x0<global>
      ether b8:27:eb:1c:15:60 txqueuelen 1000 (Ethernet)
      RX packets 127 bytes 11569 (11.2 KiB)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 132 bytes 29215 (28.5 KiB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


    $ iwconfig
    lo   no wireless extensions.

    eth0  no wireless extensions.

    wlan0  IEEE 802.11 ESSID:"pr500k-5a60e2-1"
      Mode:Managed Frequency:2.412 GHz Access Point: 10:66:82:CC:51:22
      Bit Rate=72.2 Mb/s Tx-Power=31 dBm
      Retry short limit:7 RTS thr:off Fragment thr:off
      Power Management:on
      Link Quality=62/70 Signal level=-48 dBm
      Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
      Tx excessive retries:0 Invalid misc:0 Missed beacon:0



    $ sudo ifconfig eth0 up
    $ sudo ifconfig wlan0 down
    $ ifconfig $ ifconfig
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
      inet 192.168.1.150 netmask 255.255.255.0 broadcast 192.168.1.255
      inet6 fe80::866a:3abe:7c6c:c5a6 prefixlen 64 scopeid 0x20<link>
      inet6 2400:4060:e62:a700:51b8:7312:8a46:cec5 prefixlen 64 scopeid 0x0<global>
      ether b8:27:eb:49:40:35 txqueuelen 1000 (Ethernet)
      RX packets 812 bytes 126632 (123.6 KiB)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 431 bytes 118028 (115.2 KiB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    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 1000 (Local Loopback)
      RX packets 5 bytes 284 (284.0 B)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 5 bytes 284 (284.0 B)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
      ether b8:27:eb:1c:15:60 txqueuelen 1000 (Ethernet)
      RX packets 0 bytes 0 (0.0 B)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 0 bytes 0 (0.0 B)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


    $ iwconfig
    lo   no wireless extensions.

    eth0  no wireless extensions.

    wlan0  IEEE 802.11 ESSID:off/any
      Mode:Managed Access Point: Not-Associated Tx-Power=31 dBm
      Retry short limit:7 RTS thr:off Fragment thr:off
      Power Management:on


    • eth0:有線LANアダプタ
    • wlan0:無線LANアダプタ
    • lo (local loopback) : local host ネットワーク
        127.0.0.1 : local loopback address (「localhost」)