IP address of the virtual machine

36 views
Skip to first unread message

Sorcerer Stone

unread,
Jul 22, 2019, 3:41:55 PM7/22/19
to Vagrant
Hello,
I am new to Vagrant and I am confuse about the role of Vagrant play in my setup. I am trying to build a project pulled from Github. My OS is Win10Pro but with Hyper-V disabled. The Vagrantfile for this project pulled Ubuntu/xenial64 and docker. I enabled the private_network option and assigned an IP address: 192.168.33.10.
The install document said I have to find out the IP address of the Virtual Machine using ifconfig on the host machine and enter the VM IP address info into a config file.
After successfully executing Vagrant Up, I SSH into Ubuntu and issue the ifconfig command.
I have 5 IP addresses.
Address for:
"br-cc7b813b5e4d Link encap:Ethernet": 172.18.0.1
"docker0   Link encap:Ethernet": 172.17.0.1
"enp0s3    Link encap:Ethernet": 10.0.2.15
"enp0s8    Link encap:Ethernet": 192.168.33.10
"lo        Link encap:Local Loopback": 127.0.0.1

I ping all these addresses. They all responded.
Docker is not the VM and I assigned my local private network IP address. So, beside these 2 IP addresses, which of the other 3 are the IP address for the VM?
What is “br-cc7b813b5e4d”?

Thanks in advance.
S

Alvaro Miranda Aguilera

unread,
Aug 5, 2019, 11:45:53 AM8/5/19
to vagra...@googlegroups.com
something either in the project you are using like an script is configuring the vm.

inside the VM, docker has been installed, thats why you see docker0.

you will have to search your scripts to see if there is anything creating the bridge.

you can try like


# this is to delete the VM
vagrant destroy

# this is to create the VM without running any script.
vagrant up --no-provision

then ssh and check the networks



--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/3a27036e-13cb-43b6-a56e-add2c5c38974%40googlegroups.com.


--
Alvaro

Dennis Chang

unread,
Aug 6, 2019, 8:56:00 AM8/6/19
to Vagrant
br-cc7b813b5e4d is the host end (inside your VM) of a “virtual Ethernet” (veth) pair. This veth is connected to the docker0 bridge. The other side of this veth is the Ethernet interface inside your docker container.

10.2.0.15 is a NAT interface (all Vagrant VM have this interface) inside your VM.

192.168.33.10 is the private network interface that you defined in your Vagrantfile, inside your VM.

120.0.0.1 is the loopback interface, inside your VM.
Reply all
Reply to author
Forward
0 new messages