OpenWrt IP and DHCP Configuration Step to Step (with Picture)
OpenWrt Lan and DHCP configuration.
Before starting DHCP configuration you must know what is DHCP in network and why it used.
DHCP full form is Dynamic Host Configuration Protocol. DHCP is a client server protocol which is used to provide automatically IP (internet Protocol) address to client and other network information like subnet mask, DNS server gateway.
DHCP can be used in small and Large both network to auto configuration of IP address from DHCP server (Router) to DHCP client (PC/Laptop/Mobile).If DHCP server is disabled in router than you have to configure every client manually with IP address, gateway, subnet mask, DNS server, its call manual configuration. But it can be done automatically with DHCP protocol with using auto network configuration.
Configuration of DHCP Server in OpenWrt Routers.
Configuration of Local IP-Address and DHCP Server in OpenWrt required when we are using OpenWrt in Client Router or WISP mode. If you are not familiar with OpenWrt firmware then some time it’s become tuff job to find LAN IP and DHCP option in OpenWrt. We try to make LAN and DHCP configuration easier with Post complete Tutorial for OpenWrt LAN and DHCP configuration.
To open OpenWrt router in your PC/Laptop your PC/Laptop Lan must be in DHCP mode or if using manual IP configuration than it should configure with 192.168.1.x series.
- Default Ip- Address is 192.168.1.1
Put Same Series IP-Address in Pc/Laptop (Ex :192.168.1.x)
Open Internet Browser and type 192.168.1.1 in address Bar .
Default Username: root
Password: blank(no password)
By default Openwrt Router no password so when you will login first time it will give you yellow color notification window “No password set”
Recommended to set password first to protect your router from UN-authorize access.
Click Login After Login Click Go to password configuration for set new password..
OpenWrt Default IP Address Change
To change Default IP address to any other IP series go to top menu and find “Network” option inside network click “Interfaces” Option.
- Ip Address Change : Go to Network –>Interfaces –> LAN and Edit
After Click on Interfaces you will get all interface detail of your routers.
Lan interface icon will be in Green Color and WAN interface icon will be in RED color.
To change LAN IP click Edit button in LAN interfaces.
Inside LAN you will get given option.
Protocol : Static address ( leave it as it is).
IPv4 address: 192.168.1.1 ( change New IP address in this box).
IPv4 netmast : choose netmask from list as per your IP.
IPv4 gateway: you can add your gateway here but for local ip you can leave it blank.
IPv4Broadcast : Leave it Blank.
Use Custom DNS sever: If you want to add DNS server you can use here.
DHCP Server Configuration
This option will Enable and Disbale your router DHCP server. If you are using Openwrt in AP mode than you should not enable DHCP server but if you are using Openwrt as router than DHCP server should Enable.
You can enable and disable your router DHCP option as per configuration of your router.
Ignore Interface: Disable DHCP for this interface
If Check box is checked it means DHCP server is Disabled but if Check Box is Uncheck than DHCP server will Enable and you will Get option given below to configure DHCP server.
Start IP : 2 this ip server will start providing from this number. ( you can use any number of IP as per your network size. Exp: suppose in your network only 10 user working than you can use 2-10 ip address only.
End IP: this will be last IP server will provide to client.
Click Save & Apply For Settings Changes .
If you have change IP series of your Router LAN IP than you have to use new IP address to open again you router. If you have enable DHCP server you can use DHCP option in LAN ip of your computer and laptop by using Obtain an IP address automatically from your windows PC.
Network Tips : if you are a Wi-Fi user always use WPA2/PSK security type and you can add Mac access list to protect extra layer in your Wi-Fi security.
After Done with Save & Apply option you have Successfully done OpenWrt Lan and DHCP configuration.
Re-open with New IP-address Whatever you Changed in LAN.