Solved Change IP address use keyfile

Solved issue

solidsnake

Member
Joined
Oct 6, 2021
Messages
44
Reaction score
2
Credits
592
Hello

Oracle Linux 8.10

My server With the nmcli connection migrate command, I migrated the network over keyfile

Under /etc/NetworkManager/system-connections I open the connected network interface with vi and enter the IP I want to change, save and exit.

I restarted NetworkManager and now I can connect to my server with both the previous IP and the new IP :rolleyes:


Edit:
nmcli con show ens1f0np0 --> command result

IP4.ADDRESS[1]: 6.2.5.3/24 new IP
IP4.ADDRESS[2]: 6.2.5.4/24 old IP
 
Last edited:


Ok problem solved,

after changing the ip in the keyfile file
I restarted NetworkManager and ran the following command

nmcli con down ens4f0np0; nmcli con up ens4f0np0;
 
after changing the ip in the keyfile file
I restarted NetworkManager and ran the following command

nmcli con down ens4f0np0; nmcli con up ens4f0np0;
You don't have to do the down up thing, you can just run the up command to make it reconnect without bringing it down first.
Code:
nmcli con up ens4f0np0
Then it will reconnect with the new configuration.
 

Members online


Top