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.
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 :-(
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.