Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have RaspberryPi3 running Android Things connected (ethernet) to a switch in order to communicate with other devices in network. There is no DHCP option.
I want to know if there is a way to assign a static IP to RaspberryPi?
It is possible thanks to the well known Linux command ifconfig:
ifconfig eth0 <YOUR-IP-ADDRESS>
Where eth0 is the ethernet adapter. You can do the same to wlan0 and so on.
Required, but never shown