There are customized bond

auto bond0 iface bond0 inet static address 192.168.0.5 netmask 255.255.255.0 gateway 192.168.0.1 network 192.168.0.0 bond_mode 4 bond_miimon 100 bond_downdelay 200 bond_updelay 200 bond_xmit_hash_policy layer3+4 slaves eth0 eth1 eth2 

He needs to add another ip address - 192.168.10.5 .

I tried to do

 auto bond0:1 iface bond0:1 inet static address 192.168.10.5 netmask 255.255.255.0 gateway 192.168.10.1 network 192.168.10.0 bond_mode 4 bond_miimon 100 bond_downdelay 200 bond_updelay 200 bond_xmit_hash_policy layer3+4 slaves eth0 eth1 eth2 

But in this case, the network does not rise. Any idea how?

  • @AlbertR, If you are given an exhaustive answer, mark it as correct (click on the check mark next to the selected answer). - Vitalina

2 answers 2

 auto bond0 iface bond0 inet static address 192.168.0.5 netmask 255.255.255.0 gateway 192.168.0.1 network 192.168.0.0 bond_mode 4 bond_miimon 100 bond_downdelay 200 bond_updelay 200 bond_xmit_hash_policy layer3+4 slaves eth0 eth1 eth2 iface bond0 inet static address 192.168.10.5 netmask 255.255.255.0 gateway 192.168.10.1 
  • Unfortunately, it didn’t help: --- cut --- Running /etc/init.d/networking restart. (Warning). Reconfiguring network interfaces ... / etc / network / interfaces: 24: duplicate interface ifdown: can't read interfaces "/ etc / network / interfaces" / etc / network / interfaces: 24: duplicate interface ifup: can't read interfaces file "/ etc / network / interfaces" failed. - AlbertR

for example, using the up directive, in which you can specify a command that will be executed after raising the interface:

 up команда 

for your case, something like this (the command will add the address 192.168.10.5 with a 24 bit mask to the bond0 interface):

 up ip aa 192.168.10.5/24 dev bond0 

add a line with the directive to somewhere inside the section starting with iface bond0 ... for example, between any of the lines of your example.