LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-29-2007, 03:16 PM   #1
durcott
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
Unhappy Debugging what should be a simple router


Hi Folks, I'm Jeff and I've been away from this level of stuff for far too long. Feel like a newbie.

Anyway, I'm trying to route all packets from 192.168.1.0 to 192.168.42.0 . Shouldn't be too hard should it? 192.168.1.0 is my test segment, and the rest of the world, including gateways, printers etc is on 192.168.42.0.

On the Linux box that I'm trying to route on (Suse 7.3 and kernel 2.2.18), both NICs are working properly, and I can ping to both segments and the outside world, so DNS and local routing seem fine. I have a default route set up to the internet router at 192.168.42.254.

/proc/sys/net/ipv4/ip_forward has been set to '1'.

Now - on a windows box on 192.168.1.5, I can ping to both NICs on the Linux box, but no further on the 192.168.42.0 segment. The Linux box does not seem to be working as a router yet. I can't get to the bottom of it.

I have ipchains installed, but it's not configured to do anything. I'm hoping this is NOT the problem :-)

Has anyone got the answer, or a clue? Sorry for seeming to have forgotten everything :-(

Jeff
 
Old 07-29-2007, 04:18 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it would sound to me like there would be no return route back from the destination machine. this is a test subnet you're coming from right? so therefore is not on the default route from the network on a live network. so that live destination machine has no idea how to get back to that subnet. try a tcpdump on that router to check if that's the case... you should see the echo request packet leave the .42 subnet nic but no reply come back.

and suse 7.3....?? wtf??
 
Old 07-30-2007, 03:36 AM   #3
durcott
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks Chris,

Yes - Suse 7 - I said it had been a while :-)

Thanks for the reply. I was just trying to keep my test world separate while still being able to pick up the office printers, and at best, the internet connection.

What are my options? I'm supposing I'd have to make the Linux box do some NAT work to make it look like the packets are existing on the 198.162.42.0 segment :-(

Thanks for pointing out the obvious though. I'd never have got there without a lot more time.

Jeff
 
  


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
Simple router crimsontide Linux - Networking 1 04-03-2007 08:49 AM
Difference between kernel - debugging and application debugging topworld Linux - Software 2 03-30-2006 12:50 AM
Visual Debugging and Linux Kernel Debugging Igor007 Programming 0 09-30-2005 10:33 AM
wanted : simple debugging task 2mcm Programming 2 08-05-2004 04:26 PM
Simple Router hotrodowner Linux - Networking 14 02-10-2003 03:29 PM

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

All times are GMT -5. The time now is 01:35 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