Problem:
I want to install a printer on the network and connect it to the same vlan/subnet that my foreman_proxy is attached to and for which its issuing DHCP addresses. I want to leave the printer’s network configuration set to DHCP, but I want to specify the IP address that it’ll be offered by the foreman_proxy DHCP server. Is there a file on the foreman_proxy where I can define a static dhcp entry with the printer’s mac address?
Expected outcome:
Define static dhcp entries by mac address that the foreman_proxy will respect.
Foreman and Proxy versions:
3.4
Foreman and Proxy plugin versions:
No plugins are installed.
Distribution and version:
Rocky 8.6
Other relevant data:
Depending on the solution used, knowledge and configuration the easiest option would be a static reservation in the configuration which should simply be ignored by Foreman. For the normal Linux DHCP server it would look like this:
host printer {
hardware ethernet aa:bb:cc:dd:ee:ff;
fixed-address 192.168.0.23;
}
Another option would be using GitHub - theforeman/foreman_dhcp_browser: Web UI browser and editor for DHCP leases which will give you the option to do reservations with a new menu added to your subnets.
1 Like