Slackware 9, Windows XP, crossover cable and an internet connection
Linux - NetworkingThis 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.
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.
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.
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]
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.