Skip to content

Commit 27fc257

Browse files
qubitrenegadeBrandon Schneider
authored and
Brandon Schneider
committed
Update document, include info on DHCP and MAC (iocage#784)
* Update networking document to include information on DHCP and regenerating MAC addresses Signed-off-by: qubitrenegade <[email protected]> * Remove unnecessary props for enabling DHCP * Revert "Remove unnecessary props for enabling DHCP" This reverts commit ee01c86. Signed-off-by: qubitrenegade <[email protected]> * Corrected doc per request
1 parent d8148ad commit 27fc257

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/source/networking.rst

+12
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@ To configure both IPv4 and IPv6:
209209

210210
.. note:: For VNET jails, a default route has to also be specified.
211211

212+
To create a a jail with a DHCP interface add the `dhcp=on` property:
213+
214+
:samp:`# iocage create -r 11.0-RELEASE --name myjail dhcp=on`
215+
216+
The `dhcp=on` property implies creating a VNET virtual network stack and
217+
enabling the Berkley Packet Filter. DHCP cannot work without VNET.
218+
More information about VNET is available in the VNET(9) FreeBSD manual page.
219+
212220
.. index:: Tips for configuring VNET
213221
.. _Tips for Configuring VNET:
214222

@@ -222,3 +230,7 @@ properties:
222230
:samp:`# iocage set ip4_addr=none ip6_addr=none examplejail`
223231

224232
:samp:`# iocage set defaultrouter=none defaultrouter6=none examplejail`
233+
234+
Force iocage to regenerate the MAC and HW address (e.g.: after cloning a jail). This will cause the MAC and HW addresses to be regenerated when the jail is next started.
235+
236+
:samp:`# iocage set vnet0_mac=none examplejail`

0 commit comments

Comments
 (0)