On 07/26/2017 09:22 PM, Sven Hartge wrote: > Tom Browder <tom.brow...@gmail.com> wrote: > >> The proposed /etc/network/interfaces file: >> # begin ============================= >> iface eth0 inet static >> address 142.54.186.2 >> netmask 255.255.255.248 >> gateway 142.54.186.1 >> dns-nameservers 192.187.107.16 69.30.209.16 > >> # add new IPv4 devices >> up addr add 142.54.186.3/29 dev $IFACE label $IFACE:0 >> down addr del 142.54.186.3/29 dev $IFACE label $IFACE:0 > > You don't need those up/down parts, you can add additional blocks for > eth0: > > auto eth0 > iface eth0 inet static > address 142.54.186.2 > netmask 255.255.255.248 > gateway 142.54.186.1 > dns-nameservers 192.187.107.16 69.30.209.16 >
I think that every additional interface should have suffix in its name - eth0:1, et0:2, etc. Example: iface eth0:1 inet static address 142.54.186.3 netmask 255.255.255.248 iface eth0:2 inet static address 142.54.186.4 netmask 255.255.255.248 By the way Linux kernel supports virtual interfaces as well. I used this feature when my local ISP forced me to use only one IPv4 address per MAC address. Kind regards Georgi > iface eth0 inet static > address 142.54.186.3 > netmask 255.255.255.248 > > iface eth0 inet static > address 142.54.186.4 > netmask 255.255.255.248 > [...] > > >> iface eth0 inet6 static >> address 2604:4300:a:95::2 >> netmask ffff:ffff:ffff:ffff:: >> gateway 2604:4300:a:95::1 >> dns-nameservers 192.187.107.16 69.30.209.16 > > And the same here as well. > > Grüße, > Sven. >