Open dominikkukacka opened 7 years ago
This reminds me of the old days, when we used virtual interfaces like that. Today, we just add more IP addresses to a single interface.
What system does still support this old behavior?
This is actually on an Ubuntu 16.04 installation. How do I add multiple IP addresses with the role?
Am 25.09.2017 19:45 schrieb "Andreas Reischuck" notifications@github.com:
This reminds me of the old days, when we used virtual interfaces like that. Today, we just add more IP addresses to a single interface.
What system does still support this old behavior?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dresden-weekly/ansible-network-interfaces/issues/63#issuecomment-331958762, or mute the thread https://github.com/notifications/unsubscribe-auth/AAO2d1wNcoQZ8S9WQMDtKG1Rk8YSmXG6ks5sl-a8gaJpZM4Pid8f .
Just add them to the routes on up
and remove them on down
- device: eth1
# …
# add additional IPs
up:
- "route add -net 1.2.3.4 netmask 255.255.255.248 gw 1.2.3.1 eth1"
down:
- "route delete -net 1.2.3.4 netmask 255.255.255.248 gw 1.2.3.1 eth1"
I guess the main issue here is that we generate an illegal filename. Maybe someone can fix that.
I tried to add a virtual interface to eth1:
which resulted in this error:
The interface file is written but the restart failes. And yes the interface is already there and up. But should this not work anyway? (It does for eth0/eth1)