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.
Thanks you're right. Specifying the interface as an IP address does the trick.
I've got an ADSL router on the 192.168.1.X network with an IP address of 192.168.1.1 when I ping this from the 192.168.1.2 interface I get replies OK, however if I ping it using the 192.168.67.1 interface I get nothing back. Any thoughts?
I've included the netstat output below.
[root@ph-firewall root]# netstat -ra
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 * 255.255.255.0 U 40 0 0 eth0
192.168.67.0 * 255.255.255.0 U 40 0 0 eth1
127.0.0.0 * 255.0.0.0 U 40 0 0 lo
default 192.168.1.1 0.0.0.0 UG 40 0 0 eth0
Well, your default route may be overriding the interface specification in the ping command. Try deleting your default route while pinging on the "wrong" interface. Or better, put another machine on the .67.x net and ping it.
Yes, it's possible that the router is either
a) ignoring a ping originating from a private subnet it is not part of,
or
b) attempting to reply via a different route which does not return to the originator.
But, I have to say, I think your NICs appear to be working fine. Why are you trying so hard to route on the "wrong" subnets?
If you look at my other post a bit further down (regarding topology) you'll see that I'm trying to setup a home network.
The problem was that.... It didn't work! Whilst the Linux box connects quite happily to the internet the clients on the 192.168.67.X network were failing. This exercise was an attempt to break things down into manageable chunks in order to find out where the problem was.
I'm convinced that the problem is the router either a) It can't perform NAT for the .67 network or b) it doesn't know how to route the traffic back to the clients.
The topology I went for was based around the need to ensure that the network was firewalled by the Linux machine (firewall is not present at present in order to avoiding complicatiing things!) and I thought in order to do that I had to ensure that every IP packet passed through that machine.
I'm starting to wonder if this could have been achieved by having everything on the 192.168.1.X network and the use of routing tables? Any thoughts?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.