Date: Wed, 29 Jun 2022 08:19:31 GMT From: Mateusz Piotrowski <0mp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: a64829040fc0 - stable/13 - ifconfig.8: Simplify examples by using canonical parameters Message-ID: <202206290819.25T8JV4w005401@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by 0mp (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=a64829040fc0ccce5bc58f43f9df2bc84c39abcf commit a64829040fc0ccce5bc58f43f9df2bc84c39abcf Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-03-31 09:54:06 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2022-06-29 08:15:12 +0000 ifconfig.8: Simplify examples by using canonical parameters Also, use Bd instead of Dl for multi line examples. MFC after: 2 weeks (cherry picked from commit 19ac0bc5c139cdd00b71e1774ef327fa79197c2a) --- sbin/ifconfig/ifconfig.8 | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8 index 2a76b9bc03b2..313abfd0ad7e 100644 --- a/sbin/ifconfig/ifconfig.8 +++ b/sbin/ifconfig/ifconfig.8 @@ -3091,12 +3091,8 @@ Add the IPv4 address with the CIDR network prefix .Li /28 , to the interface -.Li em0 , -using -.Cm add -as a synonym for the canonical form of the option -.Cm alias : -.Dl # ifconfig em0 inet 192.0.2.45/28 add +.Li em0 : +.Dl # ifconfig em0 inet 192.0.2.45/28 alias .Pp Remove the IPv4 address .Li 192.0.2.45 @@ -3117,17 +3113,15 @@ Note that lower case hexadecimal IPv6 addresses are acceptable. Remove the IPv6 address added in the above example, using the .Li / -character as shorthand for the network prefix, -and using -.Cm delete -as a synonym for the canonical form of the option -.Fl alias : -.Dl # ifconfig em0 inet6 2001:db8:bdbd::123/48 delete +character as shorthand for the network prefix: +.Dl # ifconfig em0 inet6 2001:db8:bdbd::123/48 -alias .Pp Configure a single CARP redundant address on igb0, and then switch it to be master: -.Dl # ifconfig igb0 vhid 1 10.0.0.1/24 pass foobar up -.Dl # ifconfig igb0 vhid 1 state master +.Bd -literal -offset indent -compact +# ifconfig igb0 vhid 1 10.0.0.1/24 pass foobar up +# ifconfig igb0 vhid 1 state master +.Ed .Pp Configure the interface .Li xl0 ,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206290819.25T8JV4w005401>