Give Ember a Static IP Address for a Wired Network

Most people's home or office networks are managed by a router, which gives out IP addresses to devices such as phones, computers, and Ember using DHCP when they join the network. However, for security reasons, you may have a wired network that only uses a switch and has no internet connection, in which case the devices themselves must assign their own IP addresses. Ember isn't set up to assign its own IP, but it is possible using the following method, which allows Ember to boot its firmware from a MicroSD card instead of its normal onboard memory. Here's how to do it:

1. Get a MicroSD card.

2. Download our development image here.

3. Write it to the MicroSD card with Win32DiskImager or Apple Pi-Baker.

4. Insert the card into Ember and reboot.

5. When you see the Autodesk logo on the Ember screen, connect a USB cable.

6. SSH into the printer.

7. At the root@ command prompt, type resize-rootfs, then press Enter.

8. Type reboot, then press Enter. The machine will reboot.

9. Once Ember boots up again, type nano /etc/network/interfaces, then press Enter.

10. In nano, use the arrow keys to navigate to the bottom of the file until you see the following line:

iface eth0 inet dhcp

11. Replace dhcp with static, then add lines for your address, subnet, and gateway. The four lines should look like this:

iface eth0 inet static

address [your IP address]

netmask [your subnet]

gateway [your gateway IP address if you have one]

12. Hit Ctrl+O (writeOut), then Enter to save the file, then Ctrl+X to close nano.

13. Type systemctl enable smith.service and press Enter.

14. Type systemctl enable smith-client.service and press Enter.

15. Reboot (keep the SD card inserted – it’s your new firmware) and plug in an Ethernet cable and you should be good to go.

Have more questions? Submit a request