Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Linux pc can't connect to the internet via Windows pc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Mon May 19, 2003 5:04 pm    Post subject: Linux pc can't connect to the internet via Windows pc Reply with quote

Hi,

I have 2 computers, one with Windows XP and 2 networkcards and one with Gentoo Linux, with one networkcard connect to the Windows XP pc. When both pc had Windows, I could use internet via the Windows XP pc, but with Gentoo it doesn't work. :?

My settings:

Windows XP pc:
ip eth0 -> dhcp (ISP)
ip eth1 -> 192.168.0.1
netmask eth1 -> 255.255.255.0

Gentoo pc:
ip eth0 -> 192.168.0.2
netmask eth0 -> 255.255.255.0
gateway eth0 -> 192.168.0.1

P.S. The 2 pc's do see eachother (i.e. ping 192.168.0.2 on windows pc works and ping 192.168.0.1 on gentoo pc works)

Thanks in advance and sorry for my bad English,

Frenkel
_________________
http://techfield.org
Back to top
View user's profile Send private message
ctford0
l33t
l33t


Joined: 25 Oct 2002
Posts: 774
Location: Lexington, KY,USA

PostPosted: Mon May 19, 2003 6:04 pm    Post subject: Reply with quote

what happens when you set the linux pc to use dhcp?

chris
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Mon May 19, 2003 6:24 pm    Post subject: Reply with quote

Hi chris, thanks for your reply.
I already tried it and it didn't change anything, I still can't connect to the internet. :(

Frenkel
_________________
http://techfield.org
Back to top
View user's profile Send private message
ctford0
l33t
l33t


Joined: 25 Oct 2002
Posts: 774
Location: Lexington, KY,USA

PostPosted: Mon May 19, 2003 6:46 pm    Post subject: Reply with quote

humm, it sounds like your machine is not connecting to any dns server to me. try to ping this ip from your linux system, it is gentoo.org's ip.

128.193.0.36

If it works then you have some kind of dns problem.

Chris
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Mon May 19, 2003 7:13 pm    Post subject: Reply with quote

I tried it several times, but it didn't work, it looks like the Windows XP pc is blocking all access to the internet or something.
There's no firewall or something on the Windows pc and I really don't understand what's wrong :(
_________________
http://techfield.org
Back to top
View user's profile Send private message
christsong84
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1003
Location: GMT-8 (Spokane)

PostPosted: Mon May 19, 2003 7:17 pm    Post subject: Reply with quote

double check the windows configuration on ICS (Internet connection sharing).

If you want, you might want to disable it and re-enable it, then set the gentoo box to dhcp...and see if that works...otherwise I'm not sure (ms didn't give me much detail in working with ics on the client side).
_________________
while(true) {self.input(sugar);} :twisted:
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Mon May 19, 2003 7:24 pm    Post subject: Reply with quote

It works half now, I can ping ip's, but I can't ping websites (i.e. ping http://www.gentoo.org doesn't work (unknown host)).

What's that DNS about?
_________________
http://techfield.org
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Mon May 19, 2003 7:37 pm    Post subject: Reply with quote

YEAY it works!!
Thanks a lot everybody!!

I figured out I had to add some lines to resolv.conf, something like this:

nameserver 192.168.0.1
nameserver <ISP's nameserver 1>
nameserver <ISP's nameserver 2>

And after a reboot everything works fine :D

Thanks a lot everybody who helped me, hope I can help you sometime!

Frank
_________________
http://techfield.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum