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.
Forgive me if this has been answered before. I have looked through the forums and google and have found similar posts, but nothing quite as detailed as what I'm trying to do.
I have a firewall running OpenSuse 11.3, with 6 ethernet interfaces (3 external/dhcp, 1 DMZ and 2 internal). I am trying to configure the 3 external interfaces to different dns names, using eth0 as the default connection, but being able to send packets on demand out eth1 and eth2.
I've build a few different iterations of linux firewalls, and have a basic understanding of how iptables work, but I am totally failing when it comes to being able to route packets out of the correct nic when needed. I've been testing with curl --interface ethX whichever nic is set to primary works every time, all of the others timeout, clearly routing issue.
I have tried adding a default route using ip route add default dev ethX metric x, but that doesn't seem to work. Can anyone help point me in the right direction?
Hey b1r2s,
When you say you are looking to assign the 3 external interfaces separate DNS names, how did you plan going about that? please be specific about what functionality you are attempting to gain. The same goes for sending data out a specific interface. That is certainly doable, but to what end? Our solutions may vary based on what exactly you are attempting to do, so lets get some details =)
Look into the iproute2 suite of utilities, should be installed by default. iproute2 does advanced routing, you wil lthen also want to look up redundant routers HO-TO
Thanks for your replies. I was able to figure out how to overcome my issue using iproute2 and setting up tables for each nic. So for now, I think I'm all set.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.