Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
9 years, 3 months ago
This question is
. It is not currently accepting answers.
Questions must demonstrate a
minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance.
I am wondering if you have the option to change the static IP on a Ubuntu VM or if you should just spin a new virtual machine up? Has anyone out there every attempted this?
Mar 3, 2014 at 21:40
Find the config for eth0 (it will look something like below) and change to your preference
iface eth0 inet static
Documentation on interfaces file can be found here :
After you have changed the above you will need to restart networking
sudo /etc/init.d/networking restart
or reboot the computer.
Mar 3, 2014 at 21:53
617 1 1 gold badge 6 6 silver badges 14 14 bronze badges
Has anyone out there every attempted this?
Just change the IP if that's what you want to do. Or don't do that and just spin a new VM if you'd prefer.
Mar 3, 2014 at 21:43
109k 18 18 gold badges 174 174 silver badges 244 244 bronze badges
(Since I must not add a comment due to my rep points, I have to add an answer...)
Beyond Sam's answer above, also note that some services on that machine may need to be re-configured. Especially bad when you are running an Oracle db on that machine: the IP address of the machine at the time of installation is buried somewhere in its configuration files, and must be changed manually. Some other programs may show similarly odd behavior.
Mar 4, 2014 at 8:41
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only