diff --git a/plugins/guests/redhat/cap/configure_networks.rb b/plugins/guests/redhat/cap/configure_networks.rb index 6cbc9ec17..d96e27e20 100644 --- a/plugins/guests/redhat/cap/configure_networks.rb +++ b/plugins/guests/redhat/cap/configure_networks.rb @@ -43,13 +43,18 @@ module VagrantPlugins /sbin/ifdown '#{network[:device]}' || true # Move new config into place - mv '#{remote_path}' '#{final_path}' + mv -f '#{remote_path}' '#{final_path}' # Bring the interface up ARPCHECK=no /sbin/ifup '#{network[:device]}' EOH end + commands << <<-EOH.gsub(/^ {14}/, '') + # Restart network + service network restart + EOH + comm.sudo(commands.join("\n")) end end