From nobody Mon Jan 16 19:00:27 2023 X-Original-To: dev-commits-src-main@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 4NwhDW3lB8z2t5S9; Mon, 16 Jan 2023 19:00:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NwhDW358Bz3m7W; Mon, 16 Jan 2023 19:00:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673895627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e+6B4UZrziaz6WFxViTa7jcYr25cc7XnrRRhE22s9QU=; b=W1SltXwjIEIxAhFWa3E5I59q0gHhYMsC8gIRvh+VfIiRRc+WEr33HSAeATems5uLW43CDN 6cxfI00orFaEVKrIId1C+HsryLteLTtCfXx8IZVC1ojBZ1jtBDphsto7dSm4Ku8R+cpimt cFdHlK1j7fRdF/Qkcr7FDywsvHI9ofHHLe/Lv/a6UFGWqyZkkuj0ZLQNIWuKlRjH00iDtY YM9gJBHCzZys6vb4DLc30fW/GW0j2UFHfbAdC+Spkss29a50QmICCoi/QfNUfsnDpThF/l fWZosa6Nhhhm1y/RKEVvvYArISkYnO1iur+qDGeYpZocipG6Flr5WvmHXvQhCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673895627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e+6B4UZrziaz6WFxViTa7jcYr25cc7XnrRRhE22s9QU=; b=GykDDb5k1yUls+2uHFWB6jzlGXdXGsAPUx+yoNuoyVXLwbkIBxfkMyZOxwjo0r0+qT565x YnO3WHdfsgI5ePTJtlghufT0lxRdkJxh0LvFwFbjK2enogUXjUTuj8x1oSNzsfrs3wgOJv ehhNfPFtR7gaJTiomKnbtm/cQXZeM6SjgrU5w+JQbr5jL26vWz8AJmoBK7PMyRa5P1h9+5 ryXJd6pAWRNXfMmf8L/dPrDhzg3GgwLcL3TjZ3G1R9DMPWlNPH12Eg8iEeOesP+N0Dmpl8 /nivDUAcaJ36BsYFUg7zjoWEoPzDoM00b5Jv6eJiSWFQoEBliUYqlxNx3lxmRg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673895627; a=rsa-sha256; cv=none; b=XLqfotEMkUvJTUfFkjNt4hMXLYJiceVGawMurzUTzAT6MVSuuQY9Kjxx7y7INSOGct1Bhs Kpd19RqV2Nd5ybOWz/ZalxbEa8FYiKoGwfSvDAkmsXupJ2TEAbTOUhT2Rr6v1pMhjpk8bq Bj88yLzWNlRGnFbTJ7rlWfwcHWnaP659PrkS58xXINya9TFzXpwc700BgtslNISI4bUAF+ TVviaMgDTYmxAbNrfmUD3vSCDk2K3NEsVtL+FuRTtgvE7advEKWRIMzxNj9JLZKJzTrNqj 7PW07z1II+mgOQIEzNPEobUhPpuOWz1BZuICbJtcHQ1OjX6fhfC/m7mqGsuDFA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NwhDW27bDz1Gvl; Mon, 16 Jan 2023 19:00:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30GJ0Rjd031138; Mon, 16 Jan 2023 19:00:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30GJ0RDJ031137; Mon, 16 Jan 2023 19:00:27 GMT (envelope-from git) Date: Mon, 16 Jan 2023 19:00:27 GMT Message-Id: <202301161900.30GJ0RDJ031137@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ceri Davies Subject: git: 4a312c21faeb - main - lagg.4: update wireless example, document laggtype List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ceri X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4a312c21faebdbe68c7f99ad17130188e1e23657 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by ceri (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=4a312c21faebdbe68c7f99ad17130188e1e23657 commit 4a312c21faebdbe68c7f99ad17130188e1e23657 Author: Ceri Davies AuthorDate: 2023-01-16 18:53:30 +0000 Commit: Ceri Davies CommitDate: 2023-01-16 18:56:13 +0000 lagg.4: update wireless example, document laggtype The wireless example in lagg(4)'s manpage no longer works, so update. laggtype is not documented in the manpage other than in the example, so add a paragraph about it. While here, move section on rc.conf somewhere it sits more logically. Reviewed by: pauamma Differential Revision: https://reviews.freebsd.org/D31315 --- share/man/man4/lagg.4 | 51 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/share/man/man4/lagg.4 b/share/man/man4/lagg.4 index f7d8e1c5e1f5..b46566120050 100644 --- a/share/man/man4/lagg.4 +++ b/share/man/man4/lagg.4 @@ -16,7 +16,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 21, 2020 +.Dd January 16, 2023 .Dt LAGG 4 .Os .Sh NAME @@ -43,6 +43,18 @@ interface allows aggregation of multiple network interfaces as one virtual .Nm interface for the purpose of providing fault-tolerance and high-speed links. .Pp +Each +.Nm +interface is created at runtime using interface cloning. +This is +most easily done with the +.Xr ifconfig 8 +.Cm create +command or using the +.Va cloned_interfaces +variable in +.Xr rc.conf 5 . +.Pp A .Nm interface can be created using the @@ -79,7 +91,7 @@ the next active port is used. The first interface added is the master port; any interfaces added after that are used as failover devices. .Pp -By default, received traffic is only accepted when they are received +By default, received traffic is only accepted when it is received through the active port. This constraint can be relaxed by setting the .Va net.link.lagg.failover_rx_all @@ -123,18 +135,6 @@ disabling the interface itself. .El .Pp -Each -.Nm -interface is created at runtime using interface cloning. -This is -most easily done with the -.Xr ifconfig 8 -.Cm create -command or using the -.Va cloned_interfaces -variable in -.Xr rc.conf 5 . -.Pp The MTU of the first interface to be added is used as the lagg MTU. All additional interfaces are required to have exactly the same value. .Pp @@ -152,6 +152,17 @@ flag. The default for new interfaces is set via the .Va net.link.lagg.default_use_flowid .Xr sysctl 8 . +.Pp +When creating a +.Nm +interface, the +.Ic laggtype +can be specified as either +.Cm ethernet +or +.Cm infiniband . +If neither is specified then the default is +.Cm ethernet . .Sh EXAMPLES Create a link aggregation using LACP with two .Xr bge 4 @@ -182,16 +193,18 @@ between wired and wireless networks using two network devices. Whenever the wired master interface is unplugged, the wireless failover device will be used: .Bd -literal -offset indent -# ifconfig em0 up -# ifconfig ath0 ether 00:11:22:33:44:55 -# ifconfig create wlan0 wlandev ath0 ssid my_net up +# ifconfig em0 ether 00:11:22:33:44:55 up +# ifconfig wlan0 create wlandev ath0 ssid my_net up # ifconfig lagg0 create # ifconfig lagg0 laggproto failover laggport em0 laggport wlan0 \e 192.168.1.1 netmask 255.255.255.0 .Ed .Pp -(Note the mac address of the wireless device is forced to match the wired -device as a workaround.) +(Note the MAC address of the wired device is forced to match that of the +wireless device, +.Sq 00:11:22:33:44:55 +in this example, as some common wireless devices will not allow MAC +addresses to be changed.) .Pp The following example shows how to create an infiniband failover interface. .Bd -literal -offset indent