LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-11-2008, 11:17 PM   #1
tobiusmaximus
LQ Newbie
 
Registered: Dec 2007
Location: on the seeeeeee.
Distribution: AArrrg2.0
Posts: 20

Rep: Reputation: 0
Slack 12.1 as router with windows downstream trouble


Hello,
I set my slackware box up for a router, to provide internet and NAT for my new windows box.
But windows reports disconnected cable. No lights on the cards
either.
Slackside, setup my iptables rulesets, enabled ip forwarding in the kernel, and ifconfiged eth1 an ip address.

Windows side, I set up static ip, netmask, etc, but cannot connect.
Ifconfig on the router reports the ip, mac, broadcast and mask, so I
know the card works.

Any ideas?

Last edited by tobiusmaximus; 07-11-2008 at 11:22 PM.
 
Old 07-11-2008, 11:34 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Can the windows machine ping the Linux machine. The link light being dark sounds like a connectivity problem. Do you have them connected directly? If so, are you using a cross-over cable?
 
Old 07-12-2008, 12:28 AM   #3
tobiusmaximus
LQ Newbie
 
Registered: Dec 2007
Location: on the seeeeeee.
Distribution: AArrrg2.0
Posts: 20

Original Poster
Rep: Reputation: 0
Cross over cable?
It's a plain ethernet cable, from the onboard card on windows to eth1 on slack. I've tried a couple. Same as would connect either computer to the modem or a store bought linksys and work just fine.

Can't ping, an ipconfig on windows returns no network. Like I said, no lights, no connectivity.
 
Old 07-12-2008, 12:30 AM   #4
tobiusmaximus
LQ Newbie
 
Registered: Dec 2007
Location: on the seeeeeee.
Distribution: AArrrg2.0
Posts: 20

Original Poster
Rep: Reputation: 0
Oh. Just looked up cross over cable on wikipedia, I think that's my entire issue. Could I just cut and splice, reversing the wires?
What about putting a switch between them? Will check into it in the morning.

Thanks,
Ryan

Last edited by tobiusmaximus; 07-12-2008 at 12:35 AM.
 
Old 07-12-2008, 04:59 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Just buy a cross over cable or use a switch. Not all of the cables get switched. Just the pairs.

If this is a long cable, you can get a female-female ethernet block (extender) and plug a short cross over cable on the end.
 
Old 07-12-2008, 11:31 PM   #6
tobiusmaximus
LQ Newbie
 
Registered: Dec 2007
Location: on the seeeeeee.
Distribution: AArrrg2.0
Posts: 20

Original Poster
Rep: Reputation: 0
I know not all of them get switched, but I doubt connectivity of spliced wires so I had a flash of intelligence and put a switch between them with the Linux box as upstream of course. They could then talk, but no internet on windows xp.
Here's the weird part. A couple updates came through with my not screwing with updates yet, just trying to get the damned thing connected,
but no internet per say. I thought since the patches came through, it was a dns problem and tried looking up google by their ip. No luck.
No connectivity past eth1 on the slack box.

I could talk to linux through eth1 but not past there.
I believe it is because I failed to load kernel module ipt_MASQUERADE.
But the capabilities of this module may already be built into the kernel because I used the HUGE.S upon installing, so I'm not sure if that's the prob.
I used a standard iptables ruleset, set the flag in the kernel, and after trying my ISP provided DNS servers with windows, I installed dnsmasq and configured it dns only without DHCP.
Still no workee.
I'm going to re-set up everything again in the morning and see if the unloaded kernel module (which I thought was built in) was the problem.
p.s. This is Slack 12.1 with the huge.s kernel and modules.
 
Old 07-15-2008, 08:49 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You need to configure both masquerading and a dhcp server. There is a masquerading HOWTO on the www.tldp.org website. There may be other modules needed such as nf_conntrack. Also you need to enable ip_forward and configure your firewall. The howto will tell you how. It would be best to configure the proper config file or script so that it is done when you boot up automatically.

If you already have a DHCP router that you connect to on the Linux box, then you just need to have the windows box on a different subnet and configure a route for that subnet. You also need to configure your Linux box's IP address (that the Windows box sees) as the Window's default gateway.

I once used my Laptop for a wireless connection for my desktop. I configured the Desktop (and printer) on the 192.168.1.128/255.255.255.128 subnet, entered route to this subnet, enabled ip_forward. It still didn't work until I modprobed the ip_conntrack module (now called nf_conntrack using my present kernel)

Good Luck!
 
Old 07-16-2008, 12:23 AM   #8
tobiusmaximus
LQ Newbie
 
Registered: Dec 2007
Location: on the seeeeeee.
Distribution: AArrrg2.0
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks. I have put a hardware router up and got stuck playin Sim City, But I am a roofer
who works from 6:00 am to darkm so I allow myself these occasional extravagances.
This issue will probably come back off the shelf this weekend.
Ryan

But noSir. Dhcp I have already learned is a useless security
issue once behind the router. I will flip this deal static or I will motherfucking go play sommore Sim City. It's the way I roll yo.

Last edited by tobiusmaximus; 07-16-2008 at 12:38 AM.
 
  


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
LXer: Don't Work Downstream from Redmond LXer Syndicated Linux News 0 03-28-2008 05:42 AM
Router Trouble?? danimalz Linux - Networking 10 04-18-2007 05:57 PM
making slack into a router edman007 Linux - Networking 4 02-19-2006 03:30 PM
Slack as router ntamp Slackware 4 11-17-2005 08:52 AM
Upstream/Downstream stats jeucken Linux - Networking 4 01-06-2003 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:55 AM.

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