LinuxQuestions.org
Visit Jeremy's Blog.
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 10-01-2003, 04:10 AM   #1
dxdad
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 75

Rep: Reputation: 15
Slackware 9, Windows XP, crossover cable and an internet connection


Hi, I've searched and searched through the forums and nothing quite answers my question.

Here is what I have:

---
Computer 1 (Mine)
Slackware 9
Network card

Computer 2 (Wife's)
Windows XP
Broadband (ADSL) internet connection
Network card

and
A crossover cable
---

This is what I want to do:
Connect the two PCs together and share the internet connection. The modem HAS to stay in the XP PC.

I don't want to have to buy ANY other hardware.

Could you tell me:
1. Is this possible?
and
2. Either:
- a) How do I do it?
or
- b) Where do I look to find out?

I've read through loads of HOWTOs and other documentation but I've not found anything that really helps.

I've never done any networking but i'm comfortable with Linux
 
Old 10-01-2003, 04:15 AM   #2
raceprouk
LQ Newbie
 
Registered: Sep 2003
Distribution: RH9
Posts: 11

Rep: Reputation: 0
networking windows and linux... hmm...
i believe the samba tool is designed for this purpose

therefore, run the wizard on the xp machine, note the settings like IP address of xp machine, then configure samba. since i have not tried this before, i can only suggest. however, doing a google search should yield some good results.

hope this helps, even if only a little
 
Old 10-01-2003, 04:19 AM   #3
dxdad
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 75

Original Poster
Rep: Reputation: 15
Am I right that I don't neet a hub or switch.
 
Old 10-01-2003, 07:34 AM   #4
Phathead
Member
 
Registered: Sep 2003
Distribution: Slackware 10.1, Slamd64 10.1, IpCop 1.4
Posts: 125

Rep: Reputation: 15
No hub or switch is needed. You also don't need samba.

Turn on Internet connection sharing on the XP machine. I've used XP for about 5 minutes, so I'm not sure, but I think under the network connection that is the DSL modem (likely a PPPoE connection) you right click and then find the box that says enable Internet connection sharing.

This will (if it works the same as Win 2000) set the network card on the Windows computer to 192.168.0.1. You will need to setup the Slackware computer to use the default gateway of 192.168.0.1 and put it on the same subnet (192.168.0.x with netmask of 255.255.255.0). If XP doesn't do this, just use the address the XP network card is assigned. You do need a static IP address on this card.

When that is done (and the cable connected), you should be able to ping each of the computers. When you can do that, you should be able to get out to the Internet. You'll need to edit your /etc/resolv.conf file with the nameservers your ISP has given you to resolve DNS names. Just run 'man resolv.conf' if you don't know how to do this.

That should do it, please let me know if this doesn't work.

As an asside, make sure you have a firewall on the XP machine. At the very least Zone Alarm. Don't use the XP firewall, it's not really a firewall. When you setup the firewall make sure the network card connection is a trusted network so that it won't block outgoing Internet requests from the Slackware machine.

Phathead

[edit]
Oh yeah, you'll neet to edit /etc/rc.d/rc.inet1 to make the changes to the IP address and default gateway. And make sure to turn off DHCP.
[/edit]

Last edited by Phathead; 10-01-2003 at 07:36 AM.
 
Old 10-08-2003, 05:55 PM   #5
dxdad
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 75

Original Poster
Rep: Reputation: 15
Well now. I eventually got the wire that I ordered from someone on eBay. I managed to connect though my wifes PC in win 98 on my PC - but that isn't a lot of use now is it ;-)

I've read the networking howto and although fasinating it seems to be based more on networking principals than actually doing it.

I edited the files in my /etc/rc.d to tell slackware an IP address and not to use DHCP. I also told it to use 192.168.0.1 as the gateway.

Now clearly the XP machine is configured as I am connected though it at the moment. But in Linux I can't ping the other computer.
 
Old 10-08-2003, 06:31 PM   #6
Col Panic
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 93

