Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 2023 07:43:01 -0600
From:      Mike Karels <mike@karels.net>
To:        Poul-Henning Kamp <phk@FreeBSD.org>
Cc:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: fe01817876a0 - main - Add an example using /etc/rc.conf syntax
Message-ID:  <ACC11D70-9246-4633-8B6E-73F65C3017F7@karels.net>
In-Reply-To: <202302151139.31FBdZ2J060586@gitrepo.freebsd.org>
References:  <202302151139.31FBdZ2J060586@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15 Feb 2023, at 5:39, Poul-Henning Kamp wrote:

> The branch main has been updated by phk:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=3Dfe01817876a08309becc9ba4=
f46187a613845049
>
> 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 infin=
iband 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:

That should be =E2=80=9C.Pa /etc/rc.conf :=E2=80=9D.

You should probably also add rc.conf(5) to the SEE ALSO section.

		Mike

> +.Bd -literal -offset indent
> +cloned_interfaces=3D"lagg0"
> +ifconfig_lagg0=3D"laggproto failover laggport bge0 laggport bge1 \e
> +	10.1.29.21/24"
> +ifconfig_bge0=3D"up"
> +ifconfig_bge1=3D"up"
> +.Ed
>  .Sh SEE ALSO
>  .Xr ng_one2many 4 ,
>  .Xr ifconfig 8 ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ACC11D70-9246-4633-8B6E-73F65C3017F7>