Page 1 of 1

networking on xp host and debian guest

Posted: 5. Nov 2008, 16:22
by BabySnakeSwe
Hi!

I want to be able to surf from my host (xp) to the guest (debian).

I saw this article:
http://opensourceexperiments.wordpress. ... ista-host/

Tried to make it that way, but it didn't quite work. I'm not sure what ip-adress etc to use in the guest. The windows host gets ip adress via dhcp. From my host i get this from ipconfig:

Connection-specific DNS Suffix . : bredbandsbolaget.se
IP Address. . . . . . . . . . . . : internet IP
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . : ISP

Is this something i need to use in the guest? When i used the default settings in the guest, i.e to get ip via dhcp, there was a clash with the host ip.
If anyone has some pointers, that would be great!

thanks!

Posted: 5. Nov 2008, 21:00
by Sasquatch
To access your Guest from the Host, you need a Host Interface. It's described in the manual. You don't need a bridge, because you aren't using a router for internet, so you probably won't get an IP ready for internet in the Guest. Set the proper IP addresses on the interfaces on the Host and Guest and that should do it. You need to check your firewall too to make sure that nothing is blocked. There is enough information for this on the forum, it's been asked several times.

I removed your IP address, as it's not a good idea to post your internet IP.

Posted: 11. Nov 2008, 12:39
by BabySnakeSwe
ok thanks for some info :)

So now my host has a "host interface". Do i need to go in to the network settings for the guest and set something manually?

Based on the adress info i posted earlier.. should the guest have a similar network setting, or another network?

Posted: 11. Nov 2008, 22:15
by Sasquatch
The IP configuration for the Guest <> Host communication has to be in the private range. See Wikipedia for the ranges you can use. Don't set the same ending number on both sides of course.

Posted: 12. Nov 2008, 11:02
by BabySnakeSwe
Sory, but just to clarify...
Should I change my win host lan settings (Network connections) to something in the private range? I changed mine to ip: 10.0.0.1, mask:255.255.255.0

Under network connections (still in win host) there is now a host interface. I made this to ip: 10.0.0.2, mask: 255.255.255.0

I then started the linux guest, but i can't reach it using 10.0.0.2. I tried changing its network setttings to ip: 10.0.0.2, mask: 255.255.255.0, but then there was a ip conflict with the win host. What settings do i need to do in the guest?

Posted: 12. Nov 2008, 23:04
by Sasquatch
Your physical LAN need to stay what it was, so you have your internet back. On the Host Interface, you set 10.0.0.1, then on the Guest you set 10.0.0.2. That's the kind of setup you need. You are free to use other addresses, as long as they are in the private range specified in the wiki article.

Posted: 13. Nov 2008, 11:56
by BabySnakeSwe
thanks for your support :D

Setting IP Addresses for Guest and Host?

Posted: 25. Nov 2008, 01:34
by drosenstark
Hi Sasquatch, you say

The IP configuration for the Guest <> Host communication has to be in the private range. See Wikipedia for the ranges you can use. Don't set the same ending number on both sides of course.

I get an address for the host (169.254.x.x) but how do I give an address to the Linux guest? Do I need to arbitrarily make up an adapter?

If so, how can I do that in Ubuntu?

THANKS

Posted: 26. Nov 2008, 12:07
by Sasquatch
Please see the documentation of your system. There are also plenty of examples here.

Thanks But No Thanks

Posted: 26. Nov 2008, 16:12
by drosenstark
Thanks, but "use the Internet to look for help" doesn't really help much!

Check out my post -- http://compileyouidontevenknowyou.blogs ... thing.html -- where I explain (briefly) how to solve my problem.