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

Re: "Debian" method for bonding & vlan



Le Wednesday 27 February 2008 19:39:10 Rob Heilman, vous avez écrit :
> I have seen/used a couple different ways to setup Ethernet bonding and
> subsequently 802.1q vlans on top of the bond.  Just curious if anyone
> knows the "Debian" way of doing this?  Right now I use entries in
>
> /etc/modules
> 8021q
>
> /etc/modprobe.d/arch/i386
> alias bond0 bonding
> options bond0 mode=1 miimon=100 primary=eth0
>
> /etc/network/interfaces
> auto bond0
> iface bond0 inet static
>         address 192.168.0.77
>         netmask 255.255.255.0
>         network 192.168.0.0
>         broadcast 192.168.0.255
>         gateway 192.168.0.1
>         up /sbin/ifenslave bond0 eth1 eth0
> auto bond0.20
> iface bond0.20 inet static
>         address 192.168.1.77
>         netmask 255.255.255.0
>         network 192.168.1.0
>         broadcast 192.168.1.255
>         pre-up /sbin/vconfig add bond0 20
>
> but I am always open to other ideas.  More importantly I like to stay in
> the Debian mold as I can for supportability and to avoid surprises
> during upgrades.  If there is a Debian supported method of accomplishing
> the same thing please share.
>
> Thanks.
>
> -rh

All of this seems good to me.
Personaly, I prefer to create a new file /etc/modprobe.d/bonding for the 
bonding module configuration.

Considering VLans, I must apology, I have never used Vlans on my servers.

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: