1. net-tools 설치
1 2 3 |
~$ sudo apt install net-tools |
2. IP 확인 ifconfig
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
~$ ifconfig enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::a00:27ff:fe9a:a854 prefixlen 64 scopeid 0x20<link> ether 08:00:27:9a:a8:54 txqueuelen 1000 (Ethernet) RX packets 74 bytes 8702 (8.7 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 65 bytes 9341 (9.3 KB) 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 84 bytes 6324 (6.3 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 84 bytes 6324 (6.3 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |