
因为有需要,所以想建立两个ubuntu server,这两个Gust和Host主机要在同一个网段。
如实际ip地址为:10.101.12.57,想要这两个Gust也有相应的ip10.101.xxx.xxx,这个就组建了一个小型局域网,需要在网络连接进行桥接。
本来在vbox上已经装有一个ubuntu server,然后我就克隆出了另外一个:
Vbox clongvdi ubuntu.vdi ubuntunew.vdi
启动新的ubuntunew后发现网络不同,eth0没有启用,然后就进行了手动启动:
#ifup eth0
报错,类似eth0: ERROR while getting interface flags: No such device
查看了一下设备:
lshw -C network
发现logical name变成了eth1,找到问题所在,然后:
vim /etc/network/interfaces
把eth0改为eth1,然后:
#ifup eth1
成功。
因为有需要,所以想建立两个ubuntu server,这两个Gust和Host主机要在同一个网段。
如实际ip地址为:10.101.12.57,想要这两个Gust也有相应的ip:10.101.xxx.xxx,这个就组建了一个小型局域网,需要在网络连接进行桥接。
本来在Virtualbox上已经装有一个ubuntu server,然后我就克隆出了另外一个:
VBoxManage clonevdi ubuntu.vdi ubuntunew.vdi
启动新的ubuntunew后发现网络不通,eth0没有启用,然后就进行了手动启动:
#ifup eth0
报错,类似eth0: ERROR while getting interface flags: No such device
查看了一下设备:
lshw -C network
发现logical name变成了eth1,找到问题所在,然后:
vim /etc/network/interfaces
把eth0改为eth1,然后:
#ifup eth1
成功。