vagrant public_network
1、修改 Vagrantfile 文件。
1.1 Realtek PCIe GBE Family Controller 为网卡配置;
config.vm.network "public_network", auto_config: false, bridge: "Realtek PCIe GBE Family Controller"
1.2 eth1 为网卡;
config.vm.provision "shell", run: "always", inline: " ifconfig eth1 172.168.25.100 netmask 255.255.128.0 up "
2、启动或重启虚拟机。
vagrant up # 或 vagrant reload