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已消隐):

auto eth0
iface eth0 inet static
address ##.##.##.106
netmask 255.255.255.248
network ##.##.##.104
broadcast ##.##.##.111
gateway ##.##.##.105
# dns-* options are implemented by the resolvconf package,if installed
dns-nameservers 8.8.8.8 8.8.4.4
dns-search mydomain.com

auto eth0:1
iface eth0:1 inet static
    address ##.##.##.108
    netmask 255.255.255.248
    network ##.##.##.104
    broadcast ##.##.##.111
    gateway ##.##.##.105

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

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

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

原文链接:https://www.f2er.com/ubuntu/347788.html

猜你在找的Ubuntu相关文章