Sometimes, ifdown is not enough.

This commit is contained in:
Mathieu Lecarme 2013-11-26 13:40:50 +01:00
parent c5018c5e01
commit 09a86bd70a
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ module VagrantPlugins
# SSH never dies.
interfaces.each do |interface|
comm.sudo("/sbin/ifdown eth#{interface} 2> /dev/null")
comm.sudo("/sbin/ip addr flush dev eth#{interface} 2> /dev/null")
end
comm.sudo("cat /tmp/vagrant-network-entry >> /etc/network/interfaces")