LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-02-2007, 04:40 PM   #1
dla-nor
LQ Newbie
 
Registered: Jan 2007
Distribution: FC9, eee-xubuntu r3, RHEL 4, RHEL 5
Posts: 17

Rep: Reputation: 0
FC6 to win xp w/ crossover cable internet share


It seems that using both linux and windows isn't very popular, but here goes ;-)

Setup:
I have a Fedora Core 6 computer hooked up to my Win XP laptop with a crossover cable. The Win XP laptop has a wireless internet connection to a router and has a 192.168.x.xxx IP address through that connection. For the wired connection I gave them both static IPs: 192.169.0.1 and 192.169.0.2 The two computers ping each other fine and the linux computer sees the Windows computer in the network. I've shared the wireless connection in win xp.

The problem is the Linux computer isn't getting to the internet. This setup is preferable to plugging them both into the router because of the way the machines are distributed physically.
Thanks!
 
Old 01-02-2007, 05:22 PM   #2
bitva
Member
 
Registered: Dec 2002
Location: Los Angeles
Distribution: Debian
Posts: 72

Rep: Reputation: 15
Yeah, if you extra network ports available on the router just connect both computers to the router. Or spend $20 and get a switch.

The way you're doing it, you're gonna need to setup the Windows box with ICS enabled and acting as a gateway for the Linux box/wired NIC.
 
Old 01-02-2007, 06:12 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You need to use the XP's IP address as the default gateway address, and not the address of the router.
Please post the output of /sbin/route.

Also make sure that the file /etc/resolve.conf contains your ISP's nameserver (DNS) addresses.

The windows <-> linux crossover IP addresses may need to be on a different subnet from the router so Windows can route traffic out the correct interface. You also need to make sure you don't have traffic blocked by a firewall in either machine.
 
Old 01-02-2007, 09:20 PM   #4
dla-nor
LQ Newbie
 
Registered: Jan 2007
Distribution: FC9, eee-xubuntu r3, RHEL 4, RHEL 5
Posts: 17

Original Poster
Rep: Reputation: 0
The XP computer's IP is set as the default gateway (192.169.0.1). I turned off the windows firewall for the NIC to the linux machine.

/sbin/route outputs the following:
Code:
Destination   Gateway     Genmask        Flags  Metric  Ref  Use  Iface
192.169.0.0   *            255.255.255.0  U      0       0     0   eth0
default       192.169.0.1  0.0.0.0        UG     0       0     0   eth0
/etc/resolve.conf contains the following:
search localdomain
 
Old 01-02-2007, 09:56 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You X'ed out the third octet of your routers IP address. If it is also .0. then the router and the Linux box are on the same subnet. Unless you have a host route, which I don't know how to set up in WindowsXP, this may cause a problem. A 192.168.0.XXX address has two interfaces assigned to it on the Windows box.

Also, you need your IPSs dns addresses listed in /etc/resolv.conf. This is to resolve domain names to IP addresses.
 
Old 01-03-2007, 10:15 PM   #6
dla-nor
LQ Newbie
 
Registered: Jan 2007
Distribution: FC9, eee-xubuntu r3, RHEL 4, RHEL 5
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the help so far.
Ok, now I added the openDNS IPs to resolv.conf so it now reads:
search localdomain
nameserver 208.67.222.222
nameserver 208.67.220.220

Also the IP address of the XP machine through the wireless connection is 192.168.1.xxx while on the wired NIC is 192.169.0.1

Now, in Firefox, instead of saying "page not found" it goes through the stages of "looking up xxx" and "connecting to xxx" but then stalls indefinitely on "waiting for xxx."
 
  


Reply



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
cisco aironet on windows and trying to share internet though crossover cable cyberwizard Linux - Networking 0 03-21-2006 05:03 PM
Internet sharing through crossover cable iamtux Linux - Networking 3 09-01-2005 07:53 AM
Getting Internet via Crossover Cable Sleepy_Sentry Linux - Networking 6 08-12-2005 11:36 AM
Slackware 9, Windows XP, crossover cable and an internet connection dxdad Linux - Networking 37 11-11-2003 08:45 PM
Drake 9, Win XP and a crossover cable pdjones2112 Linux - Networking 1 01-10-2003 08:51 AM

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

All times are GMT -5. The time now is 04:14 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