Let’s see the complete config of this OpenWrt router.
Also, are there any other routers/APs in your network currently?
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:
id say your windows (or apple or droid) isset to super-privacy mode changing MAC too often and using up 13 IPs available in that subnet.
Make bigger subnet/shorter leases.
The DHCP pool range is invalid for the network size defined.
But...
What specifically is this referring to? The computer? The router?
I don't see the 192.168.0.0/24 network anywhere in the config, so these addresses don't make any sense.
While this is possible, it wouldn't affect static IPs (outside the DHCP range) which is what the title of this thread describes as one of the issues. That said, if the OP is setting a static IP on a host that is within the DHCP pool, that would be problematic.
@RSHARM - please post the complete config as it is currently setup. There are inconsistencies even within this thread, so we need to see the latest.
Thanks... It looks like this is using the same bridge as the lan interface. IIRC, this was called out by someone in this thread, but not sure if it got fixed.
Sure would be nice if @RSHARM would post the latest config for us to see if they fixed things (or made them worse)
/etc/config$ ip -4 route
default via 192.168.100.1 dev wan proto static src 192.168.100.2
*.*.*.* via 192.168.100.1 dev wan proto static
192.168.0.0/28 dev br-lan proto kernel scope link src 192.168.0.1
192.168.2.0/28 dev br-private proto kernel scope link src 192.168.2.1 linkdown
192.168.100.0/24 dev wan proto kernel scope link src 192.168.100.2
[quote="RSHARM, post:17, topic:244865"]
I have to keep chaing stating IP eg - between192.168.0.2 and .3
[/quote]
What specifically is this referring to? The computer? The router?
I don't see the 192.168.0.0/24 network anywhere in the config, so these addresses don't make any sense.
LAN client, aka my computer
I don't see the 192.168.0.0/24 network anywhere in the config, so these addresses don't make any sense.
My WAN uses 192.168.1.1 or 192.168.100.1
LAN uses 192.168.0.1
Nothing is 192.168.0.0 what are you alking about ?
Well, I'm guessing that we're not going to see the rest of the config (dhcp, wireless, firewall) since it's been over an hour since network file was posted.
That said, the network file is a mess. It has a ton of issues and it's probably not worth trying to clean it up because it is more complex and time consuming to fix this than to start over from scratch. Combine that with the likely similar situation we'd find in the other files.
From what I can tell here, the problem is not due to any bug or singular misconfiguration, but rather a massively misconfigured setup that lacks clarity of the goals.
My suggestion, therefore, would be to completely reset to defaults and start over. It's probably best to start with a description of the goals and build one network at a time to reach the goals... ideally using the documentation in the OpenWrt wiki for proper implementation and then reviews here to spot and correct any issues before they are amplified by multiple overlapping errors.
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
list server '127.0.0.1#5453'
list server '0::1#5453'
list rebind_domain 'time.android.com'
option stripmac '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '25'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option force '1'
config dhcp 'lan2'
option interface 'lan2'
option start '100'
option limit '20'
option leasetime '12h'
option force '1'
option ra 'server'
option dhcpv6 'server'
list ntp '192.168.0.1'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
option piofolder '/tmp/odhcpd-piofolder'
config dhcp 'private'
option interface 'private'
option start '100'
option limit '150'
option leasetime '12h'
option force '1'
config dhcp 'guest'
option interface 'guest'
option start '100'
option limit '150'
option leasetime '12h'
option force '1'
config dhcp 'serverweb'
option interface 'server'
option start '100'
option limit '150'
option leasetime '12h'
option force '1'
config dhcp 'serverlocal'
option interface 'serverlocal'
option start '100'
option limit '150'
option leasetime '12h'
config host
option name 'Censored'
option ip '192.168.1.2'
list mac '00:00:00:00:00:00'
config host
option name 'Censored'
list mac '00:00:00:00:00:00'
option ip '192.168.1.3'
option leasetime 'infinite'
list tag 'Phone'
config host
option name 'Censored'
option ip '192.168.1.4'
list mac '00:00:00:00:00:00'
list tag 'Desktop'
option duid 'Censored'
config host
option name 'Censored'
option ip '192.168.1.5'
config host
option name 'Censored'
list mac '00:00:00:00:00:00'
option ip '192.168.4.6'
config host
option name 'Censored'
option ip '192.168.1.6'
option mac '00:00:00:00:00:00'
list tag 'Adaptor'
config host
option name 'Censored'
option ip '192.168.1.7'
config host
option name 'Censored'
option ip '192.168.1.8'
config host
option name 'Censored'
option ip '192.168.1.9'
option mac '00:00:00:00:00:00'
option leasetime 'infinite'
list tag 'Phone'
config host
option name 'Censored'
option ip '192.168.1.10'
option leasetime 'infinite'
list tag 'Laptop'
config host
option name 'Censored'
option ip '192.168.1.11'
option leasetime 'infinite'
config host
option name 'Censored'
option leasetime 'infinite'
option ip '192.168.1.12'
list tag 'Phone'
config host
option name 'Censored'
option ip '192.168.1.13'
option leasetime 'infinite'
option mac '00:00:00:00:00:00'
list tag 'Phone'
config host
option name 'Censored'
option ip '192.168.1.14'
list mac '00:00:00:00:00:00'
option leasetime 'infinite'
config host
option name 'Censored'
option ip '192.168.1.15'
config host
option name 'Censored'
option ip '192.168.2.2'
list tag 'TV'
config host
option name 'Censored'
list mac '00:00:00:00:00:00'
option ip '192.168.2.3'
option leasetime 'infinite'
list tag 'Phone'
config host
option name 'Censored'
list mac '00:00:00:00:00:00'
option ip '192.168.2.4'
option leasetime 'infinite'
config host
option name 'Censored'
list mac '00:00:00:00:00:00'
option ip '192.168.2.5'
option leasetime 'infinite'
list tag 'Phone'
config host
list mac '00:00:00:00:00:00'
option ip '192.168.2.6'
option name 'Censored'
option leasetime 'infinite'
list tag 'Phone'
config ipset
list name '192.168.1.9-192.168.1.12'
list domain 'User.lan'
option table_family 'inet'
config ipset
list domain 'NotMine.local'
list name '192.168.1.8-192.168.1.12'
option table_family 'inet'
config ipset
list name '192.168.1.8'
list name '192.168.1.9'
list name '192.168.1.12'
list domain 'NotMineMobiles.lan'
option table_family 'inet'
config ipset
list domain 'facebook.com'
list name 'facebook.com'
option table_family 'inet'
config host
option name 'Censored'
config host
option name 'Censored'
/etc/config$ cat /etc/config/dhcp
/etc/config$ cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option packet_steering '1'
option steering_flows '128'
option ula_prefix 'fd00::/8'
config device
option name 'br-lan'
option type 'bridge'
option macaddr '00:00:00:00:00:00'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
list dns '127.0.0.1'
list dns '0::1'
option ip6ifaceid '::1'
option delegate '0'
config interface 'lan2'
option proto 'static'
option device 'br-lan'
option ipaddr '192.168.0.1'
option netmask '255.255.255.240'
list dns '127.0.0.1'
list dns '0::1'
option delegate '0'
option ip6ifaceid '::1'
option auto '0'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
option peerdns '0'
list dns '127.0.0.1'
option hostname 'Cisco'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
option norelease '1'
option peerdns '0'
list dns '0::1'
option delegate '0'
config device
option name 'eth0'
config device
option name 'wan'
option macaddr '00:00:00:00:00:00'
config interface 'wwan'
option proto 'dhcp'
option auto '0'
option disabled '1'
config interface 'Wireguard'
option proto 'wireguard'
list addresses '10.2.0.2/32'
option private_key '='
list dns '127.0.0.1'
list dns '0::1'
config interface 'guest'
option proto 'static'
option ipaddr '192.168.3.1'
option netmask '255.255.255.240'
option device 'br-guest'
list dns '127.0.1.1'
option delegate '0'
option auto '0'
config interface 'private'
option proto 'static'
option ipaddr '192.168.2.1'
option device 'br-private'
option netmask '255.255.255.240'
list dns '127.0.0.1'
list dns '0::1'
option ip6ifaceid '::1'
option delegate '0'
config device
option type 'bridge'
option name 'br-guest'
option bridge_empty '1'
option macaddr '00:00:00:00:00:00'
option ipv6 '0'
config device
option type 'bridge'
option name 'br-private'
option bridge_empty '1'
option macaddr '00:00:00:00:00:00'
option ipv6 '0'
config device
option type 'bridge'
option name 'br-server'
option bridge_empty '1'
option macaddr '00:00:00:00:00:00'
option ipv6 '0'
config interface 'server'
option proto 'static'
option ipaddr '192.168.4.1'
option device 'br-server'
option netmask '255.255.255.240'
list dns '127.0.0.1'
list dns '0::1'
option ip6ifaceid '::1'
option auto '0'
config device
config interface 'serverlocal'
option proto 'static'
option ipaddr '192.168.5.1'
option netmask '255.255.255.0'
option device 'br-serverlocal'
option auto '0'
config device
option type 'bridge'
option name 'br-serverlocal'
option macaddr '00:00:00:00:00:00'
option ipv6 '0'
config wireguard_Wireguard
option description ' '
option public_key '='
option private_key '+='
list allowed_ips '0.0.0.0/0'
option persistent_keepalive '25'
option endpoint_host ''
option disabled '1'
config wireguard_Wireguard
option description '.'
option public_key '/='
option private_key '+='
option endpoint_host ''
list allowed_ips '0.0.0.0/0'
option persistent_keepalive '25'