I just install ubuntu 12.04 server .. after my first login I saw the ip and it is dynamic I guess. I tried to change it by sudo vi /etc/network/interface but this file is blank .
can anyone help here.
After i installed Ubuntu Server 11.10 x64, i udated the sistem, rebooted, then:
To change my ip to static - i writed: sudo nano /etc/network/interfaces
where i changed line iface eth0 inet dhcp to ..iface eth0 inet static, then
added this lines: address 192.168.1.222
than saved and with this command: sudo /etc/init.d/
# The primary network interface
iface eth0 inet static
And I have issued
sudo service network restart
I tried with
sudo /etc/init.d/networking restart