Rep: Reputation: 15
when you configure the XP machine's Internet connection sharing you can use it as a DHCP server. Not a great one but it works. Try it that way and let the nix box grab an IP and gateway from the xp box.
 
Old 10-08-2003, 07:31 PM   #7
dxdad
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 75

Original Poster
Rep: Reputation: 15
It doesn't ping with DHCP either.

I do "ifconfig eth0" and it seems to indicate that I have a valid IP address on my Linux machine.
 
Old 10-08-2003, 08:00 PM   #8
Col Panic
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 93

Rep: Reputation: 15
stupid question for ya.....are they on the same subnet?
how about /etc/hosts.deny any references in there?
"" /etc/hosts
""/etc/hosts.allow

you say it worked with a win98 machine...you got them both to communicate? ie you sure its a crossover cable and not a straight cable?
 
Old 10-09-2003, 03:53 AM   #9
dxdad
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 75

Original Poster
Rep: Reputation: 15
subnet is the same - 255.255.255.0

I haven't ever touched
etc/hosts.deny
/etc/hosts
/etc/hosts.allow

So i assume nothing bad in there - but I'll check in a minute when I reboot.

Difinately crossover as I am connected to internet though cable as I type.
 
Old 10-09-2003, 06:07 AM   #10
dxdad
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 75

Original Poster
Rep: Reputation: 15
Just noticed when I load the kernel module for the network card the mouse won't work.
 
Old 10-09-2003, 08:51 AM   #11
Col Panic
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 93

Rep: Reputation: 15
Is it a USB mouse by chance? Try disabling Plug and Play in your Bios and see if it fixes the mouse/nic conflict

It sounds like maybe your nic isn't set up correctly. Im not a slackware guru so Im not real sure of the hardware browsing/detection capabilities.....i'd try commenting it out of fstab and trying to reconfigure it.
 
Old 10-09-2003, 01:10 PM   #12
dxdad
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 75

Original Poster
Rep: Reputation: 15
No, mouse is PS/2. Would it help disabling PnP in bios anyway?

fstab? That's just for mounting filesytstems isn't it? It is a 3Com Etherlink III ISA (3C509b-Combo) card - isapnp seems to initialise it sucessfully.
 
Old 10-09-2003, 02:13 PM   #13
Col Panic
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 93

Rep: Reputation: 15
try disabling the pnp....can't hurt to try

and yes you're right of course....fstab is file systems....try modules.conf to get it not to load...been a rough day and too many open post windows
 
Old 10-09-2003, 07:04 PM   #14
dxdad
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 75

Original Poster
Rep: Reputation: 15
OK, tried enabling and disabling PnP on bios.

When module loads there is no error. Tried letting it do it during linux starting and tried doing it manually and it gives no errors and seems to find the card's address.

Tried with DHCP and manually setting IP and gateway.

if i do "ifconfig" it tells me about "lo" and "eth0" and seems to indicate all is well.

but if i ping the XP machine it doesn't work. it tells me 100% packet loss etc.

Last edited by dxdad; 10-09-2003 at 07:34 PM.
 
Old 10-09-2003, 08:47 PM   #15
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Rep: Reputation: 30
When you run ifconfig does it tell you that eth0 is "up" a long with a bunch of hardware and memory addresses?

And have you tried to ping 127.0.0.1 to make sure the nic card is functioning?
 
  


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
Getting Internet via Crossover Cable Sleepy_Sentry Linux - Networking 6 08-12-2005 11:36 AM
internet connection sharing between two computers using crossover cable farnell_mark Debian 1 06-04-2005 04:44 PM
Win98 and RedHat 6.0 Internet Connection Sharing with a crossover cable lorisdaboris Linux - Networking 3 03-13-2005 10:24 AM
Sharing internet connection between Slackware and XP via crossover cable islord Linux - Networking 3 01-24-2005 10:38 AM
Crossover cable network between XP and Gentoo to shace internet connection rcbarnes Linux - Networking 2 12-24-2004 10:49 PM


All times are GMT -5. The time now is 08:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration