In the example for how to create a VLAN, also include an example of

setting the IP address.  While it is documented earlier in rc.conf(5)
that the '.' in the VLAN name becomes a '_' in rc.conf, this may not be
easy to find when just using rc.conf(5) as reference documentation.

MFC after:	1 week
This commit is contained in:
Simon L. B. Nielsen 2010-07-13 16:24:04 +00:00
parent 6cbaa952a3
commit b93a33cded

View file

@ -1151,9 +1151,10 @@ To create a vlan device named
.Li em0.101
on
.Li em0
with the vlan tag 101:
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"
.Ed
.Pp
To create a vlan device named