Vagrant 配置私有网络

Vagrant 配置私有网络

Vagrant 如何配置私有网络?

$ vagrant suspend
==> default: Saving VM state and suspending execution...

$ vi Vagrantfile "private_network", ip: ""

$ vagrant reload

$ ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=0.430 ms
64 bytes from icmp_seq=1 ttl=64 time=0.408 ms
64 bytes from icmp_seq=2 ttl=64 time=0.389 ms
64 bytes from icmp_seq=3 ttl=64 time=0.352 ms
--- ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.352/0.395/0.430/0.029 ms

Refer: 第二节:Private Networks(私有网络)


Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now