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 can I get alias interfaces packages routed by a Linux gateway?
Seems I do not understand how work alias interfaces.
I have a Linux gateway that does not route packets from alias interfaces from hosts in any subset, but it does with real interface packets.
First I guessed the problem came from arp table, as 2 ip have the same mac address. As it seems to be impossible to add "independent" mac address to alias interfaces, I tried to delete arp entry associated with the physical ip, but nothing happens. The gateway still does not reach the virtual interface. I get "***" on traceroute command in the gateway site, while all other hosts, "stuck on the gateway".
What I tried :
- added clone interfaces with files, and ip command on needed hosts;
- added host route in the gateway (ip of alias interfaces);
- added firewall rules;
- added/delete arp entry;
Can you give the output of "ip addr" and "ip route"? feel free to x out the ips themselves if you don't want to display them. But hard to really give you any information without at least a bit of basic info.
I am going to reopen this issue, as it seems to be the same problem I am experiencing. I searched the Red Hat KB and did not find a solution there. Anyway, here is the issue.
I want the alias device (e.g., eth0:0) to route traffic for a different network through eth1. The traffic for eth0 will route properly though the configured route through eth1, but the traffic received on eth0:0 will not. For example, eth0 has IP 192.168.0.1 and traffic to a host at 10.0.0.1 routes through eth1 with a static route to 10.0.0.0/24. But when that traffic is received to eth0:0, which has the IP 192.168.0.2, the route is ignored and I see in the packet capture that the source is that of eth0:0 (192.168.0.2) trying to reach 10.0.0.1. Is it possible to get the alias configured on eth0 to route through eth1 to the 10.0.0.0/24 network?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.