X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 364B7DC15BD for ; Fri, 9 Mar 2012 12:17:24 +0000 (UTC) Received: by lboi15 with SMTP id i15so405082lbo.13 for ; Fri, 09 Mar 2012 04:17:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=FD6zdcRYGwhtshBmXuuEwdqWd6qre0EglLbjOQkO9Xk=; b=WWp0lMMlUKzbleNSeno93TKz933/Yfmwjfmxt3qPn7a5psiMPP3cEJRFlQ4Fvt7Pnp OzFLhK5xhxvIlosu7w71f4NwqrVGHhaxR3YXQrj5t6OQryjrO1hOowDBEIfUgM9T58ZO XA2K3BQTsWKFOy63GHbkImRUf4pw5GPs+KNyPXNZEBkc6GFJAMBUt80RTUUPUAOt8Ge4 tIX8tIxyLmhtLyaL8VnvZNpn5RaL4L7Q95vkei+4rYzbEYTRi04xycAjyAENCyPHDOWW EH99snhlCkbJDmXm60HcJ5BzRuHRRzEbr52hgjX4vzScQok8ctnIOxtMuM16xh0n/LUt NUxg== X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.112.102.8 with SMTP id fk8mr708097lbb.61.1331295443144; Fri, 09 Mar 2012 04:17:23 -0800 (PST) Sender: royger@gmail.com Received: by 10.152.19.226 with HTTP; Fri, 9 Mar 2012 04:17:23 -0800 (PST) In-Reply-To: <20120309114311.4423eff8@ncopa-desktop.nor.wtbts.net> References: <20120309114311.4423eff8@ncopa-desktop.nor.wtbts.net> Date: Fri, 9 Mar 2012 13:17:23 +0100 X-Google-Sender-Auth: TDz5sew7UCu3JFxQF5i0H0LIPX0 Message-ID: Subject: Re: [alpine-devel] configuring bonding and vlans From: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= To: Natanael Copa Cc: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2012/3/9 Natanael Copa : > Hi, > > Yesterday I spent a couple of hours to only configure bonding and vlan > tagging on a box and realized, it is way to difficult and its very easy > to do minor mistakes causing network not to start up at boot. > > So I have now copied the pre-up scripts from debian and done some > adjustments for making it work with busybox. > > This means that you now can configure bond interfaces like: > > iface bond0 inet static > =C2=A0 =C2=A0 =C2=A0 =C2=A0bond-slaves eth0 eth1 > =C2=A0 =C2=A0 =C2=A0 =C2=A0address 192.168.0.1 > =C2=A0 =C2=A0 =C2=A0 =C2=A0netmask 255.255.255.0 > > > And it will "just work". > > > Same with vlans. Just add: > > > iface bond0.64 inet static > =C2=A0 =C2=A0 =C2=A0 =C2=A0address 192.168.64.2 > =C2=A0 =C2=A0 =C2=A0 =C2=A0netmask 255.255.255.0 > > or: > > iface vlan64 inet static > =C2=A0 =C2=A0 =C2=A0 =C2=A0address 192.168.64.2 > =C2=A0 =C2=A0 =C2=A0 =C2=A0netmask 255.255.255.0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0vlan-raw-device bon0 > > > Currently you'll need add the packages vlan and bonding from > edge/testing, but I am considering add this functionality to > alpine-baslayout. It is only a handful scripts that takes very little > space. Do we have to change the setup-interfaces script to change the way bridges are created? > Meanwhile, please test it from the bridge-utils and vlan packages. > > I'll have a look on bridges too while i'm here... > > Thanks! > > -nc > > > --- > Unsubscribe: =C2=A0alpine-devel+unsubscribe@lists.alpinelinux.org > Help: =C2=A0 =C2=A0 =C2=A0 =C2=A0 alpine-devel+help@lists.alpinelinux.org > --- > --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---