Bridge and dhcpd problem

This is a discussion on Bridge and dhcpd problem within the Linux Networking forums, part of the Linux Forums category; I have two networks set up which I've connected with an linux ethernet bridge (using bridge-utils). I have ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-13-2007
support@isotech-inc.com
 
Posts: n/a
Default Bridge and dhcpd problem

I have two networks set up which I've connected with an linux ethernet
bridge (using bridge-utils). I have almost the same thing working in
another location and it is great. It allows our customers who need
public IP's to utilize them behind our private network. Here is the
setup:

192.168.5.0/24 network <==> eth1 of bridge / eth0 of bridge <==>
172.0.0.1/24 (actually public IP address network)

Inside the 192.168.5.0 network there is a DHCP server based on
OpenBSD, but I cannot touch the settings on this box. When the bridge
is turned on and some system requests a dhcp address, I get the
following error message over and over: dhcpd Abandoning IP address:
192.168.5.XX declined (where XX is is in the DHCP range, each time a
new one out of the pool). I have to flush these leases out of my DHCP
leases list. This happens until I shut off the bridge (with "ifconfig
bridge-name down"). The bridge has stp turned on.

I haven't even had the chance to set up my ebtables and iptables rules
until I can get around this issue. Is there something that I am
missing?

Please no suggestions to not use RFC 1918 networks, that is not an
options because my bosses tell me so.

Reply With Quote
  #2 (permalink)  
Old 07-13-2007
Robert Harris
 
Posts: n/a
Default Re: Bridge and dhcpd problem

support@isotech-inc.com wrote:
> I have two networks set up which I've connected with an linux ethernet
> bridge (using bridge-utils). I have almost the same thing working in
> another location and it is great. It allows our customers who need
> public IP's to utilize them behind our private network. Here is the
> setup:
>
> 192.168.5.0/24 network <==> eth1 of bridge / eth0 of bridge <==>
> 172.0.0.1/24 (actually public IP address network)


Well, systems connected to your eth1 need to have IP addresses in the
range 172.0.0.1/24 and definitely not in the range 192.168.5.0/24
because your bridge won't route them through its eth0.

Why not set up another DHCP server on the eth0 side, like on your
bridge, allocate addresses in another public range (like 192.168.6.0/24
or 172.16.1.0/24) and add the range to the routing table of your bridge?

Robert

>
> Inside the 192.168.5.0 network there is a DHCP server based on
> OpenBSD, but I cannot touch the settings on this box. When the bridge
> is turned on and some system requests a dhcp address, I get the
> following error message over and over: dhcpd Abandoning IP address:
> 192.168.5.XX declined (where XX is is in the DHCP range, each time a
> new one out of the pool). I have to flush these leases out of my DHCP
> leases list. This happens until I shut off the bridge (with "ifconfig
> bridge-name down"). The bridge has stp turned on.
>
> I haven't even had the chance to set up my ebtables and iptables rules
> until I can get around this issue. Is there something that I am
> missing?
>
> Please no suggestions to not use RFC 1918 networks, that is not an
> options because my bosses tell me so.
>

Reply With Quote
  #3 (permalink)  
Old 07-16-2007
David Schwartz
 
Posts: n/a
Default Re: Bridge and dhcpd problem

On Jul 13, 2:51 pm, Robert Harris <robert.f.har...@blueyonder.co.uk>
wrote:

> Well, systems connected to your eth1 need to have IP addresses in the
> range 172.0.0.1/24 and definitely not in the range 192.168.5.0/24
> because your bridge won't route them through its eth0.


Huh?! Of course his bridge won't route, it's a *bridge*. It will,
however, bridge them to its eth0. So your suggestion makes no sense.

> Why not set up another DHCP server on the eth0 side, like on your
> bridge, allocate addresses in another public range (like 192.168.6.0/24
> or 172.16.1.0/24) and add the range to the routing table of your bridge?


Because the eth0 side and the eth1 side are *bridged* together. Why
would he want to add things to the routing table of his bridge since
it's bridging the two networks together, not routing them?

DS

Reply With Quote
  #4 (permalink)  
Old 07-16-2007
David Schwartz
 
Posts: n/a
Default Re: Bridge and dhcpd problem

On Jul 13, 2:00 pm, supp...@isotech-inc.com wrote:

> I have two networks set up which I've connected with an linux ethernet
> bridge (using bridge-utils). I have almost the same thing working in
> another location and it is great. It allows our customers who need
> public IP's to utilize them behind our private network. Here is the
> setup:
>
> 192.168.5.0/24 network <==> eth1 of bridge / eth0 of bridge <==>
> 172.0.0.1/24 (actually public IP address network)


This is a very advanced configuration that requires extensive
knowledge to properly handle.

> Inside the 192.168.5.0 network there is a DHCP server based on
> OpenBSD, but I cannot touch the settings on this box. When the bridge
> is turned on and some system requests a dhcp address, I get the
> following error message over and over: dhcpd Abandoning IP address:
> 192.168.5.XX declined (where XX is is in the DHCP range, each time a
> new one out of the pool). I have to flush these leases out of my DHCP
> leases list. This happens until I shut off the bridge (with "ifconfig
> bridge-name down"). The bridge has stp turned on.
>
> I haven't even had the chance to set up my ebtables and iptables rules
> until I can get around this issue. Is there something that I am
> missing?
>
> Please no suggestions to not use RFC 1918 networks, that is not an
> options because my bosses tell me so.


What's most likely happening is that the DHCP server is assigning the
host an address, the host is verifying that the address is not in use,
and concluding that it is in use. Something is reply to an ARP query
for the IP addresses in the DHCP range inside the same broadcast
domain as the DHCP server and its clients. This is a no-no.

This sounds like proxy-ARP gone wild. Since you're bridging, there is
no reason to use proxy-ARP and it will just cause clients to decline
the IP address that's being assigned to them (because they think it's
already in use).

Ping one of the addresses in the DHCP range that has not been assigned
to any device (try it from each side of the bridge with a different IP
address) and make sure you do not see any ARP relies in the ARP cache.
If you do see an ARP reply, whatever device replied is misconfigured.
See what other entries in the APR cache have the same MAC address and
you've found your culprit.

If this doesn't make sense to you, you're not qualified to maintain
this network.

DS

Reply With Quote
  #5 (permalink)  
Old 07-23-2007
support@isotech-inc.com
 
Posts: n/a
Default Re: Bridge and dhcpd problem

Thank you, I have found the device that is causing this problem. Now
it's time to figure out why it's doing that.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:59 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0