개요
- hostname -I
- hostname --all-ip-addresses
- host에 대한 모든 IP 주소 출력
[root@centos7 ~]# hostname -I
192.168.0.39 127.0.0.1
[root@centos7 ~]# hostname -I
172.28.128.11 172.17.0.1
root@debian9:~$ hostname -I
172.18.0.1 172.17.0.2
[root@centos7 ~]# hostname -I
192.168.0.39 127.0.0.1
[root@centos7 ~]# hostname -I
172.28.128.11 172.17.0.1
root@debian9:~$ hostname -I
172.18.0.1 172.17.0.2