[CentOS-virt] Virtual Box: br0 not resolving: No DHCPOFFERS

Daniel de Kok daniel at centos.org
Tue Sep 4 05:54:38 UTC 2007


On Mon, 2007-09-03 at 20:07 -0700, Todd and Margo Chester wrote:
> Do you want me to remove the "BRIDGE=br0" from "ifcfg-eth0"?

No, see the examples that were posted below.

> 
> > 
> > But this doesn't. An ethernet bridge ties together multiple ethernets to
> > give the "illusion" that it is one ethernet. An interface that is added
> > to the bridge is just a bridge port. The configuration for the NIC
> > should simply add it to the bridge, e.g.:
> > 
> > ---
> > DEVICE=eth0
> > TYPE=ETHER
> > BRIDGE=br0
> > ONBOOT=yes
> > ---
> > 
> > The resulting bridge device (br0) is the interface to the new ethernet.
> > So, if you want to give it a static IP address, do it in the bridge
> > configuration. A quick example:
> > 
> > /etc/sysconfig/ifcfg-br0:
> > ---
> > DEVICE=br0
> > TYPE=Bridge
> > BOOTPROTO=static
> > BROADCAST=192.168.255.255
> > IPADDR=192.168.255.10
> > NETMASK=255.255.255.0
> > NETWORK=192.168.255.0
> > ONBOOT=yes
> > USERCTL=yes
> > IPV6INIT=no
> > PEERDNS=no
> > ONBOOT=yes
> > ---
> 
> The static address is the same as my ifcfg-eth0's static
> address.  Is this on purpose?

Yes. As I said, br0 becomes the interface that talks to the network, so
you have to configure the IP information there, and not in the eth0
configuration. eth0 just becomes a port on the bridge.

-- Daniel




More information about the CentOS-virt mailing list