Hi folks,
we have some strange problems with a dhcpd inside a vps.
We configured our VPS to bridge veth with hosts eth0. The actual problem is that some of our clients don't get ip addresses from the dhcpd with client-side error message that the ip adress this client asked for is actually used by ehternet id xx.xx... - the given ethernet id is the id of the host-side veth-device of the dhcp vps.
can anyone help?
regars,
matthias
our config in detail:
------------------------------------
DHCPd-Log auf VPS
[...]
VPS dhcpd: DHCPDISCOVER from 00:1c:b3:bd:ac:d4 via eth0
VPS dhcpd: DHCPOFFER on 192.168.55.200 to 00:1c:b3:bd:ac:d4 via eth0
VPS dhcpd: DHCPREQUEST for 192.168.55.200 (192.168.55.11) from 00:1c:b3:bd:ac:d4 via eth0
VPS dhcpd: DHCPACK on 192.168.55.200 to 00:1c:b3:bd:ac:d4 via eth0
VPS dhcpd: DHCPREQUEST for 192.168.55.200 (192.168.55.11) from 00:1c:b3:bd:ac:d4 via eth0
VPS dhcpd: DHCPACK on 192.168.55.200 to 00:1c:b3:bd:ac:d4 via eth0
VPS dhcpd: Abandoning IP address 192.168.55.200: declined.
VPS dhcpd: DHCPDECLINE of 192.168.55.200 from 00:1c:b3:bd:ac:d4 via eth0: not found
[...]
------------------------------------
Netzwerk-Setup VE0:
# The loopback network interface
auto lo
iface lo inet loopback
# OPENVZ anonymous bridge
#
# (anonymous bridge = a bridge without
# an assigned IP)
auto br0
iface br0 inet manual
bridge_ports eth0
bridge_maxwait 0
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.55.5
network 192.168.55.0
netmask 255.255.255.0
broadcast 192.168.55.255
gateway 192.168.55.254
------------------------------------
Routingtabelle DHCPd-VPS
# ip route show
192.168.55.11 dev br0 scope link
192.168.55.5 dev br0 scope link
192.168.55.0/24 dev eth0 proto kernel scope link src 192.168.55.5
default via 192.168.55.254 dev eth0
------------------------------------
Netzwerk-Interfaces VE0
# ifconfig -a
br0 Protokoll:Ethernet Hardware Adresse 00:0C:29:0C:7A:1A
inet6 Adresse: fe80::218:f3ff:fe0d:2edd/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24758 errors:0 dropped:0 overruns:0 frame:0
TX packets:2917 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:3819612 (3.6 MiB) TX bytes:236898 (231.3 KiB)
eth0 Protokoll:Ethernet Hardware Adresse 00:18:F3:0D:2E:DD
inet Adresse:192.168.55.5 Bcast:192.168.55.255 Maske:255.255.255.0
inet6 Adresse: fe80::218:f3ff:fe0d:2edd/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42497 errors:0 dropped:0 overruns:0 frame:0
TX packets:30174 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:6101271 (5.8 MiB) TX bytes:6908267 (6.5 MiB)
Interrupt:193
lo Protokoll:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:106 errors:0 dropped:0 overruns:0 frame:0
TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:10878 (10.6 KiB) TX bytes:10878 (10.6 KiB)
sit0 Protokoll:IPv6-nach-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
veth100.0 Protokoll:Ethernet Hardware Adresse 00:0C:29:0C:7A:3A
inet6 Adresse: fe80::20c:29ff:fe0c:7a3a/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3822 errors:0 dropped:0 overruns:0 frame:0
TX packets:12067 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:2919192 (2.7 MiB) TX bytes:1260384 (1.2 MiB)
------------------------------------
Bridge VE0
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.000c290c7a1a no eth0
veth100.0
------------------------------------
Relevanter Auszug aus der VPS-Config
Rest Standard:
# cat /etc/vz/conf/100.conf
[...]
# Don't create a venet device!
#IP_ADDRESS=""
CONFIG_CUSTOMIZED="yes"
# Bridged networking
VZHOSTBR="br0"
VETH_IP_ADDRESS="192.168.55.11"
NETIF="ifname=eth0,mac=00:0C:29:0C:7A:2B,host_ifname=veth100.0,host_mac=00:0C:29:0C:7A:3A"
------------------------------------
Netzwerk-Setup DHCPd-VPS
# Auto generated interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.55.11
netmask 255.255.255.0
broadcast 192.168.55.255
network 192.168.55.0
gateway 192.168.55.254
dns-nameserver 192.168.55.11
------------------------------------
Routingtabelle DHCPd-VPS
# ip route show
192.168.55.0/24 dev eth0 proto kernel scope link src 192.168.55.11
default via 192.168.55.254 dev eth0