Activate Network Interface
sudo ifconfig eth0 up
Assign IP Address to an Interface
sudo ifconfig eth0 192.168.1.2
Assign a Netmask to an Interface
sudo ifconfig eth0 netmask 255.255.255.0
sudo ifconfig eth0 up
sudo ifconfig eth0 192.168.1.2
sudo ifconfig eth0 netmask 255.255.255.0