Warning |
---|
This article was written a long time ago. It should be improved to match the tone of the rest of the website. Update this article with recent work done on secondary IP. |
Traditionally most enterprise environments used static IP. This is changing somewhat due to virtualization and the concept of stateless applications. But it's not quite there yet.
Note |
---|
For your home server environment you might want to use Bonjour name resolution instead and just go by hostname. |
Assuming your existing install is picking up DHCP correctly and your network is working fine. If you are learning using virtual machine softare like VMWare, ensure your guest OS network is set to use Bridged Networking. This will not work with sharing the network.
If possible, it is advised to be sure you can reach your machine via a console mechanism or experiment on a test machine first.
...
Code Block | ||
---|---|---|
| ||
sudo cp /etc/network/interfaces /etc/network/interfaces.v0.0 # Make a backup sudo ne /etc/network/interfaces # Where ne is your preferred text editor |
The file may will look like this,
Panel |
---|
# This file describes the network interfaces available on your system # The loopback network interface # The primary network interface |
The area where you file might be different is eth0 may be ens3 or something similar. This changes depending on your version of Ubuntu and setup.
We modify the file to look like this where I chose and choose 192.168.0.50. Note that this ip address would never be assigned by my router as I modified itthe router's dhcp address range from 192.168.0.2 - 192.168.0.255 to only be provide DHCP between 192.168.0.100 to - 192.168.0.255. My router itself is using the ip address 192.168.0.1.
...