Static IP Address on Raspberry Pi 2

Using Raspian, howto set a static IP Address on the Raspberry Pi 2.

To set the Pi to a static IP address, you need to know the following:
address
netmask
network
broadcast
gateway

Note:  You should verify with your router configuration that the above details match network settings.  If you do not, it may result in not being able to connect to your raspberry pi on the network or your raspberry pi may lose access to everything outside your network.

Now you edit /etc/network/interfaces and replace iface eth0 inet dhcp with iface eth0 inet static and add the information as above.  Example below, replace with information to suit the network settings for your Pi.

Now reboot