DHCP Server on raspberry pi

Because AT&T devices require specific settings, we have to list everything out for them by MAC address. If you have service already installed, take a few minutes and gather all of the MAC addresses from all of the AT&T devices in your house. Here I have a couple of devices with assigned IP addresses, the AT&T devices, and the rest of the devices on the network will get an IP in the range of 192.168.1.100 to 192.168.1.150. I do have the R-Pi ethernet and wifi listed, as well as the AT&T gateway’s two MACs (even though it won’t take it, it still sends a DHCP request), as dhcpd was complaining about it in the logs.


/etc/dhcp/dhcpd.conf:

default-lease-time 600;
max-lease-time 7200;

ddns-update-style none;

authoritative;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.150;
option domain-name "mpd.local";
option domain-name-servers 192.168.1.1;
option routers 192.168.1.254;
}

host not-att1-assignedIP {
hardware ethernet 00:00:00:00:00:01;
fixed-address 192.168.1.70;
}

host not-att2-assignedIP {
hardware ethernet 00:00:00:00:00:02;
fixed-address 192.168.1.71;
}

host pihole-eth1 {
hardware ethernet 00:00:00:00:00:03;
fixed-address 192.168.1.1;
}

host pihole-wifi {
hardware ethernet 00:00:00:00:00:04;
fixed-address 192.168.1.2;
}

host att-gw-1 {
hardware ethernet 00:00:00:00:00:05;
fixed-address 192.168.1.200;
option domain-name "attlocal.net";
option domain-name-servers 192.168.1.254;
option routers 192.168.1.254;
}

host att-gw-2 {
hardware ethernet 00:00:00:00:00:06;
fixed-address 192.168.1.201;
option domain-name "attlocal.net";
option domain-name-servers 192.168.1.254;
option routers 192.168.1.254;
}

host att-tv-dev-1 {
hardware ethernet 00:00:00:00:00:07;
fixed-address 192.168.1.202;
option domain-name "attlocal.net";
option domain-name-servers 192.168.1.254;
option routers 192.168.1.254;
}

host att-tv-dev-1-wifi {
hardware ethernet 00:00:00:00:00:08;
fixed-address 192.168.1.203;
option domain-name "attlocal.net";
option domain-name-servers 192.168.1.254;
option routers 192.168.1.254;
}

host att-wap {
hardware ethernet 00:00:00:00:00:09;
fixed-address 192.168.1.205;
option domain-name "attlocal.net";
option domain-name-servers 192.168.1.254;
option routers 192.168.1.254;
}

Leave a Reply

My notes for future me