netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IP-Aliasing for IPv6?
@ 2019-05-14 18:49 M. Buecher
  2019-05-14 19:15 ` Heiner Kallweit
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: M. Buecher @ 2019-05-14 18:49 UTC (permalink / raw)
  To: netdev

Preamble: I'm just a network hobbyist at home, so please bear with me if 
something in this mail is "stupid" from an expert's point of view.

According to the documentation [1] "IP-Aliasing" is an obsolete way to 
manage multiple IP[v4]-addresses/masks on an interface.
For having multiple IP[v4]-addresses on an interface this is absolutely 
true.

For me "IP-Aliasing" is still a valid, good and easy way to "group" ip 
addresses to run multiple instances of the same service with different 
IPs via virtual interfaces on a single physical NIC.

Short story:
I recently added IPv6 to my LAN setup and recognized that IP-Aliasing is 
not support by the kernel.
Could IP-Aliasing support for IPv6 be added to the kernel?

Long story:
I tried to find out how to do virtual network interfaces "The Right Way 
(tm)" nowadays.
So I came across MACVLAN, IPVLAN and alike on the internet, mostly in 
conjunction with containers or VMs.
But MACVLAN/IPVLAN do not provide the same usability as "IP-Aliasing", 
e.g. user needs to learn a lot about network infrastructre, sysctl 
settings, forwarding, etc.
They also do not provide the same functionality, e.g. the virtual 
interfaces cannot reach their parent interface.

In my tests with MACVLAN (bridge)/IPVLAN (L2) pinging between parent and 
virtual devices with `ping -I <device> <target ip>` failed for IPv4 and 
IPV6.
Pinging from outside MACVLAN worked fine for IPv4 but not IPv6, while 
IPVLAN failed also for pinging with IPv4 to the virtual interfaces. 
Pinging to outside only worked from the parent device.
Unfortunately I could not find any source on the internet that describes 
how to setup MACVLAN/IPVLAN and their surroundings correctly for a 
single machine. It seems they are just used for containers and VMs.

If it is possible to setup MACVLAN/IPVLAN that they can reach and also 
can be reached from their parent device, other virtual devices and from 
outside, then please guide me to the right direction or provide links. 
Would be much appreciated.
Otherwise I would like to see IP-Aliasing for IPv6.

Hope to stimulate further thoughts and thanks for reading
Matthias "Maddes" Bücher

[1] https://www.kernel.org/doc/html/latest/networking/alias.html


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-05-26 20:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-14 18:49 IP-Aliasing for IPv6? M. Buecher
2019-05-14 19:15 ` Heiner Kallweit
2019-05-15  8:42 ` Matthias May
2019-05-15  9:26 ` Michal Kubecek
2019-05-20 20:23   ` M. Buecher
2019-05-20 20:33     ` Toke Høiland-Jørgensen
2019-05-20 20:53     ` Michal Kubecek
2019-05-26 20:13       ` IP-Aliasing for IPv6? (actually "labels") M. Buecher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).