[CentOS-virt] Error setting up bridge with static IP address

Tue Oct 20 17:11:02 UTC 2009
Neil Aggarwal <neil at JAMMConsulting.com>

Hello:

I am trying to follow the RHEL virtualization guide
to set up a bridge on a system running CentOS 5.4.

I copied my ifcfg-eth0 to ifcfg-eth0:1 and
set its content to this:

DEVICE=eth0:1
HWADDR=[The MAC address from eth0]
ONBOOT=yes
BRIDGE=br1

I then created ifcfg-br1 with this content:

DEVICE=br1
TYPE=Bridge
BOOTPROTO=static
BROADCAST=192.168.2.255
IPADDR=192.168.2.202
NETMASK=255.255.255.0
NETWORK=192.168.2.0
ONBOOT=yes
DELAY=0

When I do service network restart, I get this error:

error in ifcfg-eth0:1: didn't specify device or ipaddr

I specified the device so it looks like it wants an IP
address but that is contrary to what I am reading on
the Internet.

Any ideas what went wrong?

Thanks,
	Neil


--
Neil Aggarwal, (281)846-8957, www.JAMMConsulting.com
Will your e-commerce site go offline if you have
a DB server failure, fiber cut, flood, fire, or other disaster?
If so, ask about our geographically redundant database system.