<div dir="ltr"><br><div>Hello,</div><div><br></div><div>I have to migrate a server IP to a new NM managed server, which I setup.</div><div><br></div><div>The new server has the primary IP cups6 <a href="http://192.168.48.46/24">192.168.48.46/24</a> (ens224) and dhcp on boot.<br></div><div>I like to add a manual IP 192.168.48.16 like in the old setup, on cups5:<br></div><div><br></div><div><span style="color:rgb(0,0,0);font-family:monospace">ens224: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500</span><br></div><div><span style="font-family:monospace"> inet 192.168.48.20 netmask 255.255.255.0 broadcast 192.168.48.255<br>
</span><span style="font-family:monospace"><span style="color:rgb(0,0,0)">ens224:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
</span><br> inet 192.168.48.16 netmask 255.255.255.0 broadcast 192.168.48.255</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">ifcfg-ens224:1</span></div><div><span style="color:rgb(0,0,0);font-family:monospace"># cups ontop of cups5</span><br></div><div><span style="font-family:monospace">DEVICE="ens224:1"
<br>BOOTPROTO="static"
<br>ONBOOT="manual"
<br>IPADDR="192.168.48.16"
<br>NETMASK="255.255.255.0"<br></span><br></div><div>When doing it with NM:</div><div><br></div><div>nmcli connection modify ens224 +ipv4.addresses <a href="http://192.168.48.16/24">192.168.48.16/24</a> ipv4.method manual<br></div><div>- it reorders the interfaces, ens224:1/<a href="http://192.168.48.16">192.168.48.16</a> becomes primary and </div><div>- <a href="http://192.168.48.46/24">192.168.48.46/24</a> secondary</div><div>- both are started auto or manually</div><div><br></div><div>But it should be:</div><div><br></div><div>primary: <a href="http://192.168.48.46/24">192.168.48.46/24</a> with dhcp onboot</div><div>second: 192.168.48.16 manual / static</div><div><br></div><div><br></div><div>Currently I'm doing (without NM):</div><div><br></div><div>ip addr add <a href="http://192.168.48.16/24">192.168.48.16/24</a> dev ens224 label ens224:1<br></div><div>ip addr del <a href="http://192.168.48.16/24">192.168.48.16/24</a> dev ens224 label ens224:1<br></div><div><br></div><div>Another approach was, adding a new interface:</div><div><br></div><div>> nmcli c add ifname ens224 type ethernet con-name ens224_1 <br>Connection 'ens224_1'successfully added.<br></div><div>> nmcli connection modify ens224_1 +ipv4.addresses <a href="http://192.168.48.16/24">192.168.48.16/24</a> ipv4.method manual<br></div><div>> nmcli con up ens224_1<br>Connection successfully activated<br></div><div><br></div><div>But this removes the existing ens224 interface and ens224_1 becomes the only one.</div><div><br></div><div>best regards,<br></div><div><br></div><div>Martin</div><div><br></div></div>