RHEL 8 dhcp-server issue
by LordGraves from LinuxQuestions.org on (#6FR0R)
Hi all, brand new to the forums and I havent been able to find a similar issue to the one I am experiencing.
I recently re-imaged my machine to RHEL 8.8 from CentOS 7. Most of the issues encountered were pretty easy to overcome, but my dhcpd.service is not working correctly.
I get the following error:
No subnet declaration for <my interface here> (no IPv4 addresses).
** Ignoring requests on <my interface here>. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface <my interface here> is attached. **
I am using the same dhcpd.conf file that I used in CentOS 7 so I know it works. I have included a sample of my conf file below"
option domain-name "domain.com";
option domain-name-servers dns IP 1, dns IP 2, dns IP 3;
default-lease-time 14400;
ddns-update-style none;
subnet <subnet info> netmask <netmask info> {
option routers <router IP>;
group fixed-address {
host host16-interface0 { hardware ethernet 02:01:00:00:00:00; fixed-address host16-interface0 ; }
host host16-interface1 { hardware ethernet 02:01:00:00:00:01; fixed-address host16-interface1 ; }
host host16-interface2 { hardware ethernet 02:01:00:00:00:02; fixed-address host16-interface2 ; }
host host16-interface3 { hardware ethernet 02:01:00:00:00:03; fixed-address host16-interface3 ; }
host host16-interface4 { hardware ethernet 02:01:00:00:00:04; fixed-address host16-interface4 ; }
host host16-interface5 { hardware ethernet 02:01:00:00:00:05; fixed-address host16-interface5 ; }
host host16-interface6 { hardware ethernet 02:01:00:00:00:06; fixed-address host16-interface6 ; }
host host16-interface7 { hardware ethernet 02:01:00:00:00:07; fixed-address host16-interface7 ; }
host host16-interface8 { hardware ethernet 02:01:00:00:00:08; fixed-address host16-interface8 ; }
host host16-interface9 { hardware ethernet 02:01:00:00:00:09; fixed-address host16-interface9 ; }
host host16-interface10 { hardware ethernet 02:01:00:00:00:0a; fixed-address host16-interface10; }
host host16-interface11 { hardware ethernet 02:01:00:00:00:0b; fixed-address host16-interface11; }
host host16-interface12 { hardware ethernet 02:01:00:00:00:0c; fixed-address host16-interface12; }
}
}
subnet <subnet info> netmask <netmask info> {
option routers <router IP>;
group fixed-address {
host host17-interface0 { hardware ethernet 02:01:00:00:00:00; fixed-address host17-interface0 ; }
host host17-interface1 { hardware ethernet 02:01:00:00:00:01; fixed-address host17-interface1 ; }
host host17-interface2 { hardware ethernet 02:01:00:00:00:02; fixed-address host17-interface2 ; }
host host17-interface3 { hardware ethernet 02:01:00:00:00:03; fixed-address host17-interface3 ; }
host host17-interface4 { hardware ethernet 02:01:00:00:00:04; fixed-address host17-interface4 ; }
host host17-interface5 { hardware ethernet 02:01:00:00:00:05; fixed-address host17-interface5 ; }
host host17-interface6 { hardware ethernet 02:01:00:00:00:06; fixed-address host17-interface6 ; }
host host17-interface7 { hardware ethernet 02:01:00:00:00:07; fixed-address host17-interface7 ; }
host host17-interface8 { hardware ethernet 02:01:00:00:00:08; fixed-address host17-interface8 ; }
host host17-interface9 { hardware ethernet 02:01:00:00:00:09; fixed-address host17-interface9 ; }
host host17-interface10 { hardware ethernet 02:01:00:00:00:0a; fixed-address host17-interface10; }
host host17-interface11 { hardware ethernet 02:01:00:00:00:0b; fixed-address host17-interface11; }
host host17-interface12 { hardware ethernet 02:01:00:00:00:0c; fixed-address host17-interface12; }
}
}
What the heck am I missing?
I recently re-imaged my machine to RHEL 8.8 from CentOS 7. Most of the issues encountered were pretty easy to overcome, but my dhcpd.service is not working correctly.
I get the following error:
No subnet declaration for <my interface here> (no IPv4 addresses).
** Ignoring requests on <my interface here>. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface <my interface here> is attached. **
I am using the same dhcpd.conf file that I used in CentOS 7 so I know it works. I have included a sample of my conf file below"
option domain-name "domain.com";
option domain-name-servers dns IP 1, dns IP 2, dns IP 3;
default-lease-time 14400;
ddns-update-style none;
subnet <subnet info> netmask <netmask info> {
option routers <router IP>;
group fixed-address {
host host16-interface0 { hardware ethernet 02:01:00:00:00:00; fixed-address host16-interface0 ; }
host host16-interface1 { hardware ethernet 02:01:00:00:00:01; fixed-address host16-interface1 ; }
host host16-interface2 { hardware ethernet 02:01:00:00:00:02; fixed-address host16-interface2 ; }
host host16-interface3 { hardware ethernet 02:01:00:00:00:03; fixed-address host16-interface3 ; }
host host16-interface4 { hardware ethernet 02:01:00:00:00:04; fixed-address host16-interface4 ; }
host host16-interface5 { hardware ethernet 02:01:00:00:00:05; fixed-address host16-interface5 ; }
host host16-interface6 { hardware ethernet 02:01:00:00:00:06; fixed-address host16-interface6 ; }
host host16-interface7 { hardware ethernet 02:01:00:00:00:07; fixed-address host16-interface7 ; }
host host16-interface8 { hardware ethernet 02:01:00:00:00:08; fixed-address host16-interface8 ; }
host host16-interface9 { hardware ethernet 02:01:00:00:00:09; fixed-address host16-interface9 ; }
host host16-interface10 { hardware ethernet 02:01:00:00:00:0a; fixed-address host16-interface10; }
host host16-interface11 { hardware ethernet 02:01:00:00:00:0b; fixed-address host16-interface11; }
host host16-interface12 { hardware ethernet 02:01:00:00:00:0c; fixed-address host16-interface12; }
}
}
subnet <subnet info> netmask <netmask info> {
option routers <router IP>;
group fixed-address {
host host17-interface0 { hardware ethernet 02:01:00:00:00:00; fixed-address host17-interface0 ; }
host host17-interface1 { hardware ethernet 02:01:00:00:00:01; fixed-address host17-interface1 ; }
host host17-interface2 { hardware ethernet 02:01:00:00:00:02; fixed-address host17-interface2 ; }
host host17-interface3 { hardware ethernet 02:01:00:00:00:03; fixed-address host17-interface3 ; }
host host17-interface4 { hardware ethernet 02:01:00:00:00:04; fixed-address host17-interface4 ; }
host host17-interface5 { hardware ethernet 02:01:00:00:00:05; fixed-address host17-interface5 ; }
host host17-interface6 { hardware ethernet 02:01:00:00:00:06; fixed-address host17-interface6 ; }
host host17-interface7 { hardware ethernet 02:01:00:00:00:07; fixed-address host17-interface7 ; }
host host17-interface8 { hardware ethernet 02:01:00:00:00:08; fixed-address host17-interface8 ; }
host host17-interface9 { hardware ethernet 02:01:00:00:00:09; fixed-address host17-interface9 ; }
host host17-interface10 { hardware ethernet 02:01:00:00:00:0a; fixed-address host17-interface10; }
host host17-interface11 { hardware ethernet 02:01:00:00:00:0b; fixed-address host17-interface11; }
host host17-interface12 { hardware ethernet 02:01:00:00:00:0c; fixed-address host17-interface12; }
}
}
What the heck am I missing?