ip address show
$ ip address show | grep 'inet'
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic noprefixroute eth0
inet6 fe80::a00:27ff:fefc:e996/64 scope link
inet 192.168.56.30/24 brd 192.168.56.255 scope global noprefixroute eth1
inet6 fe80::a00:27ff:fea6:9caf/64 scope link
inet6 fe80::ecee:eeff:feee:eeee/64 scope link
inet 20.108.82.192/32 scope global vxlan.calico
inet6 fe80::64d5:cfff:fed3:6b7e/64 scope link
inet6 fe80::ecee:eeff:feee:eeee/64 scope link
inet6 fe80::ecee:eeff:feee:eeee/64 scope link
inet6 fe80::ecee:eeff:feee:eeee/64 scope link
inet6 fe80::ecee:eeff:feee:eeee/64 scope link
ifconfig
네트워크 인터페이스 정보를 보여줌
$ ifconfig
hostname
현재 호스트의 IP주소 출력
$ hostname -I
10.0.2.15 192.168.56.30 20.108.82.192
netstat
네트워크 연결 및 라우팅 테이블을 출력하여 IP 주소 확인
$ netstat -rn
ss
소켓 통계
$ ss -tuln | grep -v "[AZ]" |awk '{print $5}' | head -n 5
127.0.0.1:323
0.0.0.0:4789
[::]:111
[::1]:323
127.0.0.1:10248
127.0.0.1:10249