OpenWrt IP and DHCP Configuration Step to Step (with Picture)

OpenWrt Lan and DHCP configuration.

Before starting OpenWrt Lan and DHCP configuration you must know what is DHCP  in the network and why it used.

DHCP full form is Dynamic Host Configuration Protocol. DHCP is a client-server protocol that is used to provide automatically IP (Internet Protocol) addresses to the client and other network information like subnet mask, DNS server gateway.

DHCP can be used in small and Large both networks to autoconfiguration of IP address from DHCP server (Router) to DHCP client (PC/Laptop/Mobile). If the DHCP server is disabled in the router then you have to configure every client manually with IP address, gateway, subnet mask, DNS server, it’s call manual configuration. But it can be done automatically with DHCP protocol using auto network configuration.

The configuration of  DHCP Server in OpenWrt  Routers.

The 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 sometimes it’s become a 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 the OpenWrt router in your PC/Laptop your PC/Laptop Lan must be in DHCP mode or if using manual IP configuration then it should configure with 192.168.1.x series.

See here… how to configure Laptop/PC Lan IP Address  

  • 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 the Address Bar.
    Default Username: root
    Password: blank(no password)

By default OpenWRT Router no password so when you will log in the first time it will  give you a yellow color notification window “No password set

Recommended setting the password first to protect your router from UN-authorize access.

Click Login  After Login Click Go to password configuration to set a new password.

OpenWrt  Default IP Address Change

To change the Default IP address to any other IP series go to the top menu and find the “Network” option inside the network click the “Interfaces” Option.

  • Ip Address Change: Go to Network –>Interfaces –> LAN and Edit

Lan Ip change in OpenWrt

 

After Click on Interfaces, you will get all the interface detail of your routers.

Lan interface icon will be in Green Color and WAN interface icon will be in RED color.

To change the LAN IP click the Edit button in LAN interfaces.

openwrt multiple dhcp pools

Inside LAN you will get given an option.

LAN Configuration

Protocol: Static address ( leave it as it is).

IPv4 address: 192.168.1.1 ( change New IP address in this box).

IPv4 netmask: choose netmask from the 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 server: If you want to add a DNS server you can use it here.

DHCP Server Configuration

This option will Enable and Disable your router DHCP server. If you are using OpenWRT in AP mode then you should not enable DHCP server but if you are using OpenWRT as a router then the DHCP server should Enable it.

You can enable and disable your router DHCP option as per the configuration of your router.

Ignore Interface: Disable DHCP for this interface

If Checkbox is checked it means DHCP server is Disabled but if CheckBox is Uncheck then DHCP server will Enable and you will Get the option given below to configure the DHCP server.

Start IP: 2  this IP server will start providing from this number. ( you can use any number of IPs as per your network size. Exp: suppose in your network only 10 users working then you can use 2-10 IP address only.

End IP: this will be the last IP server will provide to the client.

OpenWrt DHCP configuration

Click Save & Apply For Settings Changes.

OpenWrt Save Option

If you have changed the IP series of your Router LAN IP then you have to use the new IP address to open again your router. If you have enabled the DHCP server you can use the DHCP option in the 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 a Mac access list to protect the 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.


Related Post