Jeff M asked:
I’m having a hell of an issue getting networking working in Xen on Ubuntu Server. Our server has a few public IPs (/29) that are all added through eth0
aliases. E.g.
- eth0 – main ip
- eth0:0 – first free ip
- eth0:1 – first free ip
- eth0:2 – first free ip
- eth0:3 – first free ip
The IPs are added through /etc/network/interfaces
as follows (IPs blanked out for security):
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
How would I go about exposing eth0:1
to a VM? (It’s going to be dedicated to that VM.) Currently I’m working with the PV instructions here.
My answer:
First, use bridging. If you were following the howto you linked, you should already have bridging set up.
Second, assign the IP addresses for the VMs within each domU, not within the dom0. The dom0 should only have its own IP address configured when using network bridging.
View the full question and any other answers on Server Fault.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.