How to Assign Static IP Remotely on 7.3.0 Devices
Objectives
Use Network Manager's command-line tools to configure network interfaces.
Prerequisites
1. SSH connection to remote device
2. IP addressing information (IP, Gateway, DNS, SSID [if wireless], etc)
Instructions
1. Establish remote connection and login to a shell.
2. Type "nmcli con show" and press Enter. This will display a list of all network connections. Note the name of the connection you want to modify (e.g., New 802-3-ethernet connection).
3. Modify the connection to use a Static IP. Example for the wired connection listed:
# nmcli connection modify 'New 802-3-ethernet connection' ipv4.addresses 10.5.1.65/24 ipv4.gateway 10.5.1.254 ipv4.dns "8.8.8.8 8.8.4.4" ipv4.method manual
Example for the wireless connection listed:
# nmcli connection modify 'FC' 802-11-wireless.ssid 'FC' wifi-sec.key-mgmt wpa-psk wifi-sec.psk 'pheephae5T' ipv4.addresses 10.5.1.220/24 ipv4.gateway 10.5.1.254 ipv4.dns "8.8.8.8 8.8.4.4" ipv4.method manual
4. Take the connection down and bring it back up using the connection NAME. Example for wired:
nmcli connection down 'New 802-3-ethernet connection' && nmcli connection up 'New 802-3-ethernet connection'
Example for wireless:
nmcli connection down 'FC' && nmcli connection up 'FC'
*NOTE: It is likely you will lose your current shell connection after this step.
This should be now up and running. If any issues happen, the user on-site will have to insert a keyboard and edit or remove the connection you created from the Network Manager GUI.