Closed AristoChen closed 3 years ago
If network interface is configured in /etc/network/interface, nmcli device status will indicate the interface as unavailable, so we should add grep -v unavailable, then we can use ip_editor instead of nm_ip_editor to handle setting static IP
/etc/network/interface
nmcli device status
unavailable
grep -v unavailable
ip_editor
nm_ip_editor
If network interface is configured in
/etc/network/interface
,nmcli device status
will indicate the interface asunavailable
, so we should addgrep -v unavailable
, then we can useip_editor
instead ofnm_ip_editor
to handle setting static IP