ip is a *nix command for viewing networking information of the host. It’s a better version of ifconfig that is present on modern Linux systems.

Common oneliners:

# List network interfaces and associated IP addresses
ip a # / addr / address
 
# Show routing table
ip r # / route

See Interpreting ip link and address command output to understand the output of ip addr.