Hi,
I need to get a script together to edit the dhcp service configuration file dhcpd.conf.
Mac addresses are defined in classes ex.
class "HOST1" { match if substring (hardware, 1,18)=00:11:11:FF:FF:FF;}
class "HOST2" ...
class "HOST3" ...
...
followed by allow or deny statements:
deny members of "HOST1";
allow members of "HOST2";
...
...
The script should search for the MAC address entered by the user and if found should deny that class by changing allow to deny in the statement for that class and/or deleting the class.
If not found it should create a class with the given MAC address and add a deny statement for that class in the above given format.
I would appreciate any ideas or help...
Thanks
SB