PDA

View Full Version : Fedora Core 3 accessing shared Internet connection on an XP machine


spiff72
2005-04-04, 08:21 AM CDT
I have been browsing through the postings here, and can't get a definite answer on the following:

A WinXP Internet Connection Sharing/Linux (Fedora Core 3) question for the masses:

I have a wireless network at home, with a Linksys G router in my family room (near the TV). I have 2 (soon to be 4) laptops in my household that are used in that same room with wireless access. I also have a Windows XP desktop machine in my office area (a different room than the router), with a wireless PCI card installed.

The above configuration works just fine.

Now, I have an older machine that I previously had Fedora Core 2 installed on (with dual-boot Win98), that I want to access the internet (and the rest of my network). The plan I had was to connect this Linux machine to my WinXP machine with a crossover cable, and enable Internet Connection Sharing on that WinXP machine. I tried this (it didn't seem like it would be that complicated), but was unsuccessful.

Here is the situation as it stands right now (doesn't allow the linux machine on the internet):

WinXP: Wireless card is 192.169.1.20 (manually assigned), 255.255.255.0 Subnet Mask, and 192.168.1.1 Default Gateway (my router)
Ethernet port is 192.168.0.1 (manually assigned), , 255.255.255.0 Subnet Mask, and 192.168.1.1 Default Gateway (my router)

Linux: Ethernet (eth0) is 192.168.0.2 (manually assigned), 255.255.255.0 Subnet Mask, and 192.168.0.1 Default Gateway (the XP's ethernet card)

I also have the Primary and Secondary DNS servers assigned to each of these cards (the ones that my ISP specifies).

The other machines (laptops) are all assigned other addresses manually (like 192.168.1.30) or are assigned an IP by the DHCP on the router.

With this configuration, I can ping the 192.168.0.2 address from the XP machine, and I can ping the 192.168.0.1 address from the Linux machine, but I can't get to the internet. It seems to timeout.

I spent a long time on this yesterday, configuring the Linux and XP IP addresses to make this work, and was utterly unsuccessful - with the exception of the ability of the machines to ping each other. I was using the GUI Network interface to configure the card under Linux...

Can anyone out there speculate as to what my problem is?

The biggest question that I have is what the correct gateways and IP's are for the two NIC's in the XP machine. I have disabled the firewall in XP, but I may still have the firewall active in Linux - is there a GUI to disable the firewall in FC3? I don't know if that is the issue, but I am getting desparate here!

Thanks,
Jeff

jim
2005-04-04, 08:38 AM CDT
Why not run a cable or get another wireless card for the linux box ?

cat /etc/resolv.conf
what is the output of the above command ?

spiff72
2005-04-04, 08:42 AM CDT
Totally finished basement, so running an ethernet cable isn't feasible.

For the amount of time that I would use it, I am trying to avoid spending money on another wireless card.

I will run that command when I get home tonite and post the results...

Thanks,
Jeff

spiff72
2005-04-04, 04:34 PM CDT
Results of cat /etc/resolv.conf

nameserver 67.36.55.26
nameserver 206.141.193.55

These are the DNS server IP's I entered when I set up.

I have tried disabling the firewall on the Linux Box with no luck.

I have revised things a bit, though...

Wireless card on windows is now the shared connection (previously, the ethernet card was shared - this didn't seem right), with 192.168.1.20 IP (192.168.1.1 gateway). Ethernet card on Windows PC is now 192.168.1.50, with default gateway blank)

Linux box now has eth0 set to 192.168.1.55, default gateway 192.168.1.50


I can ping 192.168.1.50 from linux box, but if I try: ping www.yahoo.com, it just sits there with nothing output. If I ping 192.168.1.1 (my router), it says destination host not reachable. Same result if I ping the wireless card's IP from linux.

If I try setting the default gateway on the windows ethernet card to anything other than blanks (something like 192.168.1.1 or 192.168.1.20), I get no web access on the windows machine.

I am stumped.

spiff72
2005-04-04, 05:19 PM CDT
Well, even though I can't ping www.yahoo.com, I can still get on the internet.

I think that switching the shared connection on the XP box to the wireless card was the clincher. (And the fact that I had 192.168.0.55 set as my IP address instead of 192.168.1.55). I must have messed that up as I was making the other changes this evening.

I am posting this from the newly connected linux machine...

Thanks!
Jeff

spiff72
2005-04-04, 09:08 PM CDT
Well, if anyone is still reading this topic, I have hit a snag.

Apparently, sharing that wireless internet connection makes file and printer sharing in Windows take a big dump. Although I could access the internet on both the XP and Linux machines, the XP machine's shared printer and folders were no longer available on the network (to the XP laptops). I ended up unsharing the wireless card on the XP box, and disabling the ethernet card that was connected to the linux PC, and then the printer and files were available once again.

This is looking more like a question for the windows XP forums...

If anyone has a clue what is wrong, please share!!! Once again, the config was:

XP machine:
wireless card (shared with ICS): IP 192.168.1.20 defailt gateway 192.168.1.1 (router)
ethernet card (crossover to linux box): IP 192.168.1.55, def gateway blank

Linux Machine:
eth0 card: IP 192.168.1.60 default gateway 192.168.1.55

DNS entries made via graphical network setup (along with the above IP addresses).

I actually think the fault is in windows somewhere. For some reason, when I disabled the (wired) ethernet card, the assigned IP changed (it doesn't really matter, since the card was disabled anyway)...go figure.

I will have a Mac soon, and this will all go away :rolleyes:

Thanks,
Jeff

JustinD
2005-05-22, 01:25 PM CDT
I am attempting to do the exact same thing.

I have an XP box w/ a wireless usb that is connected to my router.
I then have a crossover cable connecting both machines.

Here are my settings(I have tried the ones above, but had no luck).

router = 192.168.0.10
xp wireless
-obtain IP and DNS automatically

xp ethernet
-IP = 192.168.1.1
-Subnet = 255.255.255.0
-Gateway = blank
-DNS = blank
(having the IP as 192.168.0.x causes me to not be able to access the net on my xp box anymore(but not lose the connection))
linux ethernet
-IP = 192.168.1.5
-Subnet = 255.255.255.0
-Gateway = 192.168.1.1


Both machines can ping eachother, and I can even get on the router from the linux box. I can view files on each,etc.

I just cannot get on the net w/ the linux box.

If anyone has any ideas for me, please let me know. I am very new(2 days) to linux, but am willing to learn anything I can about it.

Here is a little more info

[root@dev ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:11:11:EC:B4:EF
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:289 errors:0 dropped:0 overruns:0 frame:0
TX packets:400 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:110831 (108.2 KiB) TX bytes:48325 (47.1 KiB)
Interrupt:169

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:76 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6370 (6.2 KiB) TX bytes:6370 (6.2 KiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

JustinD
2005-05-22, 01:36 PM CDT
Results of cat /etc/resolv.conf

nameserver 67.36.55.26
nameserver 206.141.193.55

These are the DNS server IP's I entered when I set up.



I had not seen/done this part. Where did you get those IP's?

I had
nameserver 192.168.0.3

Changed it to what my router has as
IP Address
DNS

Now I can ping yahoo.com successfully. Just no internet.

EDIT: This is crazy. I can ping, whois,etc.

When I try to go to a page, it will say

Looking up domain
Waiting for domain- and it just stays on waiting

So it is trying to load it, so close.

JustinD
2005-05-22, 01:56 PM CDT
I'm going to go nuts. Google works fine, I can search for anything, just cannot go to any other pages. Any ideas?

tanis
2005-06-20, 03:13 AM CDT
remeber the ip of the machine ( in your case linux ) thats try to get to internet must be assigned by DCHP.
i learned this leason the hard way.