LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Linux through a Wireless Windows Connection (https://www.linuxquestions.org/questions/linux-wireless-networking-41/linux-through-a-wireless-windows-connection-470232/)

C-bro 08-02-2006 07:07 PM

Linux through a Wireless Windows Connection
 
I know there are several guides on this on the internet, but none have seemed to solve my problem.

What I have tried thus far:

- Sharing internet connection (won't work due to 192.168.0.1 IP conflict with router)
- Bridging network connections (when bridging the ethernet card with the wireless connection, the wireless no longer works until I remove the bridge)
- Running PPPShar on WinXP computer (made no difference)

I've tried setting the Linux machine up through DHCP and using static IP's but I could not get it to ping any of the ethernet cards/router. the card definitely works because I can use the internet while it's plugged into the modem directly. The reason I'm running it through another computer is because now the router is 75' away.

Any ideas of what to do, or if this configuration is even possible?

Thanks

C-bro 08-02-2006 07:08 PM

Here is the configuration I'm working with.

http://img512.imageshack.us/img512/1520/hookuphv5.png

michaelk 08-03-2006 06:52 AM

You should be able to change the IP address of the router and then you would not have a conflict using XP ICS.

C-bro 08-03-2006 10:27 AM

Quote:

Originally Posted by michaelk
You should be able to change the IP address of the router and then you would not have a conflict using XP ICS.

Thanks. I'll have to try that after work. Will it pose a problem to the computer which is directly connected to the router, or will that computer just reconfigure because it's set to DHCP?

michaelk 08-03-2006 10:42 AM

No problems with the wired PC.

anibis 08-03-2006 06:17 PM

If you have a cable outlet near your computers you could move the router and cable modem to your room and use the wireless connection for the other computer that I assume is by the router currently, then you could connect both your computers to the router directly and wouldnt have to worry about sharing a connection, this would be the best way because if you wish to connect to your linux machine over the internet all you would have to do is forward the ports on the router, I've heard horror stories with getting ports forwarded through ICS.

If this isn't an option you can either change the router's IP like michael said or change the IP on the windows machine, when you enable internet connection sharing it sets the ip to 192.168.0.1, you can change this IP after you setup ICS to whatever you wish, either way will work, whatever you are most comfortable with.

C-bro 08-03-2006 07:43 PM

Thanks alot for the responses guys. This is aggravating me beyond belief. I tried what you guys suggested and it's still giving an issue with an IP conflict. However, using output from ipconfig, my network is as follows:

Router - 192.168.0.100
Hardwired computer - 192.168.0.104

Wireless XP - 192.168.0.101
Wireless XP (NIC) - 192.168.0.105
Linux - 192.168.0.106

All have Subnet mask of 255.255.255.0

I configured the Linux IP manually, but I can't ping the XP NIC, and I can't ping the Linux IP from my Win XP client.

These are the only 5 components in my network. You'll notice that none are the 192.168.0.1 required for the ICS, but it still gives a conflict. Is it because I'm sort of "double hosting". I meant the router is trying to be the network host, and my wireless connection is kind of like the client. Then the Linux one is sort of a client branched off the client. Know what I mean?

Like you said, it would be so much easier just to move the router, but we need the open ports where the router is for laptop hookup (not wireless capable).

michaelk 08-03-2006 07:49 PM

Change router IP to 192.168.1.1
The wireless XP interface configure for DHCP
Now the wired side will be 192.168.0.1 per XP ICS
And no conflicts.
The wired XP and any PC pluged into the router will have a 192.168.1.x IP address.

C-bro 08-03-2006 09:46 PM

Quote:

Originally Posted by michaelk
Change router IP to 192.168.1.1
The wireless XP interface configure for DHCP
Now the wired side will be 192.168.0.1 per XP ICS
And no conflicts.
The wired XP and any PC pluged into the router will have a 192.168.1.x IP address.

Almost there. I did what you said, and it finally let me share the connection, and both XP computers still have internet. I set eth0 to DHCP but it says "network unreachable" when I try to ping anything. Am I supposed to add a DNS server (currently there is nothing there) or anything in the Hosts tab? Also, after setting up ICS my sharing NIC is now:

169.254.210.155
Subnet: 255.255.0.0

That's the NIC that the Linux machine is connected to, but I still can't ping in either direction.

michaelk 08-03-2006 09:57 PM

Quote:

I set eth0 to DHCP
Which PC? linux?
This IP address 169.254.210.155 is assigned when the DHCP client can not connect to the server. If this is the linux PC then it is not getting an address from ICS. If this is the XP box then ICS is not configured correctly.

anibis 08-03-2006 11:50 PM

Router: 192.168.1.1

Windows:
Your sharing nic should be 192.168.0.1, your wireless connection should be "auto config" and it should pull an IP from the router, did your wireless connection change to 192.168.0.1 when you enabled ICS? If it did try to share the wired connection, either way the wireless should be DHCP and the wired should be 192.168.0.1

Linux:
If your linux machine can't pull an IP I would try to assign an IP manually, this is what I do because I connect to my linux machine from my laptop and other desktops on occasion, this way the IP will always be the same so you don't have to look it up, you don't really need DHCP unless you are on a huge network or for those people who have no clue what an IP even is.

Heres what your IP's should look like:

Router: 192.168.1.1

Windows:

Wireless: DHCP, auto detect
Wired: 192.168.0.1, this should be the connection you setup ICS on

Linux:

IP: 192.168.0.150 <---use .150 so the router won't assign the same IP to another computer
Gateway: 192.168.0.1 <--------XP wired sharing nic IP
DNS: 192.168.0.1 <-------XP wired sharing nic IP
Subnet: 255.255.255.0

Hope this fixes it.

C-bro 08-04-2006 06:51 AM

Thanks alot guys. You've been icredibly helpful. I'm at work at the moment, but I'll be sure to try that out tonight.

I believe I've been going about it all wrong. I've been trying to do set up ICS on the wireless connection, since that's the connection I get internet through :newbie: I'll try and configure the ICS on the second NIC in the XP machine, and manually set up the Linux NIC, and hopefully all will be well.

If I get this solved, I'll be sure to edit my first post with the full solution for any other users who may have the same problem.

Thanks again!


All times are GMT -5. The time now is 04:31 PM.