ubuntu下的虚拟机网络设置

以桥接的形式使用网络
编辑/etc/network/interfaces

1
2
3
4
5
6
7
8
9
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_stp yes
bridge_fd 0
bridge_maxwait 0

sudo /etc/init.d/networking restart

然后使用virtual manager新建虚拟主机,share br0就可以了

This entry was posted in Linux. Bookmark the permalink.

One Response to ubuntu下的虚拟机网络设置

  1. Kevin says:

    The title is misleading due to its inreocisipn: you’re just showing how to enable 6to4 with the special anycast address. You don’t even mention the existence of tunnel brokers, or the possibility to set up a name server for reverse DNS.As a matter of fact I’m pretty certain that you took parts of already posted articles to make this one. And there are already too many on this very simple procedure.

Leave a Reply

Your email address will not be published. Required fields are marked *