LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 08-02-2006, 07:07 PM   #1
C-bro
LQ Newbie
 
Registered: Jul 2006
Distribution: Xubuntu 6.06
Posts: 8

Rep: Reputation: 0
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

Last edited by C-bro; 08-02-2006 at 07:10 PM.
 
Old 08-02-2006, 07:08 PM   #2
C-bro
LQ Newbie
 
Registered: Jul 2006
Distribution: Xubuntu 6.06
Posts: 8

Original Poster
Rep: Reputation: 0
Here is the configuration I'm working with.

http://img512.imageshack.us/img512/1520/hookuphv5.png
 
Old 08-03-2006, 06:52 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
You should be able to change the IP address of the router and then you would not have a conflict using XP ICS.
 
Old 08-03-2006, 10:27 AM   #4
C-bro
LQ Newbie
 
Registered: Jul 2006
Distribution: Xubuntu 6.06
Posts: 8

Original Poster
Rep: Reputation: 0
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?
 
Old 08-03-2006, 10:42 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
No problems with the wired PC.
 
Old 08-03-2006, 06:17 PM   #6
anibis
Member
 
Registered: Apr 2005
Distribution: FC5 & Slack 10.2
Posts: 50

Rep: Reputation: 15
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.

Last edited by anibis; 08-03-2006 at 06:24 PM.
 
Old 08-03-2006, 07:43 PM   #7
C-bro
LQ Newbie
 
Registered: Jul 2006
Distribution: Xubuntu 6.06
Posts: 8

Original Poster
Rep: Reputation: 0
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).

Last edited by C-bro; 08-03-2006 at 07:45 PM.
 
Old 08-03-2006, 07:49 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
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.
 
Old 08-03-2006, 09:46 PM   #9
C-bro
LQ Newbie
 
Registered: Jul 2006
Distribution: Xubuntu 6.06
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 08-03-2006, 09:57 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
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.
 
Old 08-03-2006, 11:50 PM   #11
anibis
Member
 
Registered: Apr 2005
Distribution: FC5 & Slack 10.2
Posts: 50

Rep: Reputation: 15
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.

Last edited by anibis; 08-04-2006 at 12:04 AM.
 
Old 08-04-2006, 06:51 AM   #12
C-bro
LQ Newbie
 
Registered: Jul 2006
Distribution: Xubuntu 6.06
Posts: 8

Original Poster
Rep: Reputation: 0
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 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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help getting wirless internet connection to work. Left Face Down Slackware 8 07-24-2006 10:14 PM
Help in regards to Wirless internet connection on Toshiba Tecra S1 pburn Mandriva 5 07-01-2006 09:23 PM
Wirless connection but unable to access internet wildcat06 Linux - Wireless Networking 5 03-27-2006 09:08 AM
Wirless connection amilo M 3438G gasman22 Linux - Laptop and Netbook 0 01-13-2006 05:31 AM
i can get internet connection in windows but in LINUX there is no connection ruzvay Linux - Networking 2 06-08-2004 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration