I just installed 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?
You typed: sudo vi /etc/network/interface
You should have typed: sudo vi /etc/network/interfaces
<<<< you forgot the S >>>>
Adapted from: Create a Static IP from the Command Line
Basically, steps needed are:
Find out you current settings:
Edit /etc/network/interfaces to meet your requirements.
Look for these two line:
Change them to instead be: (example IP addresses)
Then re-start your server.
It should now be using: 192.168.0.130
Ubuntu uses "Network Manager" to manage the network configuration.
run nm-connection-editor to set static-ip.