Quickly set the current DHCP address as static in RHEL 7
I couldn't think of a way to quickly (scripted) set the current DHCP address as a static address in RHEL 7, so I created my own script.
The script uses the parameters in nmcli dev to pre-populate new parameters. It creates a basic config.
Script can be found at https://github.com/Blizzkid/nic-set-static. Contributors are warmly welcomed.
The script uses the parameters in nmcli dev to pre-populate new parameters. It creates a basic config.
Script can be found at https://github.com/Blizzkid/nic-set-static. Contributors are warmly welcomed.
01-09 Bestway. Doing customer service the worst way.
12-'16 Standardsupporter
Reacties
Maar waarom zou je een DHCP adres zomaar statisch gaan zetten?
Niet per se hetzelfde adres (het script laat dan ook toe het adres aan te passen). Maar ik gebruik het wel eens in een labomgeving (kvm/vmware) waar je begint met een dynamisch adres, en dan snel een statische config wil.Blokker_1999 schreef op vrijdag 10 maart 2017 @ 20:56:
Maar waarom zou je een DHCP adres zomaar statisch gaan zetten?
Reageren is niet meer mogelijk