LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-20-2004, 08:27 AM   #1
zeekx4
LQ Newbie
 
Registered: Oct 2004
Posts: 18

Rep: Reputation: 0
Can't deal with Windows network


I've got Slackware 10.0 up and running. All that's fine and dandy, configured eth1 for DHCP, internet works. Now I have a cross-over cable running from eth0 to a windows XP box three feet away. I can't change that box to linux too, cause the rest of my family uses it and they can't even program a VCR.

I'm not worried about printer/file sharing, I just want to get both computers to share the internet connection. I've tried forcing eth0 to use 192.168.0.1 and then setting that as the gateway for the windows box. I've tried setting up routes through different IPs. I just don't understand networking well enough to get this to work.

Any help is greatly appreciated. Last night was my fifth or sixth night staying up so late it's early trying to figure this out.
 
Old 10-20-2004, 08:41 AM   #2
Oderus
Member
 
Registered: Sep 2004
Posts: 52

Rep: Reputation: 15
Well there is quite a bit to sharing an internet connection.
If you don't want your Linux box to be a DNS forwarder, then life gets a little easier.
you will have to have IP forwarding enabled by typing
echo 1 > /proc/sys/net/ipv4/ip_forward
if you did it right, typing cat /proc/sys/net/ipv4/ip_forward should give you one line with 1 on it.
then on the XP box, make sure you have the proper dns settings setup to point to your ISP's DNS servers (not the 192.168.x.x address) and your gateway is your Linux box.
Now when they access the internet, all requests going to 0.0.0.0 (outside your network) will go to the gateway (linux box) and will just forward all packets from eth0 to eth1.

Let us know how it goes.
 
Old 10-20-2004, 11:09 PM   #3
zeekx4
LQ Newbie
 
Registered: Oct 2004
Posts: 18

Original Poster
Rep: Reputation: 0
Followed your directions, still didn't work though . I previously had my outgoing connection connected to eth1, but I switched it since it seems like linux wants to use eth0 for the internet anyway. I got eth0 set up using dhcp, and typed 'ifconfig eth1 192.168.0.1' and then set that as the gateway for my windows box. I set the IP for the Windows box to 192.168.0.24 and I'm not getting any packets received. I've tried using direct IPs, as well as URLs and can't ping anything.
 
Old 10-21-2004, 07:13 AM   #4
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Sorry, I misread your post and got the machines reversed.

Last edited by -X-; 10-21-2004 at 07:21 AM.
 
Old 10-21-2004, 07:21 AM   #5
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
I think you'll need to setup NAT. You can do that using an iptables script. 2 reasons for that:
- the internal IP of the Windows box has to be translated to an external address to work on Internet
- You don't want to connect a Windows machine directly to the Internet without a firewall and risking virus/trojan infection within a few minutes.

So perform a search on firewall/iptables and you will find plenty of solutions to that problem
 
Old 10-21-2004, 08:23 AM   #6
Oderus
Member
 
Registered: Sep 2004
Posts: 52

Rep: Reputation: 15
zeekx4- have you set the same netmask for both XP box and Linux?
ifconfig eth1 netmask 255.255.255.0
pinging is the best tool to test connectivity at first so don't try the internet until we get that resolved.
try posting your configs online .. like type 'route -n' & 'ifconfig'
you can set your IP manually in the /etc/rc.d/rc.inet1.conf file to make it easier..
 
  


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
Xandros mount point for Windows Network & NFS Network jaagut Linux - Distributions 1 09-14-2005 07:21 AM
how to configure my network on slackware 10.0 so i can access a windows network salviadud Linux - Newbie 2 02-11-2005 01:19 PM
Printing to Windows & access to Windows Network RThomson Linux - General 1 12-19-2004 06:45 PM
linux machine does not connect to the network in windows network Bzuco Linux - Networking 2 07-19-2004 04:44 AM
accessing a windows network from a linux network and vise vesra uche okorie Linux - Networking 0 12-16-2001 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:36 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
Open Source Consulting | Domain Registration