Self-assigned IP on out of the box install

Hi there...

I have been struggling for a week now on trying to get the DHCP server working on my Pi.
On the out of the box install, the lan seems to be configured with DHCP, but even then I cannot get a lease and my connection on MacOS says 'self-assigned IP' .

My conf:

hdcp

config dnsmasq
	option domainneeded '1'
	option boguspriv '1'
	option filterwin2k '0'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option nonegcache '0'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.auto'
	option nonwildcard '1'
	option localservice '1'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '12h'
	option dhcpv6 'server'
	option ra 'server'

netwrok

config interface 'lan'
	option type 'bridge'
	option ifname 'eth0'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '60'
	option proto 'dhcp'

In an interface, "proto DHCP" means DHCP client. What you need is "proto static".

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.