Static IP between host and guest OS.

ablakey

Bit poster
I want a surefire way to always be able to SSH to my guest OS (ubuntu 14.04) from my host (Sierra). I cannot depend on an IP ever being the same, or a hostname being resolvable, so I was thinking of setting up a second network interface between the two, and making them a static ip.

For example, I would then have:
Network 1 = Shared (IP provided by my work or home routers).
Network 2 = Static IP. Sierra could `ssh 192.168.3.2` or whatnot.

I'm not sure how to do this. I can add Network 2 and then configure it in /etc/network/interfaces. But I'm not sure how to hook up the other end of this connection.

I'm also open to other ideas that achieves the same goal: being able to reliably ssh to the guest OS from the host OS
 
Back
Top