Set up Ubuntu in Virtualbox to have static ip

Posted by Don H on Server Fault See other posts from Server Fault or by Don H
Published on 2012-11-10T14:46:00Z Indexed on 2012/11/10 23:01 UTC
Read the original article Hit count: 170

Filed under:
|

I frequently work in different locations, and need to have a virtualbox version of Ubuntu server running locally.

While I was at home getting it set up, I was able to ssh into the server using the locally allocated IP address. However, now that I'm elsewhere, ifconfig is still showing the old 10.0.x.x ip address, but instead of being in the 10.0.x.x space, my laptop's ip starts with 192.168.x.x

With that in mind, if there a straightforward way to set up the virtual box Ubuntu server in such a way that I can just connect using "ssh servername" regardless of it's ip address?

© Server Fault or respective owner

Related posts about ubuntu

Related posts about virtualbox