How can I use 192.168.1.x instead 10.0.x.y?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
miguelongas
Posts: 2
Joined: 23. Aug 2008, 01:54

How can I use 192.168.1.x instead 10.0.x.y?

Post by miguelongas »

Hello

One simple question, how can I configure vbox so the guest system can use a 192.168.1.x ip address instead of the 10.0.x.y one, so it can interact with my other computers in the local network? am using NAT... if I setup 192.168.1.10 (for example) the guest can ping itself and access itself but it is isolated from the LAN...

On the other hand, if I use NAT and automatic IP in tue guest system it is able to go out to internet but does not see the other LAN boxes since they have different subnet... is it possible to make the VBOX to use 192.168.1.x addresses and not to interfer with the local network nor the DHCP server from the router?

Thanks!
greenpossum
Volunteer
Posts: 98
Joined: 11. Jul 2008, 08:10

Re: How can I use 192.168.1.x instead 10.0.x.y?

Post by greenpossum »

With NAT, the situation is similar to that of a computer behind a NAT firewall/router. If you want to make a service visible to the outside, you have to create a port forwarding. This is described in the User Manual. So it doesn't matter which private IP range you choose to put the guest OS in, the guest IP is not visible to the outside.

If the limitations of NAT do not suit you then you have to use bridging instead. This is also described in the User Manual.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

You can access other computers on the LAN with NAT setup, just not the other way around. If you want to do that, read the Forum FAQ first, then follow the manual for bridging.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply