lsip A very simple bash script to list internal and external IP addresses of device. chmod +x and mv the script into /usr/bin for ease of use. dnsutils is also required for this, but its usually preinstalled anyway.