Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to configure multiple IP-Adresses on one NIC in OVM

Marek H.Jun 27 2011 — edited Jun 29 2011
Hi guys,

we have some OVM Servers 2.2.1 installed. They all have three NICs in them (eth0-2). For eth0 and eth2 we need multiple IP-Adresses configured to work with our storage solution. The configuration should look like this:

eth0:0 - 192.168.31.x
eth0:1 - 192.168.33.x
eth1 - 192.168.0.x
eth2:0 - 192.168.32.x
eth2:1 - 192.168.34.x

I tried creating gonfig files ifcfg-eth0:0 in /etc/sysconfig/network-scripts with the following content

DEVICE=eth0:0
BOOTPROTO=static
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.31.3
TYPE=Ethernet
HWADDR=00:1b:21:06:f0:fa

But it does not work. Neither eth0:0 nore an additional xenbr is configured when i restart.
I can configure multiple ip addresses for xenbr0 by calling something like "ifconfig xenbr0 192.168.31.x". But these settings get lost as sonn as i reboot the server.
I have already searched google, forums and blogs for a solution but could not find one. I thought that this should be a pretty common task. In "normal" linux it is not an issue at all.

Has somebody any experience with a setup like this? I would really apreciate your help.

Thanks
Marek
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 27 2011
Added on Jun 27 2011
2 comments
264 views