From 64a26dae1818359bf61fb8aa9fc766bca6101d51 Mon Sep 17 00:00:00 2001 From: semarj Date: Tue, 7 Feb 2012 17:42:28 -0600 Subject: [PATCH] Update lib/vagrant/guest/redhat.rb --- lib/vagrant/guest/redhat.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/guest/redhat.rb b/lib/vagrant/guest/redhat.rb index cbf20e67d..c098a4ba4 100644 --- a/lib/vagrant/guest/redhat.rb +++ b/lib/vagrant/guest/redhat.rb @@ -39,9 +39,9 @@ module Vagrant # each specifically, we avoid reconfiguring eth0 (the NAT interface) so # SSH never dies. interfaces.each do |interface| - vm.channel.sudo("/sbin/ifconfig eth#{interface} down 2> /dev/null") + vm.channel.sudo("/sbin/ifdown eth#{interface} 2> /dev/null", :error_check => false) vm.channel.sudo("cat /tmp/vagrant-network-entry_#{interface} >> #{network_scripts_dir}/ifcfg-eth#{interface}") - vm.channel.sudo("/sbin/ifconfig eth#{interface} up 2> /dev/null") + vm.channel.sudo("/sbin/ifup eth#{interface} 2> /dev/null") end end