Skip to main content

Network Setup

In standalone mode, configure both serial access and network access. Serial access keeps the DevKit reachable when network connectivity is unavailable or misconfigured.

By default, the DevKit network interfaces use DHCP.

  • If you want to connect the DevKit directly to your computer, configure your computer's network interface with a static IP and connect it directly to the DevKit.
  • If you want the DevKit to obtain its IP address automatically from a network, configure the interface to use DHCP.

Check the Current IP Address

From the serial console, run:

sima@modalix:~$ ip a | grep inet
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host noprefixroute
inet 192.168.91.181/22 brd 192.168.91.255 scope global dynamic noprefixroute end0
inet6 fe80::ab34:b995:9f6e:160e/64 scope link noprefixroute
note

If you want to toggle between static and DHCP without rebooting the device, follow these instructions.

If sima-cli is installed on the DevKit, run this command to switch between DHCP and static configuration without rebooting:

modalix:~$ sima-cli network

The command opens an interactive menu for static and DHCP network configuration.

If sima-cli is not available, use nmcli to switch between the preconfigured connection profiles: end0-static and end0-dhcp.

note

The following instructions use NetworkManager profiles and apply to DevKit systems running eLxr 2.1 or later. If your system is running an earlier release, see the v2.0.0 documentation.

Switching to Static IP

To change the network interface from DHCP to static, run:

modalix:~$ sudo nmcli connection up end0-static
modalix:~$ nmcli -f NAME,DEVICE,STATE connection show --active
modalix:~$ networkctl status

Switching to DHCP

To change the network interface from static to DHCP, run:

modalix:~$ sudo nmcli connection up end0-dhcp
modalix:~$ nmcli -f NAME,DEVICE,STATE connection show --active
modalix:~$ networkctl status