FOG Handling DHCP Services
-
Awesome. Exactly the reply I needed.
Another thing I have had trouble with is in the past I tried editing that dhcp file but then after I did so, I did not get the FOG PXE boot anymore.
By default my FOG server is giving clients addresses on the same network as the FOG server and I need to change this without breaking it.
For example: A client will receive the address 10.10.2.6.
I need the DHCP to hand out addresses on my 10.10.222.0 network.I will keep trying and report any issues I come across.
-
@cary1102 Depends on the subnet mask as well. But I guess you are using class C netmask (255.255.255.0) and that would mean 10.10.222.x is in a different subnet. Then you need to add another scope to the dhcpd.conf file:
subnet 10.10.222.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; ...
But be aware that hosts in different subnets is an advances setup that might need other things like dhcpelay and gateway…
-
This post is deleted! -
@cary1102 Please post the output of the command
ip a s
as well. -
This post is deleted! -
@cary1102 said in FOG Handling DHCP Services:
Awesome. Exactly the reply I needed.
Another thing I have had trouble with is in the past I tried editing that dhcp file but then after I did so, I did not get the FOG PXE boot anymore.
By default my FOG server is giving clients addresses on the same network as the FOG server and I need to change this without breaking it.
For example: A client will receive the address 10.10.2.6.
I need the DHCP to hand out addresses on my 10.10.222.0 network.I will keep trying and report any issues I come across.
Hi,
on your ip a s output below i see 10.10.2.65/24 that means 255.255.255.0
but you told us that you want the dhcp to serve 10.10.222.0 how should that work?You need a route to have both networks communicating, FYI DHCP is a non routable protocol.
Or configure both the fog server and the dhcp range in the same subnet but exclude the fixed addresses (for example the fog server) from being served by the DHCP service.Regards X23
-
Okay so I have decided the best way for me to do this is to use my FOG server on the one interface and host DHCP on another interface. So I have set up DHCP on eno2 and FOG on my eno1 interface. Still the DHCP does not start.
My interfaces are as shown,
And my dhcpd.conf is as shown.
-
I looked over my config file and my range was incorrectly entered. DHCP services start now.
-
I have gotten my server to hand out the right addresses to clients. The only problem now is that when I try to PXE boot a client the pxe file is not found. It looks for the pxe file with the address 10.10.2.65 but it cannot be found. Any suggestions?
-
@cary1102 For that to work you need to push the router/gateway information to the clients in the 10.10.222.0 subnet. Add the following line so your config looks like this:
subnet 10.10.222.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; option routers 10.10.222.XXX; ...
Put in the gateway IP address instead of
XXX
. I suppose you have a router/gateway that is making communication between the two different subnets possible?!?You need to know that there might be other obstacles still in front of you. The clients use a couple different protocols like HTTP (easy), FTP and NFS to communicate with your FOG server and so the gateway needs to forward all those for the clients to be able to work properly.