Versions Compared

Key

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

...

Raspberry Pi 2 Model B

Enter the command ‘sudo nano below and hit enter:

Code Block
$ sudo nano /etc/network/

...

interfaces



The Nano text editor will open with the Interfaces file.

...

Raspberry Pi 3 Model B

Enter the command ‘sudo nano below and hit enter:

Code Block
languagetext
$ sudo nano /etc/dhcpcd.

...

conf



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


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


You’ll need to edit the numbers addresses in the snippet so they to match your network configuration.

...

Line

Value

Interface

This defines which network interface you are setting the configuration for, eth0 = wired, wlan0 = wireless.

Static ip_address

The IP address you want VSM Express to assume (in the proper range for your network).

Note: Pay attention to not use an IP already used by another device in your LAN or that can be assigned to another device by your router via DHCP  (Make sure you leave the /24 at the end)

Static routers

This is the IP address of your default gateway

Static domain_name_servers

This is the IP address of your DNS


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

...

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


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

anchor



Restart the Raspberry PiRestart the Raspberry PiYou 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

Anchor
Restart the Raspberry Pi
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:

...

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


Give your the Raspberry Pi a couple of minutes to restart and then discover it using the VSM Express Virsae Management Tool. If everything is fine

If done correctly, you will see your VSM Express the Raspberry Pi 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 from the beginning by burning a fresh image to onto the MicroSD card: