From 736ed6b5900c7f6283f81af5135458bf918fd54d Mon Sep 17 00:00:00 2001 From: Justin Lynn Date: Thu, 24 May 2012 11:53:46 -0700 Subject: [PATCH] add workaround for ubuntu precise not properly loading routes --- templates/guests/debian/network_dhcp.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/guests/debian/network_dhcp.erb b/templates/guests/debian/network_dhcp.erb index 24cc1e944..71923a13f 100644 --- a/templates/guests/debian/network_dhcp.erb +++ b/templates/guests/debian/network_dhcp.erb @@ -4,5 +4,8 @@ auto eth<%= options[:interface] %> iface eth<%= options[:interface] %> inet dhcp <% unless 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