Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3847

Troubleshooting • Re: reserving an ip address for a specific device on LAN

$
0
0
I think its the dns dnsmasq.conf file that does this but I can't find an example of how to configure dnsmasq.conf to reserve an ipv4 address for a dhcp client based on the clients mac address
The dnsmasq.conf file has full documentation and shows how to do this

Code:

# Always allocate the host with Ethernet address 11:22:33:44:55:66# The IP address 192.168.0.60#dhcp-host=11:22:33:44:55:66,192.168.0.60
I tend to use the host name instead of the MAC address, as I may switch cards from one Pi to another and I want to keep the same IP address

Code:

# Give the machine which says its name is "bert" IP address# 192.168.0.70 and an infinite lease#dhcp-host=bert,192.168.0.70,infinite

Statistics: Posted by rpdom — Thu Nov 14, 2024 4:59 pm



Viewing all articles
Browse latest Browse all 3847

Trending Articles