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

Neil Aggarwal neil at JAMMConsulting.com
Tue Oct 20 19:11:25 UTC 2009


I did some more reading on the Internet and it looks like
I am supposed to set up the bridge on eth0 and configure
the bridge with the IP address of the host.

So, I removed ifcfg-eth0:1 and changed ifcfg-eth0
to this:
DEVICE=eth0
HWADDR=[The MAC address]
ONBOOT=yes
BRIDGE=br0

I removed ifcfg-br1 and created ifcfg-br0 with this
content:
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
BROADCAST=192.168.2.255
IPADDR=192.168.2.200
NETMASK=255.255.255.0
NETWORK=192.168.2.0
ONBOOT=yes
DELAY=0

I don't get any errors when I do service network restart
but now I can't ssh to the host using the 192.168.2.200
IP address.

I also tried setting these values in /etc/sysctl.conf:

net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

net.ipv4.ip_forward = 1

and rebooting the machine.  That did not help.

Any ideas?

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. 



More information about the CentOS-virt mailing list