Ubuntu 20.04にネットワークインタフェースを確認する方法

2021年3月26日

操作方法
# ifconfig -a

Command 'ifconfig’ not found, but can be installed with:

apt install net-tools

# apt install net-tools

Setting up net-tools (1.60+git20180626.aebd88e-1ubuntu1) …
Processing triggers for man-db (2.9.1-1) …

# ifconfig -a

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:ac:51:08:e9  txqueuelen 0  (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

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.229.132  netmask 255.255.255.0  broadcast 192.168.229.255
        inet6 fe80::ba32:e16b:7c8d:3904  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:50:60:60  txqueuelen 1000  (Ethernet)
        RX packets 1011  bytes 843354 (843.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 455  bytes 45091 (45.0 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

Ubuntu

Posted by arkgame