[Solved] RB450Gx4 not assign dhcp address to clients

Hello to all!
I have installed openwrt on my RB450Gx4 router but I can't get DHCP address to my client. Router doesn't assign an ip to client.
Here is my network config:

root@OpenWrt:/# uci show network
network.loopback=interface
network.loopback.ifname='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='fd8e:793d:804e::/48'
network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth0'
network.lan.proto='static'
network.lan.ip6assign='60'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan_dev=device
network.lan_dev.name='eth0'
network.wan=interface
network.wan.ifname='eth1'
network.wan.proto='dhcp'
network.wan_dev=device
network.wan_dev.name='eth1'
network.wan6=interface
network.wan6.ifname='eth1'
network.wan6.proto='dhcpv6'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='1 2 3 4 0'
network.vpn=interface
network.vpn.proto='none'
network.vpn.ifname='tun0'

When I go to Network > Switch I don't see WAN, but I see the wan (eth1) on my config.

What should I do to fix this?
Thanks in advance for any help!

Is your client the wired device plugged into LAN2?

Have you changed the switch configuration? Apparently the IPQ4019 does some strange things with switching, such as making it appear that eth1 is a direct connection from the port to the CPU. If you have not changed from the default configuration it should just work though.

Yes, my laptop is connected with wired to LAN2.

Is dnsmasq running? ps | grep dnsmasq
Does it listen to dhcps? netstat -lnp | grep dnsmasq
Restart the service and check the logs. service dnsmasq restart ; logread | grep dnsmasq

Thank you, it works, after restarting the service

If the problem is solved, feel free to mark the topic accordingly .

1 Like