Skip to content

Commit

Permalink
uplink-notunnel: set hostname for dhcp-setup of interface
Browse files Browse the repository at this point in the history
By default OpenWrt uses the hostname to request a DHCP-address. As the
hostname is already registered in the upstream-dhcpserver for the WAN-
interface, registering it again for the address of the ffuplink-interface
will fail. This causes constant logmessages when using OpenWrt on upstream
router.

> daemon.warn dnsmasq-dhcp: not giving name xxx to the DHCP lease of 192.168.x.x
> because the name exists in /tmp/hosts/dhcp.cfg01411c with address 192.168.x.y
  • Loading branch information
SvenRoederer committed Dec 28, 2019
1 parent f794487 commit 8e2b55e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ list_contains ifnames ffuplink_wan || uci set network.wan.ifname="${ifnames} ffu
uci commit network.wan

uci set network.ffuplink.proto=dhcp
uci set network.ffuplink.hostname=freifunk-$(echo $macaddr|tr -d :)-uplink
uci commit network.ffuplink

0 comments on commit 8e2b55e

Please sign in to comment.