Ip address problem

Nils Kassube kassube at gmx.net
Fri Sep 4 07:03:46 UTC 2009


jiten jha wrote:
>                     I am facing some unusual problem . I have compaq
> laptop installed there  windows xp. In a virtual pc i installed
> ubuntu 8.04 lts and red hat server 5.0 . When i connect to internet
> in my laptop then internet is working it take 192.168.1.4 ip address
> . When i open ubuntu  restart network service then it is take
> 10.0.2.5 ip address and same problem is red hat server when i restart
> network service then it take 10.0.2.4 ip address . Internet is
> working and sites are open . But why it is taking two diffrent series
> ip address .

You mean 192.168.1.* for the laptop and 10.0.2.* for the virtual 
machines? Well, the IP address of the virtual machines is set by 
VirtualBox. Obviously you are using NAT setup where Virtualbox always 
uses 10.* addresses. If you want the same network as the laptop you need 
the network bridge mode for the interface. Before you start the VM, 
change the network setup for the VM from NAT to network bridge. However 
when you select the host interface where the bridge should connect, it 
can probably not be the wireless interface because only few wireless 
chips allow bridging.


Nils







More information about the ubuntu-users mailing list