<mohammadrony>

ip

List IP address details

ip a
ip addr show eth0

List only IP addresses

hostname -I
ip addr | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'

Internet facing ip address (public)

curl ifconfig.me

Routing table

ip r
ip route