View previous topic :: View next topic |
Author |
Message |
frenkel Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/5863892633fc10143dfad9.gif)
Joined: 13 May 2003 Posts: 1034 Location: .nl
|
Posted: Mon May 19, 2003 5:04 pm Post subject: Linux pc can't connect to the internet via Windows pc |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ctford0 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine_2.gif)
Joined: 25 Oct 2002 Posts: 774 Location: Lexington, KY,USA
|
Posted: Mon May 19, 2003 6:04 pm Post subject: |
|
|
what happens when you set the linux pc to use dhcp?
chris |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
frenkel Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/5863892633fc10143dfad9.gif)
Joined: 13 May 2003 Posts: 1034 Location: .nl
|
Posted: Mon May 19, 2003 6:24 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ctford0 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine_2.gif)
Joined: 25 Oct 2002 Posts: 774 Location: Lexington, KY,USA
|
Posted: Mon May 19, 2003 6:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
frenkel Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/5863892633fc10143dfad9.gif)
Joined: 13 May 2003 Posts: 1034 Location: .nl
|
Posted: Mon May 19, 2003 7:13 pm Post subject: |
|
|
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 ![Sad :(](images/smiles/icon_sad.gif) _________________ http://techfield.org |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
christsong84 Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Mortal Kombat/Mortal_Kombat_-_Reiko.gif)
Joined: 06 Apr 2003 Posts: 1003 Location: GMT-8 (Spokane)
|
Posted: Mon May 19, 2003 7:17 pm Post subject: |
|
|
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 Evil :twisted:](images/smiles/icon_twisted.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
frenkel Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/5863892633fc10143dfad9.gif)
Joined: 13 May 2003 Posts: 1034 Location: .nl
|
Posted: Mon May 19, 2003 7:24 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
frenkel Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/5863892633fc10143dfad9.gif)
Joined: 13 May 2003 Posts: 1034 Location: .nl
|
Posted: Mon May 19, 2003 7:37 pm Post subject: |
|
|
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
Thanks a lot everybody who helped me, hope I can help you sometime!
Frank _________________ http://techfield.org |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|