I assume that Raspbian has been assigned an IP address automatically by your home wireless router using DHCP. To set a static IP address for it:
ifconfig. Note the interface (say
eth0) and the values of the
netstat -nr. Note down the values of the
/etc/network/interfacesfile in an editor.
Change the interface
Add these lines below that and save the file:
address 192.168.0.99 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1
192.168.0.99is the static IP address you want to assign to the system.
Maskvalue noted above.
Destinationvalue noted above.
Bcastvalue noted above.
Gatewayvalue noted above.
You will also need to set the DNS servers manually, as described here.
Reboot the system and it should have the static IP address you assigned.
Tried with: Raspbian 7