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

2020-10-19 Thread Guy Gold
Another approach (being you know the future IP address of your server), is to pass the IPaddr via a boot param, or better yet, use a kickstart file to fully automate everything else in the installation. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/installation_guid

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 ___