Linux workstation and Windows XP Internet Share Help
Greetings,
This is the situation. I have a Red Hat 9.0 Workstation connected direct to a Windows XP Box, which is connected to the DSL Modem. Linux eth0: inet addr:192.168.1.2 Bcast: 192.168.1.255 Mask:255.255.255.0 Gateway: 192.168.1.1 WinXP eth0: inet addr: 192.168.1.1 Mask: 255.255.255.0 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. thanks! :scratch: |
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. |
Win XP box does have two NIC's. one is 192.168.0.1 and the other, connected to the linux box, is 192.168.1.1.
:study: Working on that right now with the add route. on winXP: eth1 (second NIC): 192.168.1.1; route add 192.168.0.0 mask 255.255.255.0 192.168.1.1 this has allowed the windohs box to ping the linux box. linux could still ping the windohs box!! :) on linux : eth0: 192.168.1.2; route add -net 0.0.0.0 netmask 0.0.0.0 dev eth0 this didn't do much, if anything. |
Also got the SMB shares up... Yay! all boxes can see each other! next task is intenet sharing all LAN nic's
WinXp has two NIC's: 192.168.0.1 and 192.168.1.1 ICS on WinXP is on, but shares with 192.168.0.1, not 192.168.1.1 I am hoping that this can be fixed with the routing table settings because WinXP network settings does not allow to share Inet with more than one NIC. Bridging didn't seem to help. :Pengy: |
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.
D4k0t4 |
:cool:
I am decided on converting the Linux box to my router. That will be a task and a half 'cause I will need to learn more. It's sweet. |
here I am, still trying to get things working.
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* :mad: |
Example config:
WinXP Box: 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: IP:192.168.1.2 BCast:192.168.1.1 MASK:255.255.0.0 Gateway:192.168.1.1 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... |
Thanks!!
This is what I did. I changed all NIC's to the same subnet: 192.168.*.* I could ping 192.168.0.1 from all workstations, including linux. The linux box eth0 was set up with the following: IP: 192.168.0.4 Mask: 255.255.255.0 Gateway: 192.168.0.254 this allowed me to ping the WinXP NIC 192.168.0.1 but not the internet. I have since changed the Gateway to 192.168.0.1 on the linux box and can access all workstation shares and the internet. :cool: |
Yeah, Rock on! BTW... did my post actually help or are you saying thanks just to be polite?
|
It Helped.
I realized my error in choice of Gateway. :) 192.168.0.254 is the wrong choice. :eek: |
Quote:
P.S. You might know it already so you can ignore it, but if you are not familiar with it be aware of it. |
All times are GMT -5. The time now is 09:42 PM. |