git: fe01817876a0 - main - Add an example using /etc/rc.conf syntax
Date: Wed, 15 Feb 2023 11:39:35 UTC
The branch main has been updated by phk: URL: https://cgit.FreeBSD.org/src/commit/?id=fe01817876a08309becc9ba4f46187a613845049 commit fe01817876a08309becc9ba4f46187a613845049 Author: Poul-Henning Kamp <phk@FreeBSD.org> AuthorDate: 2023-02-15 11:39:15 +0000 Commit: Poul-Henning Kamp <phk@FreeBSD.org> CommitDate: 2023-02-15 11:39:15 +0000 Add an example using /etc/rc.conf syntax --- share/man/man4/lagg.4 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/share/man/man4/lagg.4 b/share/man/man4/lagg.4 index b46566120050..f3c7d9a5f713 100644 --- a/share/man/man4/lagg.4 +++ b/share/man/man4/lagg.4 @@ -214,6 +214,15 @@ The following example shows how to create an infiniband failover interface. # ifconfig lagg0 laggproto failover laggport ib0 laggport ib1 \e 1.1.1.1 netmask 255.255.255.0 .Ed +.Pp +Configure two ethernets for failover and static IP in /etc/rc.conf: +.Bd -literal -offset indent +cloned_interfaces="lagg0" +ifconfig_lagg0="laggproto failover laggport bge0 laggport bge1 \e + 10.1.29.21/24" +ifconfig_bge0="up" +ifconfig_bge1="up" +.Ed .Sh SEE ALSO .Xr ng_one2many 4 , .Xr ifconfig 8 ,