Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2008 09:31:45 +0300
From:      "Niki Denev" <nike_d@cytexbg.com>
To:        "Ian FREISLICH" <ianf@clue.co.za>
Cc:        Daniel Eischen <deischen@freebsd.org>, current@freebsd.org
Subject:   Re: How to use /etc/rc.conf with ifconfig_lagg
Message-ID:  <2e77fc10804212331r1b36e8b9o3eebd38133d3fa69@mail.gmail.com>
In-Reply-To: <E1JoBJ5-000Gar-1K@clue.co.za>
References:  <deischen@freebsd.org> <Pine.GSO.4.64.0804212327170.23697@sea.ntplx.net> <E1JoBJ5-000Gar-1K@clue.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 22, 2008 at 8:44 AM, Ian FREISLICH <ianf@clue.co.za> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2e77fc10804212331r1b36e8b9o3eebd38133d3fa69>