Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Enter the command ‘sudo nano /etc/dhcpcd.conf’ and hit enter

Figure 30 – Raspberry Pi 3 Model B Network Interfaces Command

...

The Nano text editor will open with the dhcpcd.conf file:

Figure 31 – Raspberry Pi 3 Model B Network Interface File

...

Scroll all the way to the bottom of the file and add one, or both of the following snippets. Depending on whether you want to set a static IP address for a wired connection or a wireless connection eth0 = wired, wlan0 = wireless.

Figure 32 – Raspberry Pi 3 Model B Network Interfaces Snippets

...

interface wlan0

static ip_address=192.168.0.200/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1


Table 4 – Raspberry Pi 3 static IP address details

...

Once complete press ‘ctrl-X’ to exit the nano editor:

Figure 33 – Raspberry Pi 3 Model B Exit Nano Editor

...

You will be prompted to save the modified buffer, if you are happy with your changes press y if not press n:

Figure 34 – Raspberry Pi 3 Model B Network Interfaces Save Changes

...

If you press y you will be prompted for the file name to save as, Check that this is /etc/network/interfaces and then press enter:

Figure 35 – Raspberry Pi 3 Model B Network Interfaces Save As


Anchor
Restart the Raspberry Pi
Restart the Raspberry Pi

You will drop back to the Debian command prompt.

...

Info
At this point, the commands for Raspberry Pi 2 Model B and Raspberry Pi 3 Model B are again the same.

...

Restart the Raspberry Pi

...


You need to restart your Raspberry Pi for the changes to take effect. Type the command ‘sudo reboot’ and hit enter:

Figure 36 – Raspberry Pi Reboot


The Raspberry Pi will restart and your session will be dropped, you will receive an error message, click OK to this and then close the VirsaeTTY application:

Figure 37 – Raspberry Pi Session Dropped

...

Give your Raspberry Pi a couple of minutes to restart and then discover it using the VSM Express Tool. If everything is fine you will see your VSM Express listed with its new Static IP address. If not, you will need to find where you have gone wrong, or diagnose why it cannot communicate with its static IP details. You may need to start back with burning a fresh image to the MicroSD card:

Figure 38 – Raspberry Pi 3 Configuration Complete

...