How to add or set the IP address in Linux using the
You better start getting used to use the
ip command as some Linux distributions have started deprecating the
So, if you want to set the IP in your Linux box, run:
ip addr add 10.1.1.2/16 dev eth1 ip link set eth1 up
The first line, sets the IP, be sure to replace "10.1.1.2/16" with the IP and mask bits, you need to use.
The second line, brings the link up.