This commit refactors the freebsd networking to: 1. Use predictable network naming 2. Properly handle DHCP vs static networks on up and reload [GH-5852] 3. Perform all networking configuration in a single command to prevent partial configuration.
7 lines
200 B
Plaintext
7 lines
200 B
Plaintext
#VAGRANT-BEGIN
|
|
ifconfig_<%= options[:device] %>="inet <%= options[:ip] %> netmask <%= options[:netmask] %>"
|
|
<% if options[:gateway] %>
|
|
default_router="<%= options[:gateway] %>"
|
|
<% end %>
|
|
#VAGRANT-END
|