Re: Create a static network configuration from a DHCP lease`

2020-09-30 Thread Eden Adogla
Another approach would be to update hook into the dhclient.d system like Shimi suggested and then edit the appropriate ifcfg- scripts found at /etc/sysconfig/network-scripts to hardcode the configs and then restart the interface. Such a change will guarantee that the config persists after boot. Ch

Re: Create a static network configuration from a DHCP lease`

2020-09-30 Thread shimi
On Wed, Sep 30, 2020 at 4:26 PM David Cohen wrote: > Hi, > I'm looking for an automated way to convert the DHCP address a server gets > during installation to a static IP configuration. > I have fixed leases so no future conflict is expected. > Is there a ready to use cli tool/script for CentOS 7

Create a static network configuration from a DHCP lease`

2020-09-30 Thread David Cohen
Hi, I'm looking for an automated way to convert the DHCP address a server gets during installation to a static IP configuration. I have fixed leases so no future conflict is expected. Is there a ready to use cli tool/script for CentOS 7 ? Best, David ___