Vagrant 配置私有网络

Vagrant 如何配置私有网络? $ vagrant suspend ==> default: Saving VM state and suspending execution... $ vi Vagrantfile config.vm.network "private_network", ip: "192.168.33.10" $ vagrant reload $ ping 192.168.33.10 PING 192.168.33.10 (192.168.33.10): 56 data bytes 64 bytes from 192.168.33.10: icmp_seq=0 ttl=64 time=0.430 ms 64 bytes from 192.168.33.10: icmp_seq=1 ttl=64 time=0.408 ms 64 bytes from 192.168.33.10: icmp_seq=2 ttl=64 time=0.389 ms 64 bytes from 192.168.33.10: icmp_seq=3 ttl=64 time=0.352 ms ^C --- 192.168.33.10 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 ...

July 2, 2019 · 1 min · K8sCat