Merge pull request #947 from justinlynn/add_dhcp_default_route_option
add workaround for ubuntu precise not properly loading routes from dhcp
This commit is contained in:
commit
268b13b799
|
@ -4,5 +4,8 @@ auto eth<%= options[:interface] %>
|
||||||
iface eth<%= options[:interface] %> inet dhcp
|
iface eth<%= options[:interface] %> inet dhcp
|
||||||
<% if !options[:use_dhcp_assigned_default_route] %>
|
<% if !options[:use_dhcp_assigned_default_route] %>
|
||||||
post-up route del default dev $IFACE
|
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 %>
|
<% end %>
|
||||||
#VAGRANT-END
|
#VAGRANT-END
|
||||||
|
|
Loading…
Reference in New Issue