I want to do port fowarding of my raspberry Pi, so first I need to set static ip. I searched in Google but didn't find any easy answer.
If you are using Raspbian then
dhcpcd is used for network configuration. Just look into
/etc/dhcpcd.conf. At the end you will find some examples for static IP configuration. For further information look at
man dhcpcd.conf. For searching in Google you should use raspbian static ip address.