Static IP in ChirpStack OS - How to?

My 2 cents of experience below

Set static IP settings in Chirpstack full OS

  • sudo su
  • cd /var/lib/connman
  • cd ethernet_dca632817e1c_cable (in my case)
  • cat settings (displays the current settings)

Change IP address to static (example)

  • connmanctl config <service> --ipv4 manual <ip address> <netmask> <gateway>
  • connmanctl config ethernet_dca632817e1c_cable --ipv4 manual 192.168.178.37 255.255.255.0 192.168.178.1
  • Changes immediately / if connected thru SSH the link will be broken directly and you have to ssh to new IP@
  • Do not change the settingsfile manually (changes effected the OS directly)

Good connman overview: https://variwiki.com/index.php?title=Static_IP_Address#Configuring_Static_IP
(also describes when you would like to use the /etc/network/interfaces instead of connman)

3 Likes