Hello.

I'm trying to use this network settings so I can access the box from my 
desktop PC (or from my laptop if I need to).

config.vm.network "public_network",
bridge: 'eth0',
ip: "192.168.0.1"

This works only when the NIC uplink is On (i.e. notebook turned On) .

Currently using Vagrant 1.7.4 on Linux Mint (LMDE2)  with the VirtualBox 
provider.

The idea is to make the vagrant box act as a physical server on the 
network, but not requiring the network "to be up" to do it so, also to move 
the virtual server box to the laptop if I need to in a practical way.

I think it could be something OS related, but haven't found a way to make 
this work and I'm out of ideas on how to look for it.

Vagrant eth1: 192.168.0.1
Desktop eth0: 192.168.0.2
Laptop (optional) eth0: 192.168.0.3

I'm only able to ping/curl the box when the network uplink is On.

Running all these commands from the desktop with the laptop suspended:

juan@shadow ~ $ curl dev
curl: (7) Failed to connect to dev port 80: Connection timed out

juan@shadow ~ $  ping dev
PING dev (192.168.0.1) 56(84) bytes of data.
>From shadow (192.168.0.2) icmp_seq=26 Destination Host Unreachable
>From shadow (192.168.0.2) icmp_seq=27 Destination Host Unreachable
>From shadow (192.168.0.2) icmp_seq=28 Destination Host Unreachable


[...] laptop waked up [...]


juan@shadow ~ $  sudo ifdown eth0
RTNETLINK answers: No such process
juan@shadow ~ $  sudo ifdown eth0
ifdown: interface eth0 not configured
juan@shadow ~ $  sudo ifup eth0


64 bytes from dev (192.168.0.1): icmp_seq=29 ttl=64 time=0.535 ms
64 bytes from dev (192.168.0.1): icmp_seq=30 ttl=64 time=0.344 ms
64 bytes from dev (192.168.0.1): icmp_seq=31 ttl=64 time=0.292 ms
^C
--- dev ping statistics ---
31 packets transmitted, 3 received, +3 errors, 90% packet loss, time 30212ms
rtt min/avg/max/mdev = 0.292/0.390/0.535/0.105 ms, pipe 3

Thanks

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/3015b9e5-e3f7-449a-b2ba-e52acd165a4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to