ubuntu – 为xen来宾专用ip

前端之家收集整理的这篇文章主要介绍了ubuntu – 为xen来宾专用ip前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在Ubuntu Server上使用Xen进行网络连接时遇到了一个问题.我们的服务器有一些公共IP(/ 29),它们都是通过eth0别名添加的.例如.

> eth0 – 主要IP
> eth0:0 – 第一次免费ip
> eth0:1 – 首次免费ip
> eth0:2 – 首先免费ip
> eth0:3 – 首次免费ip

IP通过/ etc / network / interfaces添加如下(为安全起见,IP已消隐):

  1. auto eth0
  2. iface eth0 inet static
  3. address ##.##.##.106
  4. netmask 255.255.255.248
  5. network ##.##.##.104
  6. broadcast ##.##.##.111
  7. gateway ##.##.##.105
  8. # dns-* options are implemented by the resolvconf package,if installed
  9. dns-nameservers 8.8.8.8 8.8.4.4
  10. dns-search mydomain.com
  11.  
  12. auto eth0:1
  13. iface eth0:1 inet static
  14. address ##.##.##.108
  15. netmask 255.255.255.248
  16. network ##.##.##.104
  17. broadcast ##.##.##.111
  18. gateway ##.##.##.105

我如何将eth0:1暴露给虚拟机? (它将专用于该VM.)目前我正在使用the PV instructions here.

首先,use bridging.如果您关注了链接方法,那么您应该已经设置了桥接.

其次,为每个domU中的VM分配IP地址,而不是在dom0内.使用网络桥接时,dom0应该只配置自己的IP地址.

猜你在找的Ubuntu相关文章