Skip to content

Instantly share code, notes, and snippets.

@HowellBP
Created June 12, 2018 20:59
Show Gist options
  • Save HowellBP/ed781d188d7fc54353a6a5abaffa0ed1 to your computer and use it in GitHub Desktop.
Save HowellBP/ed781d188d7fc54353a6a5abaffa0ed1 to your computer and use it in GitHub Desktop.
vagrant up error during ifup/ifdown
==> minion1: Configuring and enabling network interfaces...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
/sbin/ifdown 'eth1' || true
/sbin/ip addr flush dev 'eth1'
# Remove any previous network modifications from the interfaces file
sed -e '/^#VAGRANT-BEGIN/,$ d' /etc/network/interfaces > /tmp/vagrant-network-interfaces.pre
sed -ne '/^#VAGRANT-END/,$ p' /etc/network/interfaces | tac | sed -e '/^#VAGRANT-END/,$ d' | tac > /tmp/vagrant-network-interfaces.post
cat \
/tmp/vagrant-network-interfaces.pre \
/tmp/vagrant-network-entry \
/tmp/vagrant-network-interfaces.post \
> /etc/network/interfaces
rm -f /tmp/vagrant-network-interfaces.pre
rm -f /tmp/vagrant-network-entry
rm -f /tmp/vagrant-network-interfaces.post
/sbin/ifup 'eth1'
Stdout from the command:
Stderr from the command:
bash: line 4: /sbin/ifdown: No such file or directory
bash: line 20: /sbin/ifup: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment