From nobody Thu Jun 13 03:33:32 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W07L26FxGz5MBJM for ; Thu, 13 Jun 2024 03:33:46 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W07L20x03z47Jg for ; Thu, 13 Jun 2024 03:33:46 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-52c82101407so1030436e87.3 for ; Wed, 12 Jun 2024 20:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718249624; x=1718854424; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tdK65FQCO3EmMOXdKJUMt9fI5FuR+fZpL0ZIVEdlr1Y=; b=Rd8XNmrQpnNEI5AYjRcCPqqlNZZqCPlDSTodsa++x7gl4prBtTnGvHK7bOZnuwZ6Do dFP4epeMv/8izKt+6qbB0uHcEQQiVzNFqFTp3HNyRI1js5Bn6S8o8jE3aE1l2Or8wDDk 9EEBFo7hvAYoGGjq2J9UFj2vQ4ld9sb6pD0Ln/EhgxYOwVbyOp3VgCeMldLg2VgqNCOJ 5vQEaPI38p4plxmZMQK5+9TzE3SlFwK0nLtKtFR6Is8tMbcBVOexKCt7UjLe6QK2K93X NZJa056BqezXfPG7cdUH6EiUaZLJtBQiD9ziGdOmp5K1vbcKd1bDkQuPTqZyj4qpMx1i K70A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718249624; x=1718854424; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tdK65FQCO3EmMOXdKJUMt9fI5FuR+fZpL0ZIVEdlr1Y=; b=o71eRdtkYK8sv/z7bu+RQzysZgBbGLUnHl6RZqHk4DMJyhytx8mOmTZbM/FLC25Z6N o6XhkOOIWR8JdKGEzpncYI0cuwQVJrF7rSN4vsnO/Oy3BrBfNLI/uQNSyDyFd6MC9MC9 mUUCN42Nvgpj7IQbJuc/9e5ngl2AHOciAlrG8HUqsMvmvD+V+3Fpt6txkZ8ITgsoU1xV 7JHesJNNxSEl0xQsXARt0n+2hCOAJqCmfzc6jI28HGxRwnw3vgAX8LEilfjDFWwt4Ag9 R08uqRqkqj1cv6yMBKBHlmYKh6EOiz1K9aFj+/FGBSGmCp5ZDhsrCxLs08bPg9MJHA4B wovA== X-Gm-Message-State: AOJu0Ywa2EeS4bWrXJiR6imUrtbKOphy9sL1ekYfvgOKc6b1sQ9WCOlp vnm/adCdMbAXUblmnw+vTyZJKo67kbtiQLmi5pivj2niirdHiFoSOySUFHg5/qDKqLRAumjgbLs neh2gkYWuiDDA/0dh9ociKBrsEQ== X-Google-Smtp-Source: AGHT+IG6ezdflGAMRchZbz+M3iMuR1lbavFzdVRTngWxq2KHI0+ZMW9OyKxD3biirOJFjgHw+vkurrLy026GlFulQdM= X-Received: by 2002:a19:8c41:0:b0:52b:be6b:d16a with SMTP id 2adb3069b0e04-52c9a3e3b86mr2182549e87.31.1718249623858; Wed, 12 Jun 2024 20:33:43 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Paul Procacci Date: Wed, 12 Jun 2024 23:33:32 -0400 Message-ID: Subject: Re: Configuring lagg for fallback mode To: Steven Friedrich Cc: FreeBSD Questions Content-Type: multipart/alternative; boundary="000000000000773b6f061abd2a9f" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4W07L20x03z47Jg --000000000000773b6f061abd2a9f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jun 12, 2024 at 10:29=E2=80=AFPM Steven Friedrich < freebsdlouisville@gmail.com> wrote: > I'm referencing the Handbook, Example 39. Failover Mode > > I have two realtek ethernets. > > re0 is 1G on motherboard, re1 is 2.5G on pcie card. > > Here's my /etc/rc.conf.local: > > ifconfig_re0=3D"up ether 78:2d:7e:1e:35:c4" > ifconfig_re1=3D"DHCP" > cloned_interfaces=3D"lagg0" > ifconfig_lagg0=3D"laggproto failover laggport re1 laggport re0" > > Here's output of ifconfig: > > re0: flags=3D1008843 met= ric > 0 mtu 1500 > options=3D60251b > > ether 78:2d:7e:1e:35:c4 > hwaddr 00:68:eb:cc:7b:5b > media: Ethernet autoselect (1000baseT ) > status: active > nd6 options=3D29 > re1: flags=3D1008843 met= ric > 0 mtu 1500 > options=3D60251b > > ether 78:2d:7e:1e:35:c4 > inet 192.168.1.57 netmask 0xffffff00 broadcast 192.168.1.255 > media: Ethernet autoselect (2500Base-T ) > status: active > nd6 options=3D29 > lo0: flags=3D1008049 metric 0 mtu > 16384 > options=3D680003 > inet 127.0.0.1 netmask 0xff000000 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > groups: lo > nd6 options=3D21 > lagg0: flags=3D1008843 > metric 0 mtu 1500 > options=3D60251b > > ether 78:2d:7e:1e:35:c4 > hwaddr 00:00:00:00:00:00 > laggproto failover lagghash l2,l3,l4 > laggport: re0 flags=3D0<> > laggport: re1 flags=3D5 > groups: lagg > media: Ethernet autoselect > status: active > nd6 options=3D29 > > > The network is not up. What did I do wrong? re1 got an address from > DHCP... re0 and lagg0 have cloned re1's MAC address... > > DHCP should be ran on the lagg and not one of the members. There may also be some dependance on the switch side of things too (i.e. maybe it's expecting lacp instead). -- something to double check. ~Paul --=20 __________________ :(){ :|:& };: --000000000000773b6f061abd2a9f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Jun 12, 2024 at 10:= 29=E2=80=AFPM Steven Friedrich <freebsdlouisville@gmail.com> wrote:
=20 =20 =20

I'm referencing the Handbook, Example 39. Failover Mode

I have two realtek ethernets.

re0 is 1G on motherboard, re1 is 2.5G on pcie card.

Here's my /etc/rc.conf.local:

ifconfig_re0=3D"up ether 78:2d:7e:1e:35:c4"
ifconfig_re1=3D"DHCP"
cloned_interfaces=3D"lagg0"
ifconfig_lagg0=3D"laggproto failover laggport re1 laggport re0&q= uot;

Here's output of ifconfig:

re0: flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP>= ; metric 0 mtu 1500
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0options=3D60251b<RXCSUM,TXCSUM= ,VLAN_MTU,VLAN_HWTAGGING,TSO4,LRO,WOL_MAGIC,RXCSUM_IPV6,TXCSUM_IPV6>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0ether 78:2d:7e:1e:35:c4
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0hwaddr 00:68:eb:cc:7b:5b=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0media: Ethernet autoselect = (1000baseT <full-duplex>)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status: active
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0nd6 options=3D29<PERFORM= NUD,IFDISABLED,AUTO_LINKLOCAL>
re1: flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP>= ; metric 0 mtu 1500
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0options=3D60251b<RXCSUM,TXCSUM= ,VLAN_MTU,VLAN_HWTAGGING,TSO4,LRO,WOL_MAGIC,RXCSUM_IPV6,TXCSUM_IPV6>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0ether 78:2d:7e:1e:35:c4
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0inet 192.168.1.57 netmask 0= xffffff00 broadcast 192.168.1.255
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0media: Ethernet autoselect = (2500Base-T <full-duplex>)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status: active
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0nd6 options=3D29<PERFORM= NUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=3D1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0options=3D680003<RXCSUM,TXCSUM= ,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0inet 127.0.0.1 netmask 0xff= 000000
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0inet6 ::1 prefixlen 128
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0inet6 fe80::1%lo0 pr= efixlen 64 scopeid 0x3
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0groups: lo
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0nd6 options=3D21<PERFORM= NUD,AUTO_LINKLOCAL>
lagg0: flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP>= ; metric 0 mtu 1500
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0options=3D60251b<RXCSUM,TXCSUM= ,VLAN_MTU,VLAN_HWTAGGING,TSO4,LRO,WOL_MAGIC,RXCSUM_IPV6,TXCSUM_IPV6>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0ether 78:2d:7e:1e:35:c4
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0hwaddr 00:00:00:00:00:00
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0laggproto failover lagghash= l2,l3,l4
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0laggport: re0 flags=3D0<= >
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0laggport: re1 flags=3D5<= MASTER,ACTIVE>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0groups: lagg
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0media: Ethernet autoselect
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status: active
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0nd6 options=3D29<PERFORM= NUD,IFDISABLED,AUTO_LINKLOCAL>


The network is not up.=C2=A0 What did I do wrong?=C2=A0 re1 got an a= ddress from DHCP...=C2=A0 re0 and lagg0 have cloned re1's MAC address...=


DHCP should be ran on the lagg a= nd not one of the members.
There may also be some dependance = on the switch side of things too (i.e. maybe it's expecting lacp instea= d). -- something to double check.

~Paul
--
__________________

:(){ :|:& = };:
--000000000000773b6f061abd2a9f--