Knowledge Base
Commands to Get Private IP Address
ifconfig -a
/sbin/ip addr
or/sbin/ip a
hostname -I | awk '{print $1}'
/sbin/ip route get 1.2.3.4 | awk '{print $7}'
nmcli -p device show
NULL
ifconfig -a
/sbin/ip addr
or /sbin/ip a
hostname -I | awk '{print $1}'
/sbin/ip route get 1.2.3.4 | awk '{print $7}'
nmcli -p device show
NULL