I have a pc running Ubuntu server 14.04.1. The internet was set up using DHCP I believe. I want to keep the same IP and subnet I have now but just change it to static for the internal IP.
I have a pc running Ubuntu server 14.04.1. The internet was set up using DHCP I believe. I want to keep the same IP and subnet I have now but just change it to static for the internal IP.
You want to go by the classical interfaces file configuration, /etc/network/interfaces.
Edit the file:
Its content is invariably the following lines:
And then the ethernet device, eth0 in this case, with the following lines:
Ip by dhcp:
To switch to static IP, knowing the parameters in use by ifconfig, you must place similar lines to these:
Of course you should change the values for your network.