Use shell command
If the Ubuntu Server installer has set your server to use DHCP, you will want to change it to a static IP address so that people can actually use it.
Changing this setting without a GUI will require some text editing, but that ?s classic linux, right?
Open up the /etc/network/interfaces file
|
|
For the primary interface, which is usually eth0, you will see these lines:
|
|
As you can see, it ?s using DHCP right now. We are going to change dhcp to static, and then there are a number of options that should be added below it. Obviously you ?d customize this to your network.
|
|
Now we will just need to restart the networking components:
|
|