我在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.