Hi all.
I'm doing my first experiences with openWRT, using a raspberry that I'm not using anymore... but I'm honestly getting a strange behaviour, with latest image (22.03.2)...
It's basicly a plain installation:
Isp-router -> wan (openWRT) -> lan -> clients
I got internet on wan side and if setting lan address in a client (manually), I'm able to connect to openWRT.
But that's all: no dhcp and no internet ( if manually set address ), to lan client.
I've enabled wifi too, but it's same behaviour: after connection no dhcp and all...
If querying dhclient, I can see requests and never get an answer... Am I running dhcp on wrong interface? But wifi fails too...
wan = eth0
lan = eth1
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether xxxxxxxxxx brd ff:ff:ff:ff:ff:ff
inet 192.168.1.9/24 brd 192.168.21.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::xxxxxxxxxxxx/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether xxxxxxxxxx brd ff:ff:ff:ff:ff:ff
inet 192.168.3.254/24 brd 192.168.3.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::xxxxxxxxxxx/64 scope link
valid_lft forever preferred_lft forever
Any good idea on how to troubleshoot and/or settle it?
In device settings wan is red and lan is green, so it seems to be ok...
firewall is default, so following network and dhcp.
- network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='xxxx:xxxx:xxxx::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='eth1'
network.wan=interface
network.wan.proto='dhcp'
network.wan.device='eth0'
network.lan=interface
network.lan.proto='static'
network.lan.ipaddr='192.168.3.254'
network.lan.netmask='255.255.255.0'
network.lan.dns='1.0.0.2,1.1.1.2'
network.lan.gateway='192.168.1.1'
network.lan.device='eth1'
- dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].ednspacket_max='1232'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv4='server'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.ra_slaac='1'
dhcp.lan.ignore='1'
dhcp.lan.ra_flags='managed-config' 'other-config'
dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
dhcp.@host[0]=host
dhcp.@host[0].name='fixdesktop'
dhcp.@host[0].mac='xxxxxxxxxxxx'
dhcp.@host[0].ip='192.168.3.30'
dhcp.@host[0].dns='1'
dhcp.@host[0].duid='0000xxxxxxx....'
Thanks a lot.
M.