Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
10-01-2003, 05:10 AM
|
#1
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 75
Rep:
|
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
|
|
|
10-01-2003, 05:15 AM
|
#2
|
LQ Newbie
Registered: Sep 2003
Distribution: RH9
Posts: 11
Rep:
|
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
|
|
|
10-01-2003, 05:19 AM
|
#3
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 75
Original Poster
Rep:
|
Am I right that I don't neet a hub or switch.
|
|
|
10-01-2003, 08:34 AM
|
#4
|
Member
Registered: Sep 2003
Distribution: Slackware 10.1, Slamd64 10.1, IpCop 1.4
Posts: 125
Rep:
|
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 08:36 AM.
|
|
|
10-08-2003, 06:55 PM
|
#5
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 75
Original Poster
Rep:
|
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.
|
|
|
10-08-2003, 07:31 PM
|
#6
|
Member
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 93
Rep:
|
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.
|
|
|
10-08-2003, 08:31 PM
|
#7
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 75
Original Poster
Rep:
|
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.
|
|
|
10-08-2003, 09:00 PM
|
#8
|
Member
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 93
Rep:
|
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?
|
|
|
10-09-2003, 04:53 AM
|
#9
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 75
Original Poster
Rep:
|
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.
|
|
|
10-09-2003, 07:07 AM
|
#10
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 75
Original Poster
Rep:
|
Just noticed when I load the kernel module for the network card the mouse won't work.
|
|
|
10-09-2003, 09:51 AM
|
#11
|
Member
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 93
Rep:
|
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.
|
|
|
10-09-2003, 02:10 PM
|
#12
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 75
Original Poster
Rep:
|
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.
|
|
|
10-09-2003, 03:13 PM
|
#13
|
Member
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 93
Rep:
|
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
|
|
|
10-09-2003, 08:04 PM
|
#14
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 75
Original Poster
Rep:
|
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 08:34 PM.
|
|
|
10-09-2003, 09:47 PM
|
#15
|
Member
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 10:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|