goalmarketing / vigor2130

Automatically exported from code.google.com/p/vigor2130
0 stars 0 forks source link

DHCP Relay binding problem... #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm running a dhcp server (dnsmasq) on port 67 (default) which uses the br-lan 
ip 192.168.40.254. The pool starts at 192.168.40.10 and ends at 192.168.40.20. 

My issue is that i cannot run any dhcp relay agent simultaneously with a dhcp 
server, which i need to be able to do so, because i'm trying to implement 
RFC3046...

Anyway, i keep getting the following error:

root@test:/etc# dhcp-fwd -v
dhcp-forwarder 0.9

root@test:/etc# dhcp-fwd 
bind(): Address already in use

root@test:/etc# 

(do note that i have compiled dhcp-forwarder 0.9 which uses the set 
SO_REUSEADDR option for client sockets - this is supposed to allow 
dhcp-forwarder and another dhcp server to run simultaneously on the same host)

...I've also compiled the Internet Systems Consortium DHCP Relay Agent V3.1.0 
package (which comes with 1.5.1 sources) and this is what happens:

root@test:/etc# dhcrelay -d -i eth0.1 10.48.47.2
Internet Systems Consortium DHCP Relay Agent V3.1.0
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0.1/00:50:7f:cb:ed:f4
Sending on   LPF/eth0.1/00:50:7f:cb:ed:f4

Can't bind to dhcp address: Address already in use

Do i need to change something in /etc/config/dhcp so to make the rebinding 
possible? e.g.:

root@test:/etc/config# cat dhcp

...
#option nonwildcard '1' # helps to prevent dnsmasq binding to all interfaces
...
...
option rebind_protection 0  # disable if upstream must serve RFC1918 addresses 
...
...
option rebind_localhost  1  # enable for RBL checking and similar services
...
...
config relay
        option enable_relay     0
        option relay_svrip      '0.0.0.0'
...
...

...Do note that if i change "option enable_relay" to "1", and define the dhcp 
relay server ip, my dhcp server stops...

Another possibility regarding this issue...is it the kernel? (i'm asking 
because i've read this: 
http://osdir.com/ml/linux.ipv6.usagi.users/2004-09/msg00000.html ) and although 
the Kernel that i'm using (build: 2.6.23.17) - which is way newer than the one 
they are referring to on that mailing list - maybe there's something missing 
like...: tick something when doing a "make menuconfig" ; "make config"...? OR 
maybe i need a patch...?

I'm really lost...

Thank you for your help,

Regards,

Keeper

Original issue reported on code.google.com by Keepe...@gmail.com on 8 Dec 2011 at 3:58

GoogleCodeExporter commented 8 years ago
You can try 1.5.2 RC2 firmware.
Already have dhcp relay function

Original comment by jht...@gmail.com on 21 Feb 2012 at 10:13

GoogleCodeExporter commented 8 years ago
Thank you jht...i've already tested some more recent builds and this issue has 
been sorted out since then. (since 1.5.2_RC1M - build 2578, i believe).

Original comment by Keepe...@gmail.com on 21 Feb 2012 at 5:41

GoogleCodeExporter commented 8 years ago

Original comment by jht...@gmail.com on 22 Feb 2012 at 5:56