Skip to content

Instantly share code, notes, and snippets.

@jasonwilliams
Created January 25, 2018 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonwilliams/4b9c52a0e97072694cb0e2764c12a8d6 to your computer and use it in GitHub Desktop.
Save jasonwilliams/4b9c52a0e97072694cb0e2764c12a8d6 to your computer and use it in GitHub Desktop.
VAGRANT_LOG=info vagrant up | portfowarding false
==> default: Configuring and enabling network interfaces...
INFO ssh: SSH is ready!
INFO ssh: Execute: (sudo=false)
INFO guest: Execute capability: configure_networks [#<Vagrant::Machine: default (VagrantPlugins::ProviderVirtualBox::Provider)>, [{:type=>:static, :adapter_ip=>"192.168.193.1", :ip=>"192.168.193.22", :netmask=>"255.255.255.0", :auto_config=>true, :interface=>0}]] (redhat)
INFO ssh: SSH is ready!
INFO ssh: Execute: (sudo=false)
INFO guest: Execute capability: network_scripts_dir [#<Vagrant::Machine: default (VagrantPlugins::ProviderVirtualBox::Provider)>] (redhat)
INFO ssh: SSH is ready!
INFO ssh: Execute: (sudo=false)
INFO guest: Execute capability: network_interfaces [#<Vagrant::Machine: default (VagrantPlugins::ProviderVirtualBox::Provider)>] (redhat)
INFO ssh: Execute: /sbin/ip -o -0 addr | grep -v LOOPBACK | awk '{print $2}' | sed 's/://' (sudo=true)
INFO ssh: Execute: cat /proc/net/dev | grep -E '^[a-z0-9 ]+:' | awk '{print $1}' | sed 's/://' (sudo=true)
INFO ssh: Execute: nmcli (sudo=false)
INFO ssh: Execute: nmcli d show eth0 (sudo=false)
INFO ssh: Execute: nmcli d show eth0 | grep unmanaged (sudo=false)
INFO ssh: Execute: nmcli d disconnect iface 'eth0'
mv -f '/tmp/vagrant-network-entry-eth0-1516895975-0' '/etc/sysconfig/network-scripts/ifcfg-eth0'
(test -f /etc/init.d/NetworkManager && /etc/init.d/NetworkManager restart) || ((systemctl | grep NetworkManager.service) && systemctl restart NetworkManager) (sudo=true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment