From owner-freebsd-current@FreeBSD.ORG Tue Apr 22 06:59:12 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D179A106566B for ; Tue, 22 Apr 2008 06:59:12 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by mx1.freebsd.org (Postfix) with ESMTP id A2F198FC28 for ; Tue, 22 Apr 2008 06:59:12 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1312639rvf.43 for ; Mon, 21 Apr 2008 23:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=ZDhxfKKJvcPzbY7xlrFv267l5humlFj2SvtfP5FXsLk=; b=SB2jrleTrO8zVlFU2dvktMhRrorZ5wesKH/u6zUWmgvgKmqd4YxA7fTDBE7jWaPFVqxaUTOYC6xFQ59RkmctQaz3mLrTERUC4sdquotBTKpE0QAK/pbs/RvJiCjO5mTHI3TlxLuqDOrqhm9uVTCI08IFCNDxjM1jGl+FzPx5fHo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=thw9plxHTOKCGd/+SefpamdTc6N/3VUrIramPjU7YE9AZlvhXzgX40PN0l0WNqTu7BYCIcMPsk8u61EwweQRL0vt15NBz6iDji1MYtqul8jekt8wlnE4ySvf+Pz61NvAV1c9+KbbERAEtkBj7q3vOoYHUnbgO/FeSi5ILAiVMM0= Received: by 10.141.171.6 with SMTP id y6mr3824619rvo.85.1208845905626; Mon, 21 Apr 2008 23:31:45 -0700 (PDT) Received: by 10.140.207.1 with HTTP; Mon, 21 Apr 2008 23:31:45 -0700 (PDT) Message-ID: <2e77fc10804212331r1b36e8b9o3eebd38133d3fa69@mail.gmail.com> Date: Tue, 22 Apr 2008 09:31:45 +0300 From: "Niki Denev" Sender: ndenev@gmail.com To: "Ian FREISLICH" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: 214e97e47d5a7b84 Cc: Daniel Eischen , current@freebsd.org Subject: Re: How to use /etc/rc.conf with ifconfig_lagg X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2008 06:59:13 -0000 On Tue, Apr 22, 2008 at 8:44 AM, Ian FREISLICH wrote: > Daniel Eischen wrote: > > I'm trying to get a lagg interface up via standard /etc/rc.conf > > settings, but it just doesn't seem to be working. Here's the > > respective settings: > > > > ifconfig_sis0="up" > > ifconfig_sis1="up" > > ifconfig_sis2="up" > > cloned_interfaces="lagg0" > > ifconfig_lagg0="inet 192.168.3.97 netmask 0xffffff80 \ > > laggproto failover laggport sis2 laggport sis0 laggport sis1" > > > > I've also tried: > > > > ifconfig_lagg0="laggproto failover laggport sis2 laggport sis0 \ > > laggport sis1 inet 192.168.3.97 netmask 0xffffff80" > > > > and without 'inet' as lagg(4) suggests: > > > > ifconfig_lagg0="laggproto failover laggport sis2 laggport sis0 \ > > laggport sis1 192.168.3.97 netmask 0xffffff80" > > > > but nothing seems to work. The lagg0 interface gets created > > and configured with failover and with all the failover ports > > correctly added, but the IP address and netmask do not get > > set. I have to manually set them after the system boots. > > Without manually setting them, I get: > > I've found this too with other cloned interfaces, vlans for me. I > use the following trick to work around the problem of not being > able to set the address and other configuration at the same time: > > ifconfig_vlan1000="vlandev em2 vlan 1000" > ifconfig_vlan1000_alias0="inet 10.0.0.1/24" > > So for your case, I'd do: > > ifconfig_lagg0="laggproto failover laggport sis2 laggport sis0 \ > laggport sis1" > ifconfig_lagg0_alias0="inet 192.168.3.97 netmask 0xffffff80" > > I'm not sure why it doesn't work the way you'd expect to. > > Ian > > -- > Ian Freislich > > You can also use : ifconfig_em0="up" ifconfig_em1="up" ifconfig_lagg0="laggport em0 laggport em1 laggproto failover up" ipv4_addrs_lagg0="192.168.0.1/24" Niki