Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running a Linux VM under Mac OS. It'd like to establish a connection between the physical machine and the VM. To do that, I need my Mac's IP address so I can ping it. Which interface's address should I configure?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

What type of virtualization are your running? You probably just need to configure the networking in whichever virtualization product you're using. I'd assume that if you are already using your Mac, that there is already an IP address configured on it.

share|improve this answer
    
I'm running VirtualBox. And the only thing I found that looked like a local address (IPv4) was assigned to the Ethernet interface. –  Czarn Mar 31 '11 at 19:33
    
Is that on your Mac? The local Ethernet interface probably your primary interface. You should already have an address assigned to your Mac, and then you can use ifconfig on your linux box to configure an IP address on it. Then you should be able to ping back and forth. –  Robert Mar 31 '11 at 20:04
add comment

Typically a VM can be setup with a bridged network connection,appearing on the same network as your host, or NAT, where it lives on it's own internal network.

If you need to connect to your host's IP address, bridging is the easiest method. It may also be possible to use the virtual gateway address through NAT

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.