Nmstate: Convert temporary iproute network configuration to persist
The network configuration done by iproute will be removed after reboot. People are using they own scripts or service to persist their network configurations.
Starting version 1.0, Nmstate supports converting network configuration created by iproute to persist with the help of Nispor and NetworkManager:
- Nispor query current network configurations from kernel.
- Nmstate instruct NetworkManager to save the network configure in persistent way.
Only a single command required:
|
|
Please note: bond in “active_backup” mode with fail_over_mac=active
option does not allow MAC address been set explicitly, you need to remove
it manually before asking nmstate to apply it:
|
|
Example
Assume you create a bond and hope to persist it.
|
|
Now you get the configuration of bond0 and its ports saved in NetworkManager:
|
|