I recently needed to change to a static IP address to install a camera on the Robo C2. I am new to the Raspberry OS so I am posting this to help any newbies out there. Im dating myself by saying this but In the past I have used VMS and many different UNIX OS systems and the UNIX commands are all basically the same as in the Raspberry OS and it did give me a little head start. Prerequisites before proceeding: 1. The Robo C2 needs to be add to your network. 2. The ability to reserve a network address on your router. “This will be used for the Robo C2 once you give it a static IP address” 3. The current network address of the Robo C2: “You need this to SSH into your Pi OS” 4. Username and Password of your Pi OS: Out of the box it is username: pi and password: raspberry 5. Download a SSH tool. “See comment below” 6. You should always backup your Pi OS before any major configuration changes. I use a tool called Win32 Disk Imager to do this, look it up on internet there is a lot of instructions out there on how to use the tool to backup and retore a Pi image. For all the commands below you need a SSH command terminal logged into your C2 Raspberry Pi OS. I use a tool called Putty to SSH into the OS. You also need to know how to use the nano text editor, search the internet to learn how to run the editor if you never have before. The editor is easy to use with some simple instructions. Changing your Robo C2 hostname You need to edit the hostname and change the “original-hostname” to your desired “new-hostname” use the following command. sudo nano /etc/hostname Next you need to edit the host file and change the line “22.214.171.124 original-hostname” to your new hostname “126.96.36.199 new-hostname” Use the following command. sudo nano /etc/hosts Now reboot your Robo C2. Use the following command. sudo reboot Add Static IP address You need to gather some information first. The network address listed below are examples; your network addresses will differ. Use the following command. ifconfig Record the lines in the following display. The eth0 listing below is for cable LAN connection. eth0 Link encap:Ethernet HWaddr b8:27:eb:b3:fc:2c inet addr:192.168.1.81 Bcast:192.168.1.255 Mask:255.255.255.0 if you are running a wireless connection than record the settings after the wlan0 listing. Record the following information. inet addr – 192.168.1.81 Bcast – 192.168.1.255 Mask – 255.255.255.0 You still need some more information, Use following command. netstat –nr Record the following information. Gateway – 192.168.1.254 Destination – 192.168.1.0 Now you need toedit and add this information to your Pi's network configuration file. Run the following command. sudo nano /etc/network/interfaces Change the top entry’s to be like this, enter the information you gathered from above. auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet static address 192.168.1.81 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.254 auto wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp iface “your new-hostname” inet static address 192.168.1.81 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.254 Adding the daemon to detect Wire vs. Wireless connection I noticed after setting up my Robo C2 on my home network I saw both a wire LAN connection and my Wireless connection on the router. I personally want a LAN connection for greater speeds. I found a plugin that will detect if you are using a LAN vs. Wireless network. Now on my network I only see my LAN connection. If I unplugged the LAN cable then it will use my wireless connection. It takes a reboot of the Robo C2 and about a minute or so but you will see the connection in your router will refresh and update. To start you need to add the ifplugd daemon. Run the following command. sudo apt-get install ifplugd Once installed you need to edit the ifupdown script. Run the following command. sudo nano /etc/ifplugd/action.d/ifupdown Edit the script to look like this. #!/bin/sh set -e case "$2" in up) /sbin/ifup $1 if [ "$1" == eth0 ]; then /sbin/ifdown wlan0 ; fi # new addition ;; down) /sbin/ifdown $1 if [ "$1" == eth0 ]; then /sbin/ifup wlan0 ; fi # new addition ;; esac The run the following command and you are all done. sudo shutdown -r now Once you are power back up your printer will have a new hostname, Static IP address, and only one network connection running.