Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.




From the vagrantfile


"private_network",

https://www.vagrantup.com/docs/networking/private_network.html       ( for VirtualBox:   https://www.vagrantup.com/docs/virtualbox/networking.html )

# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"

internal network only ( between VM only) selected by name

vqfx.vm.network 'private_network', auto_config: false, nic_type: '82540EM', virtualbox__intnet: "#{UUID}_reserved-bridge"

Host only ( VM to VM and host ), selected by ip address

vqfx.vm.network 'private_network', auto_config: false, nic_type: '82540EM', ip: "1#{seg_id}.0.1.1#{seg_id}"


"public_network"

https://www.vagrantup.com/docs/networking/public_network.html

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"

Static IP address:

config.vm.network "public_network", ip: "192.168.0.17"

Chose a bridge:

config.vm.network "public_network", bridge: "Intel(R) Ethernet Connection I219-LM"


List the bridged interfaces:   vboxmanage list bridgedifs

Image Added


If the bridge is not define it will ask 

Image Added