Static IP for bridged connection?

I have virtual box installed which automatically installed bridges for my network adapters. This has always worked fine. I’m attempting to set up a static IP for this machine now. I use NetworkManager, and the physical connection (eth0) is set to static IP of 0.0.0.0, and the bridge (br0) attached to eth0 was set to DHCP. I changed br0 to my desired static IP and lost net connectivity (I’m talking about the host, not the virtual machine - I’ll get the host working first). Re-enabling DHCP restores connectivity. So I don’t know what the problem is, but I am unable to assign a static IP to the bridged connection. Do I have to do this differently? Do I need to remove the bridge so I am using just eth0 again, assign the static IP to eth0, and then re-install the bridge? I haven’t tried that yet because a) I don’t know how to remove & reinstall the bridge, because it was done automatically by Virtual Box installation, and b) I could probably do that if I had the time figure it out but right now I don’t.

I set up a static IP on wlan0 on another machine using Network Manager and it works fine. That machine also has Virtual Box installed but for some reason doesn’t have the bridged connections. (Perhaps because it runs Ubuntu, not OpenSUSE, if that makes any difference)

Did that make sense?

On Fri, 12 Aug 2011 09:16:02 +0530, sp3wn
<sp3wn@no-mx.forums.opensuse.org> wrote:

>
> I have virtual box installed which automatically installed bridges for
> my network adapters. This has always worked fine. I’m attempting to
> set up a static IP for this machine now. I use NetworkManager, and the
> physical connection (eth0) is set to static IP of 0.0.0.0, and the
> bridge (br0) attached to eth0 was set to DHCP. I changed br0 to my
> desired static IP and lost net connectivity (I’m talking about the host,
> not the virtual machine - I’ll get the host working first).

what static IP did you assign, and how did you do it? in order to be able
to talk to the other devices on your network, the IP has to be in the same
subnet as those, and you have to specify a route, so the network knows
which device to use to connect to the rest of the world. i’m not sure how
networkmanager does that since i never use it, but if you post the content
of

/etc/sysconfig/network/ifcfg-br0
and
/etc/sysconfig/network/routes

i might be able to tell you what’s wrong, and how to fix it by editing
these files. no idea what networkmanager will do about it though…


phani.