Network Configuration

We need to bring up the interfaces (eth0) with a static IP address, raspian's default is dhcp.

Static IP address

# nano /etc/network/interfaces

Change

iface eth0 inet dhcp

to

iface eth0 inet static

and add the following lines

address 192.168.1.5
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

Restart Network

Restart network:

sudo /etc/init.d/networking restart