From 535bda2a4e14742f4bb948ed869a3cf749c553ae Mon Sep 17 00:00:00 2001 From: semarj Date: Tue, 31 Jan 2012 22:36:38 -0600 Subject: [PATCH] properly restart the interface. Was failing with /sbin/ifup --- lib/vagrant/guest/redhat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/guest/redhat.rb b/lib/vagrant/guest/redhat.rb index a238141d7..cbf20e67d 100644 --- a/lib/vagrant/guest/redhat.rb +++ b/lib/vagrant/guest/redhat.rb @@ -41,7 +41,7 @@ module Vagrant interfaces.each do |interface| vm.channel.sudo("/sbin/ifconfig eth#{interface} down 2> /dev/null") vm.channel.sudo("cat /tmp/vagrant-network-entry_#{interface} >> #{network_scripts_dir}/ifcfg-eth#{interface}") - vm.channel.sudo("/sbin/ifup eth#{interface}") + vm.channel.sudo("/sbin/ifconfig eth#{interface} up 2> /dev/null") end end