Sometimes, ifdown is not enough.
This commit is contained in:
parent
c5018c5e01
commit
09a86bd70a
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue