Ip address problem

Fred Roller froller at tnclimited.com
Fri Sep 4 11:57:39 UTC 2009


Nils Kassube wrote:
> 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
>
>
>
>
>   
I just set my network interface attachment from NAT to Host Interface.  
 From there you just choose which eth* you want, and I use my wireless, 
eth1.  Set up two cards and I attach simultaneously :P which is handy in 
my office.

Fred





More information about the ubuntu-users mailing list