vaguerent/templates/guests/debian/network_dhcp.erb
Mitchell Hashimoto 268b13b799 Merge pull request #947 from justinlynn/add_dhcp_default_route_option
add workaround for ubuntu precise not properly loading routes from dhcp
2012-05-25 08:42:52 -07:00

12 lines
409 B
Plaintext

#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
auto eth<%= options[:interface] %>
iface eth<%= options[:interface] %> inet dhcp
<% if !options[:use_dhcp_assigned_default_route] %>
post-up route del default dev $IFACE
<% else %>
# needed as some newer distribution do not properly load routes, ubuntu 12.04
post-up dhclient $IFACE
<% end %>
#VAGRANT-END