LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2007, 11:56 PM   #1
warbison27
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Rep: Reputation: 0
Cool Connect Linux to XP wireless for Network


i am having trouble with my wireless USB device. I was wondering if I can connect my PC that is running Ubuntu 7.04 to a PC running XP MC or to a Mac running Tiger 10.4 and run off of either of those two wireless connections (by using an ethernet cable from the Linux PC to either of the other computers). I don't know how to do this. I need help!
 
Old 08-27-2007, 08:48 AM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
To start of you need a straight cat5 cable, i.e. it doesn't have a twisted pair of cables used to connect router etc. You should not need to configure your linux box, it should work fine the way it is. After having conected the machines you go to controll panel in windows and go into the network section. There is the info panel to the left saying something like set up a home network or the likes. Click it. Follow the on screen options and when asked on connection method select " the computer connects to a gateway or another computer on the lan." Follow the other prompts. When asked to create a network setup disk, just click none needed and reboot. This should work and if you have samba should also allow you to share files. The IP would automatically be assigned. If the machines do not connect then run "ifdown eth0" on your linux box and bring the hardware up again with "ifup eth0". If it doesn't work, reboot both machines. Making sure windows is up and running before attempting to try the connection again. If this still fails check your cable.

Best of luck.
 
Old 09-02-2007, 11:45 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by ericson007 View Post
To start of you need a straight cat5 cable, i.e. it doesn't have a twisted pair of cables used to connect router etc.
I'm not sure I understand what you mean; does "straight" refer to a straight though i.e. normal cable & "twisted" to a cross-over cable? If so, I think you've got it backward.

Raw CAT 5 cabling, by definition, consists of 4, color-coded, twisted pairs in a common sheath. Each end has an RJ-45 connector. There are 2 patterns, "A" & "B", for terminating the wires into the connectors. A straight thorough cable has both ends terminated the same way, usually "B". A cross-over cable has the ends terminated differently, i.e. 1 "A" & 1 "B".

The ports (outlets) that the cables plug into are also generally "regular"/unmarked/"LAN" or "uplink"/"WAN". Switches, cable/DSL modems, & NIC's are wired in a logical way so that usually only regular, i.e. straight thorough, cables are needed.


Unless one of the NIC's in the machines you are connecting is auto-sensing, you will need a cross-over cable to connect the two.

I suggest a quick check of the physical connection before proceeding: At least one, probably both, of the NIC's will have some kind of ready light on when they are hooked up (assuming the power is on). If the computers are on & the NIC's are cabled together, but neither one shows any sign of a light, then the physical connection needs troubleshooting & repair.


Quote:
Originally Posted by ericson007 View Post
You should not need to configure your linux box, it should work fine the way it is.
Yes, but see below.


Quote:
Originally Posted by ericson007 View Post
After having conected the machines you go to controll . . . The IP would automatically be assigned.
Can't comment, Winders-free since May 2005. Besides I always connect through a router+switch.


Quote:
Originally Posted by ericson007 View Post
If the machines do not connect then run "ifdown eth0" on your linux box and bring the hardware up again with "ifup eth0".
I take a more direct approach -- as root try, in this order:
Code:
dhclient
dhcpcd
pump
You should have one & only one of these installed, so when one works you're set. Their purpose is to get an IP address. You can check that by running ifconfig.


Quote:
Originally Posted by ericson007 View Post
If it doesn't work, reboot both machines. Making sure windows is up and running before attempting to try the connection again.
A bit drastic, but sometimes it's the only way.


Quote:
Originally Posted by ericson007 View Post
If this still fails check your cable.
I would have already done that.


Quote:
Originally Posted by ericson007 View Post
Best of luck.
Seconded.
 
Old 09-05-2007, 08:28 AM   #4
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Appologies for my post above.archtoad6 has corrected my post, I completely messed up the wiring sequence. Sorry about that... Not sure what I was thinking whilst typing.
 
Old 09-06-2007, 09:18 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Hope I wasn't too harsh -- on a bad day it's a constant struggle for me to be tactful. Apparently, it was either a good day or I succeeded .
 
Old 09-06-2007, 09:37 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
I did something similar when I used my wireless laptop to route internet traffic for my desktop. The laptop was running SuSE Linux, so that was different than your situation. You need to enable Internet Connection Sharing in the windows machine. Then use the IP address of the windows NIC as the default gateway address. You can connect the two computers via a switch or a cross over cable.
 
  


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
Suse Linux connect to a wireless network Markit0s Linux - Newbie 10 07-28-2006 02:40 PM
Linux and wireless BlueTooth USB dongle; connect to network itz2000 Linux - Newbie 2 03-08-2006 04:55 PM
Need help configuring an old linux box with wireless interface connect to network itrap2003 Linux - Wireless Networking 3 06-25-2004 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:00 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration