Rapberry PI Wifi Router

Prerequisite
For this guide, you will need
 * A Raspberry Pi 3: It can work on previous generations but you will need a WiFi USB card plus eventually manually install drivers.
 * Raspbian: This guide is written for Raspbian.

dhcpcd
dhcpcd is the default DHCP client in Raspbian. You need to disable it for the  interface to avoid conflicts with the rest of the setup.

Edit file  an add the following line at the end This must be above any   lines you may have added

And restart  using

Interface
The second step is to configure the interface with a static IP address.

Edit the file  and replace the block related to   by And apply the configuration using

Configure Access Point
First create the default config file using Then edit the file and change the following

Static IP Address
To find the mac address look at file