интерфейс – Multiple IPs on bond interface in debian

Question:

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 one more ip address – 192.168.10.5 .

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 ideas how?

Answer:

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
Scroll to Top