DHCPv4 server and relay at the same time

Francis Dupont fdupont at isc.org
Wed Mar 21 18:44:57 UTC 2012


> 3) re: dhccra's latest problem
> 
> d at io:~$ ssh 2001:db8:0:1::3 -l root
> root at 2001:db8:0:1::3's password:
> 
> root at sd-cpe2:~# netstat -na | grep 67
> root at sd-cpe2:~# currently nothing listening, no dnsmasq, no udhcp, nothing
> 
> /usr/sbin/dhccra -d -i ge00 -l4 149.20.74.65 2001:db8:0:1::1

=> note it should be launched without the -l4 as the address is
not yet available.

> Listening on LPF/ge00/a0:21:b7:ac:e4:56
> Sending on   LPF/ge00/a0:21:b7:ac:e4:56
> Can't bind to dhcp address: Cannot assign requested address

=> dhccra is right: you can't assign an address which is not
one of the addresses of the box.

> Please make sure there is no other dhcp server
> running and that there's no entry for dhcp or
> bootp in /etc/inetd.conf.   Also make sure you
> 
> without the -l4 option it listens to everything

=> in IPv6 and lsof could show it uses the same IPv6 socket (:-).

> Bound to *:67
> Listening on Socket/ge00
> Sending on   Socket/ge00
> Listening on Socket/sw00
> Sending on   Socket/sw00
> Listening on Socket/gw00
> Sending on   Socket/gw00
> Listening on Socket/gw01
> Sending on   Socket/gw01
> Listening on Socket/sw10
> Sending on   Socket/sw10
> Listening on Socket/se00
> Sending on   Socket/se00
> Listening on Socket/gw10
> Sending on   Socket/gw10
> Listening on Socket/gw11
> Sending on   Socket/gw11
> Listening on Socket/ipv6
> Sending on   Socket/ipv6

=> the last one (ipv6 fake interface) is for the port 68,
all others are for the same *:67
So it works...

Regards

Francis Dupont <fdupont at isc.org>

PS: in the install on WNDR doc you'll have to explain the interface names
(what is the wan (ge00) and what is the lan).


More information about the sdcpe-devel mailing list