[Dnsmasq-discuss] DHCP: can't asssign a fixed IP to a MAC address
Mircea Bardac (IceRAM)
Thu, 30 Dec 2004 18:07:00 +0200
I know this sounds really strange, or newbie-ish, but I really can't do thi=
There must be something I'm missing here.
Here's my situation:
I've got some computer, each one with its MAC address. I want dnsmasq to=20
assign an IP and a name to each one, based on their MAC.
I fist want to get my computer to work properly.. and then I'll make the=20
others work too. Therefore, my goal is to get computer "aquarius" to have
=2D- /etc/dnsmasq.conf.my (included in /etc/dnsmasq.conf) --
# My Network Configuration
=2D-- /etc/hosts ---
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
192.168.0.1 server.home.bardac.net server
#192.168.0.2 aquarius.home.bardac.net aquarius
#192.168.0.3 graphicstation.home.bardac.net graphicstation
#192.168.0.4 doru.home.bardac.net doru
with these configs I get:
# dhcpcd -d
dhcpcd: MAC address =3D 00:0f:ea:3e:f7:3c
dhcpcd: your IP address =3D 192.168.0.14
Naming seems to work, but I find no way of making it use 192.168.0.2
This is the syslog output when aquarius asks for an IP (with the settings f=
server dnsmasq: DHCPDISCOVER(eth1) 00:0f:ea:3e:f7:3c
server dnsmasq: DHCPOFFER(eth1) 192.168.0.14 00:0f:ea:3e:f7:3c
server dnsmasq: DHCPREQUEST(eth1) 192.168.0.14 00:0f:ea:3e:f7:3c
server dnsmasq: DHCPACK(eth1) 192.168.0.14 00:0f:ea:3e:f7:3c aquarius
I've also tried using "dhcp-host=3Djudge" with the following changes in the=
1. uncomment "dhcp-host=3Djudge"
2. comment all the lines except dhcp-range=3D... (I don't want to be left=20
outside if it doesn't work)
3. uncomment the aquarius line in /etc/hosts
(this time, the same .14 IP assigned, but naming doesn't work).
I hope anyone can see the wrong thing I'm doing there.
I would definitely provide mode debug output, but I can't make dnsmasq give=
Thanks a lot.
Happy New Year everybody.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
-----END PGP SIGNATURE-----