conf/167648: Update rc.conf man page to use "new"
ipv4_addrs_<interface> for VLANs
Jeff Kletsky
freebsd at wagsky.com
Sun May 6 18:30:13 UTC 2012
>Number: 167648
>Category: conf
>Synopsis: Update rc.conf man page to use "new" ipv4_addrs_<interface> for VLANs
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun May 06 18:30:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Jeff Kletsky
>Release: 9.0-STABLE
>Organization:
>Environment:
FreeBSD port16.pn.wagsky.com 9.0-STABLE FreeBSD 9.0-STABLE #0: Mon Apr 23 08:07:43 PDT 2012 root at port16.pn.wagsky.com:/usr/obj/usr/src/sys/JMK.2012-04-23 i386
>Description:
The "new" method for specifying IPv4 addresses ipv4_addrs_<interface> is discussed in the rc.conf(5) man page. It also indicates that the "old" method of using ifconfig_<interface>_alias<n> is deprecated.
However, the vlan-related section still uses the "old" method:
To create a vlan device named em0.101 on em0 with the vlan
tag 101 and the optional the IPv4 address 192.0.2.1/24:
vlans_em0="101"
ifconfig_em0_101="inet 192.0.2.1/24"
Suggest changing this to
To create a vlan device named em0.101 on em0 with the vlan
tag 101 and the optional the IPv4 address 192.0.2.1/24:
vlans_em0="101"
ipv4_addrs_em0_101="inet 192.0.2.1/24"
to improve clarity and reinforce the "new" method of setting IPv4 addresses.
>How-To-Repeat:
>Fix:
Relative to $FreeBSD: src/share/man/man5/rc.conf.5,v 1.398.2.7 2012/04/26 20:11:57 gjb Exp $
--- /usr/src/share/man/man5/rc.conf.5 2012-04-28 07:28:40.000000000 -0700
+++ rc.conf.5 2012-05-06 11:21:01.000000000 -0700
@@ -1191,7 +1191,7 @@
with the vlan tag 101 and the optional the IPv4 address 192.0.2.1/24:
.Bd -literal
vlans_em0="101"
-ifconfig_em0_101="inet 192.0.2.1/24"
+ipv4_addrs_em0_101="inet 192.0.2.1/24"
.Ed
.Pp
To create a vlan device named
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list