I was surprised to find out that ifconfig and route are actually deprecated, despite their ubiquity.

Even more unfortunate, their replacement, namely the ip command, doesn’t seem to have any concern for the readability of its output.

Here is how you would statically assign an IP, Netmask, Gateway, and DNS servers with ifconfig and route and the equivalent commands in ip:

$ ifconfig eth0 up

$ ip link set eth0 up

Configure your IP and Netmask:

$ ifconfig eth0 netmask

$ ip addr add dev eth0

Configure a route to your default Gateway:

$ route add default gw

$ ip route add default via