Static IP

To setup a peer to peer connection with a laptop or to connect your controller to a not DHCP controlled network, a static IP address is required. To set up a static IP address, it is mandatory to have a terminal session to your controller other then the interface you want to configure for static IP address.

Lets assume we want to set a static IP on the wired ethernet interface. Then we can use SSH over Wi-Fi or the serial terminal via USB.


Set static IP

In this example we change the IP address of the wired connection form auto (DHCP) to static. First we switch of the auto (DHCP) connect feature of the wired, connection:

nmcli con mod "Wired connection auto" connection.autoconnect no

Now we switch on static connect on the wired connection:

 nmcli con mod "Wired connection static" connection.autoconnect yes

We can now set the static IP address that should be used by the interface:

nmcli con mod "Wired connection static" ipv4.addresses 192.168.1.250/16

Go to Top