X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 3CAF3DC19B6 for ; Mon, 12 Mar 2012 10:14:42 +0000 (UTC) Received: by wibhr17 with SMTP id hr17so2939996wib.1 for ; Mon, 12 Mar 2012 03:14:41 -0700 (PDT) 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=dKO5dljjWmGDiE6TItGGkcmye8k4MLrEpqeO4t2KW/0=; b=YbAuhEEMhYZjck9vFfda500/lpCVVLbauQy4tf4rVxNlrtyfQBXhPJ1ywOqUi+HdBt hgMkKQlcjNMBEK1JSh/cCX2r54yEmTKmDYE4I7iwFU8JdWEhLYmJcGwxclcum6ZIqIRX ogDwKyyV+7NvYCuKz2hyc08CaIrSpij+fh6VYuUb/+VlYmINq8ya0DcafLLfCKbIMch1 4yJNlSQA9ohp3VktGG+Y9UUFE1a1/uI/x93Be4n57DuCHpSy6ZvN8028JmvZUQxPXsxv 1Nnrynr2Zht/JFJewrDrnB/f9gzwn+746Azt22OTFiRc4oQu3dRdK3fyZyf5kEOKTciO eStw== 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.216.139.156 with SMTP id c28mr6711553wej.57.1331547281431; Mon, 12 Mar 2012 03:14:41 -0700 (PDT) Sender: royger@gmail.com Received: by 10.216.1.9 with HTTP; Mon, 12 Mar 2012 03:14:41 -0700 (PDT) In-Reply-To: <20120312082919.094415d6@ncopa-desktop.nor.wtbts.net> References: <20120309225041.43308a57@alpinelinux.org> <4F5D5A17.2010505@alpinelinux.org> <20120312082919.094415d6@ncopa-desktop.nor.wtbts.net> Date: Mon, 12 Mar 2012 11:14:41 +0100 X-Google-Sender-Auth: n0-ibqpJFq3ruyx1V7ZRYqqvsNc Message-ID: Subject: Re: [alpine-devel] Configuring bridges From: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= To: Natanael Copa Cc: Nathan Angelacos , alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2012/3/12 Natanael Copa : > On Sun, 11 Mar 2012 19:06:15 -0700 > Nathan Angelacos wrote: > >> >> > I was thinking shipping this script and vlan and bonding scripts >> > with alpine-baselayout. However, those will consume a few kb and >> > generate a few extra forks every boot up - even if they are unused >> > - so I think it might make sense to ship them separately. >> > >> >> >> >> I'm in favor of a separate package; Alpine's great because it its >> opt-in, vs opt-out. =C2=A0When I need bonding and vlans and bridges I ne= ed >> them. =C2=A0But the other 90% of the time its nice to have a lean fast >> system. >> >> Oh the other hand, what do you name the package so that someone like >> me remembers to load it when needed? > > for bonding: apk add bonding > for bridge interfaces: apk add bridge > for vlans: apk add vlan > > If you forget: apk search bridge bond vlan > > Btw, I intend to add support for those in setup-interfaces. > > Something like: > > Available interfaces are: eth0 eth1. > Which one do you want to initialize? (or 'done') [eth0] bond0 > Available slaves are: eth0 eth1. > Which slave(s) do you want to add to bond0? (or 'all') [all] all > Ip address for bond0? (or 'dhcp') [dhcp] none > Available interfaces are: bond0. > Which one do you want to initialize? (or 'done') [bond0] bond0.64 > Ip adress for bond0.64 (or 'dhcp') [dhcp] 192.168.0.2/24 > ... > > > Or for bridges: > Available interfaces are: eth0 eth1. > Which one do you want to initialize? (or 'done') [eth0] br0 > Available bridge ports are: eth0 eth1. > Which port(s) do you want to add to br0? (or 'all') [all] eth0 eth1 > ... > > The idea is that if you enter bond[0-9]+ or br[0-9]+ or $IFACE.[0-9]+ > it will create a bond, bridge or vlan interface. I also use bridge[0-9]+ to create bridges, could you add that as a recognized bridge interface also? > The question: > Available interfaces are: eth0 eth1. > Which one do you want to initialize? (or 'done') [eth0] > > Should probably give some hint about it. Ideas how? > > I am thinking maybe: > Which one do you want to initialize? (or '?' for help) And if you input "?", something like: Use the following names to create and configure different types of interfac= es: - bond[0-9]: create and configure a bond interface. - br[0-9] or bridge[0-9]: create and configure a bridge interface. - $IFACE.[0-9]: create and configure a vlan interface. - $IFACE: configure a network interface. Regards, Roger. > > > > -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 ---