Linux workstation and Windows XP Internet Share Help
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Firewall settings on the Linux box are turned off.
I can ping from linux to winxp with no problem. "ping 192.168.1.1"
I can also access the webserver running on the winxp box by directing Mozilla to 192.168.1.1:28000.
I cannot ping from winxp to the linux box. "ping 192.168.1.2"
I cannot access the internet from the linux box, even with the IP addresses.
The route table for the linux box is:
dest:192.168.1.0 Gateway: * Genmask: 255.255.255.0 Flags: U metric: 0 Ref: 0 Use: 0 Iface: eth0
dest:169.254.0.0 Gateway: * Genmask: 255.255.0.0 Flags: U metric: 0 Ref: 0 Use: 0 Iface: eth0
dest:127.0.0.0 Gateway: * Genmask: 255.0.0.0 Flags: U metric: 0 Ref: 0 Use: 0 Iface: lo
I want to make sure both boxes can recognize each other, and then hopefully set up the resolver for URL's in linux to work ok.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
on Linux
# route add -net 0.0.0.0 netmask 0.0.0.0 192.168.0.1
(I think that's right, syntax may be slightly off)
On WinXP, do you have two NICs? I think you might need to bridge the NICs together and make sure there's a route for 192.168.0.1 pointed to the interface of the second NIC. If you do (on WinXP)
> route print
it should show at the top a list of your adaptors and their hex numbers. You first NIC could be 0x1 and your second NIC 0x2 (or similar). You need to do a
> route add 192.168.0.0 mask 255.255.255.0 192.168.0.1 if 0x2 (or whatever your second NIC is)
I might be a little off on the details, but that's the general idea of what you want to do.
ICS in windows XP only works on the 192.168.0.xxx subnet, i hope this helps. the may have to be some weird protols installed too but I can't remember. Seach microsoft's technet on ICS in windows xp.
I am still using my Win XP box as a router/ICS box.
I can see the shares on all three boxes in the LAN.
I can ping 192.168.0.4 on the Linux Box from 192.168.0.1.
From the linux box (192.168.0.4);
- I cannot ping to the internet.
- I can ping WinXP ICS box at 192.168.0.1.
- I cannot ping 192.168.0.2 (Host Unreachable), WinXP box #2.
- I can ping 192.168.0.4 from 192.168.0.4
Arg!! why can't the linux box ping to the net? It is bridged and ICS is turned on with WinXP *sigh*
eth0: connects to outside network or net... this would be what your linux box can't see.
ip 192.168.0.1
mask 255.255.255.0
eth1: connects to the linux box
ip 192.168.1.1
mask 255.255.0.0 - notice that the third value is 0 a subnet mask tells your nic card which of the 4 values it can change when accessing the network. you have your secondary network(the one the linux box is on) on 192.168.1.x yet you are keeping your subnet mask at 255.255.255.0 this is preventing your nic from pinging over from 192.168.1.2 to 192.168.0.x or whatever... in my past experience( with windows and linux ) you'll have to set the mask on both the linux nic and the second win nic to 255.255.0.0 so on thi lin box your nic would look something like this:
Oh, and I'm not so sure you CAN ping the gateway's other nic... Anyways you'll still have to do all the routing stuff on the win box... probably just selecting the 2 nics and clicking on 'Bridge Connections' should be fine... But let me know if this helped... I'm not 100% sure if it will even work at all cuz I haven't really done this in a while... Actually, I'm not totally sure this even really makes sense... but give it a try and let me know...
Originally posted by chort
On WinXP, do you have two NICs? I think you might need to bridge the NICs together and make sure there's a route for 192.168.0.1 pointed to the interface of the second NIC. If you do (on WinXP) ...
Since the original question was answered I am not going to add anything new, but regarding the quote - be aware of what bridging two interfaces, especially under WinXP, can cause. I've seen too many people in our company who got intimidating by this "excellent" feature of the WinXP and went ahead and enabled forwarding (you know forwaring is good even though you might not have a slightest clue whatsoever what it does), so by enabling forwarding on the bridged interfaces you are creating a network loop, your packets will never reach the destination since there is no spanning tree running on the interfaces, and you'll suck all the little bandwidth you have in the best case scenario.
P.S. You might know it already so you can ignore it, but if you are not familiar with it be aware of it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.