OpenVZ Forum


Home » General » Support » **SOLVED** DHCP server problem inside centos 5.2 VE
solution [message #32191 is a reply to message #32094] Thu, 24 July 2008 19:23 Go to previous messageGo to previous message
jiadar is currently offline  jiadar
Messages: 4
Registered: July 2008
Junior Member
I've solved this. Apparently, red hat insists that you follow their
convention for creating the bridge. Creating the bridge by using brctl
directly does not work. The following configurations solve the
problem.

1. Create a file /etc/sysconfig/network-scripts/ifcfg-br0

Put in the IP information that was in your primary physical ethernet
device. Change the device from "eth0" to "br0" and type from "ether"
to "Bridge".

2. Modify the /etc/sysconfig/network-scripts/ifcfg-eth0

Modify your primary ethernet interface to be a member of the bridge
with no IP information. Set it to use the bridge.

3. Add a file for each of your veth devices. For instance, for
vethX.0, add a file /etc/sysconfig/network-scripts/ifcfg-vethX.0.

This file is almost the same as eth0. You will add the vethX.0 device
to the bridge.

My actual configuration files are below:

================ifcfg-br0=================
DEVICE=br0
BOOTPROTO=static
BROADCAST=10.0.129.255
IPADDR=10.0.129.4
IPV6INIT=yes
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=10.0.129.0
ONBOOT=yes
GATEWAY=10.0.129.1
TYPE=Bridge


================ifcfg-eth0=================
DEVICE=eth0
TYPE=ether
BRIDGE=br0
ONBOOT=yes


================ifcfg-veth109.0=================
DEVICE=veth109.0
ONBOOT=yes
STARTMODE=onboot
BRIDGE=br0

================brctl show br0==================
bridge name bridge id STP enabled interfaces
br0 8000.0018510bd235 no veth109.0
eth0
================route -n==================
Destination Gateway Genmask Flags Metric Ref
Use Iface
10.0.129.0 0.0.0.0 255.255.255.0 U 0 0
0 br0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0
0 br0
0.0.0.0 10.0.129.1 0.0.0.0 UG 0 0
0 br0

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SLM MODE is in OVZ or only virtuozo?
Next Topic: Is it possible to access eth0 device from container
Goto Forum:
  


Current Time: Fri Jul 26 02:35:42 GMT 2024

Total time taken to generate the page: 0.03260 seconds