nmcli connection reload +网卡名

nmcli connection reload eth0

重载所有ifcfg或route到connection(不会立即生效)

nmcli connection reload  ifcfg-eth0

重载指定ifcfg或route到connection(不会立即生效)​

nmcli connection load /etc/sysconfig/network-scripts/ifcfg-eth0
nmcli connection load /etc/sysconfig/network-scripts/route-eth0

立即生效connection,有3种方法

nmcli connection up eth0
nmcli device reapply eth0
nmcli device connect eth0

版权声明:本文为博主原创文章,未经博主允许不得转载。

Linux,oracle