Now hit enter, you should be on the line below it.
Press “i” on your keyboard for insert mode, and backspace out where it reads dhcp and replace it with static.
Near the top there will be line that reads “iface eth0 inet dhcp” which means interface eth0 (ethernet) internet is set to DHCP or automatic obtaining of an IP address. In the second window type: sudo vim /etc/network/interfaces With the output of those two commands up, we’re going to switch over to our second tab now and begin to edit some files. This will show the Kernel IP Routing Table, which includes destinations, gateways, and more. Next we will need access to the routing tables and information, without clearing the screen type the following command: sudo route -n Since my Pi is plugged in I’m looking at the interface eth0 if you have yours via WiFi it will probably be listed as wlan0 instead. In terminal tab one, type the following command and leave it open as you will need access to this information in the next few steps: sudo ifconfig
#How to set up retropie to be on the network free
I’m using a copy of my file for this document, but feel free to replace my information with your network information. I recommend opening up to SSH sessions in different tabs, this will come in handy in a few moments when you begin to write the file. Instead you’ll have to delve into the configuration files inside of the RetroPie underbelly and manually input the settings. In order to static an IP on a RetroPie it isn’t quite as simple as most operating systems, or even various Linux flavors where a few clicks in the GUI lands you to network settings. My RetroPie therefore needs a static IP, much like my media server, and my laptops. I have a pool for DHCP IP addresses for things like phones and tablets, as well as guests, and then I have my real network, designated IP addresses used for static only.
If you’re like me you are a complete anal retentive bastard with your internal network.