Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ip=ignore is ignored #198

Open
rgl opened this issue Apr 26, 2023 · 1 comment
Open

ip=ignore is ignored #198

rgl opened this issue Apr 26, 2023 · 1 comment

Comments

@rgl
Copy link

rgl commented Apr 26, 2023

I'm trying to configure odhcpd to ignore a specific machine MAC address and I think there is a bug somewhere.

The static leases documentation states:

ip | the IP address to be used for this host, or ignore to ignore any DHCP request from this host

But the odhcpd host section does not state ignore is supported, which is somewhat odd?

I've configured a static lease like:

# see https://openwrt.org/docs/guide-user/base-system/dhcp#static_leases
# see https://openwrt.org/docs/techref/odhcpd#host_section
# see /etc/config/dhcp
# see /tmp/hosts/odhcpd
ssh [email protected]
#uci delete dhcp.@host[-1]
id="$(uci add dhcp host)"
uci set "dhcp.$id.mac=08:00:27:00:00:46"
# XXX even with this configuration, the host is not being ignored :-(
uci set "dhcp.$id.ip=ignore"
uci set "dhcp.$id.name=t1"
uci changes dhcp
uci commit dhcp
uci show dhcp
service odhcpd reload
exit

But I can still see DHCP traffic, and odhcpd is still assigning/replying to the configured MAC address.

Can you help understand why odhcpd is not ignoring the defined MAC address?

Am I doing something wrong?

@systemcrash
Copy link
Contributor

Probably because those are controlled by dnsmasq (and not odhcpd). Recommend you close this as unrelated to odhcpd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants