LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-06-2017, 04:03 AM   #1
hurd
LQ Newbie
 
Registered: Jan 2015
Posts: 16

Rep: Reputation: Disabled
Gateway does not route host alias interfaces


Hi,

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;

Thanks
 
Old 04-06-2017, 02:43 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
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.
 
Old 09-21-2017, 10:47 AM   #3
IsLinuxGud
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
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?
 
  


Reply

Tags
alias, arp, gateway, mac, routing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
route and alias interfaces in RHEL 5.5 earthlink Linux - Enterprise 3 04-14-2011 02:57 PM
non-default route to static host through gateway for ppp failover testing jrscandora Linux - Networking 3 04-21-2009 02:20 AM
2 NIC's - one gateway, setup Static route to Host baba_jaga Linux - Newbie 1 04-14-2009 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration