I have an independent DHCP server on my LAN, so I don't need or want DHCP servers running on my router(s).
I'm also trying to get WDS working on two identical atheros-based systems (EA8500), both running LEDE.
Everything works as expected on my LAN (and WAN too though I realize WAN is not involved in WDS) except for WDS. I have my WDS AP router configured according to https://wiki.openwrt.org/doc/recipes/atheroswds and it's working as expected in every way except for WDS. But as soon as I power on my WDS STA router (that I'm pretty certain I've configured correctly according to https://wiki.openwrt.org/doc/recipes/atheroswds ), my network begins to suffer from disruptions.
I'm thinking that the DHCP server on the STA router is almost certainly the root cause that is disrupting the ability of multiple hosts on my LAN to find other hosts by their long-established static IP addresses.
I can ping multiple hosts from multiple hosts and get 100% return rates on these pings with no problem. Then I turn on the STA router and within seconds, I'm no longer able to get pings returned from multiple hosts. Then when I power off my STA router, I see pings getting returned again within 1 minute of doing so. I suppose it might be something else (another WiFi network broadcasting with the same SSID?) about the STA router that is disrupting my network, but I'm pretty sure that it's the DHCP servers because even hosts that are connected only via ethernet are getting disrupted.
I've tried doing...
/etc/init.d/odhcpd stop
and
/etc/init.d/odhcpd disable
...and yet I still see...
# ps|grep dhcp
796 root 804 S odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 eth0.
800 root 1036 S udhcpc -p /var/run/udhcpc-eth0.2.pid -s /lib/netifd/
1438 root 1036 S grep dhcp
root@dor:~#
and
# netstat -lpn|grep dhcp
udp 0 0 :::546 :::* 796/odhcp6c
raw 0 0 ::%3069509888:58 ::%125776:* 58 796/odhcp6c
root@dor:~#
...after doing both
/etc/init.d/odhcpd stop
and
/etc/init.d/odhcpd disable
I think there is a respawn option set somewhere, so even when I kill -9 pid
, I still get the dhcp server restarting.
I've also tried setting my /etc/config/dhcp
file so that it looks like (NB the option ignore '1' lines):
config dhcp 'lan'
option interface 'lan'
option dhcpv6 'disabled'
option ra 'server'
option ra_management '1'
option ignore '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option ignore '1'
And in the Network -> Interfaces section of LUCI, I've cleared the field under Global network options->IPv6 ULA-Prefix and left it empty and saved and applied because I don't need or want ipv6.
Yet despite all these changes, I still see processes running and ports listening associated with dhcp services.
How can I turn off all dhcp servers (ipv4 and ipv6) running on my LEDE router, keep them off, prevent them from starting during a reboot, and yet preserve the dhcp client process that needs to request an IP address from my ISP?
Any suggestions?
Thank you.