我通过vagrant
vagrant 文件中的以下内容创建了一个虚拟机:
config.vm.box = "ubuntu/trusty64"
......
.....
..
config.vm.network "public_network"
请注意此处的警告:
default: Warning: Connection aborted. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Connection aborted. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Connection aborted. Retrying...
default: Warning: Connection aborted. Retrying...
default: Warning: Connection reset. Retrying...
vagrant ssh
并进入虚拟机
输入命令:ip addr show
注意:eth1 中不显示 inet