What's the Terminal command to get the VM's private IP?

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
jazgold
Posts: 2
Joined: 18. Jan 2010, 11:26
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Windows XP

What's the Terminal command to get the VM's private IP?

Post by jazgold »

I want to find the private IP that my VM is assigned when I set its network settings to NAT.

How can I find what this private IP is? Do I use ifconfig through Terminal?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: What's the Terminal command to get the VM's private IP?

Post by Perryg »

If it is Linux based the ifconfig -a
will show it. Windows needs ipconfig /all
(In the guests terminal/command window)
But if you are using NAT the ip address will be 10.0.2.0
jazgold
Posts: 2
Joined: 18. Jan 2010, 11:26
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Windows XP

Re: What's the Terminal command to get the VM's private IP?

Post by jazgold »

thanks perryg:)
Post Reply