[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Combining 2 Ethernet NICS -> 1 IP address



On Wednesday 19 of March 2003 08:18, J.J. van Gorkum wrote:
> apt-get install ifenslave
>
> less /usr/src/kernel-source-2.4.20/Documentation/networking/bonding.txt
>
> That is all you need.

I wonder what is the correct 'Debian way' configuration in 
/etc/network/interfaces. 

This is my current configuration, it looks rather mad, but without 'up route 
del' I wasn't able to ping 10.2.0.0/24 and without 'post-down ifconfig' were 
both eth1 and eth0 still up after networking stop.


auto eth0
iface eth0 inet static
        address 10.2.0.9
        netmask 255.255.255.0
        network 10.2.0.0
        broadcast 10.2.0.255
        gateway 10.2.0.1

auto eth1
iface eth1 inet static
        address 10.2.0.9
        netmask 255.255.255.0
        network 10.2.0.0
        broadcast 10.2.0.255
        gateway 10.2.0.1

auto bond0
iface bond0 inet static
        address 10.2.0.9
        netmask 255.255.255.0
        network 10.2.0.0
        broadcast 10.2.0.255
        gateway 10.2.0.1
up route del -net 10.2.0.0 netmask 255.255.255.0 dev eth0
up route del -net 10.2.0.0 netmask 255.255.255.0 dev eth1
pre-up ifenslave -E bond0 eth0 eth1
post-down ifconfig eth0 down
post-down ifconfig eth1 down

Regards

--Jan Vitek




Reply to: