From b93a33cded4a4e0ce1eb9f7b1b43b66bb49fd8a6 Mon Sep 17 00:00:00 2001 From: "Simon L. B. Nielsen" Date: Tue, 13 Jul 2010 16:24:04 +0000 Subject: [PATCH] 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 --- share/man/man5/rc.conf.5 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5 index 734e7a375d7..93c0287ed64 100644 --- a/share/man/man5/rc.conf.5 +++ b/share/man/man5/rc.conf.5 @@ -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