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.
How to solve the case when you have 3 Same networks using different gateways?? I mean,... How Linux kernel will know to deliver the package to the origination network if 3 network are the same?
This is NOT fail-over or redundancy... What i want to know if... How Linux will know what gateway use to deliver the package if there are duplicates networks... ??
What i want to do is something like this.
I have 10 interfaces for example:
I want to create an individual routing table for this interface, something like: route -n via eth9
I want to setup individual routing tables without having issue in case duplicates network with others interfaces... is possible?
If all of the systems are on the same networking segment, the gateway won't come into play at all. If they are on different networking segments, you wouldn't use a gateway, as much as adding a route: "ip route add 192.168.1.0/24 dev eth0".
You can have a host with many routes, but everyhost can only have one gateway. It's known as a default route.
Also, you cannot logically (in the networking sense) have two systems on the same layer two network, seperated by a layer three routing device. Hope this helps.
So... The VPN Server will get confused because the network is duplicated. So I imagine, the VPN server will send the package to Both gateways. In this case; 172.16.1.2 and 172.16.1.2.
A more complex solution might be subnetting, but even then the systems would be on two different networks.
You can have one on the 192.168.1.0/26 network and another on the 192.168.1.64/26 subnet.
Another option would be NATing (Network address Translation), in which case the servers could have the exact same IP. I don't know much about setting NATing up, save grabbing a linksys router or two and throwing it in the mix, hopefully though that will give you some ideas.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.