I'm here to ask some help for a basic configuration because I'm new to this kind of things indeed.
I flashed my TP-Link TL901ND successfully, and then run the following commands:
root@LEDE:~# uci set wireless.default_radio0.encryption=psk
root@LEDE:~# uci set wireless.default_radio0.key=********
root@LEDE:~# uci set wireless.radio0.channel='4'
root@LEDE:~# uci set wireless.radio0.disabled=0
root@LEDE:~# uci set network.lan.ipaddr=192.168.1.6
root@LEDE:~# uci set dhcp.lan.start='75'
root@LEDE:~# uci set dhcp.lan.limit='10'
Now I notice that both default gateway and DNS server ip addresses transferred to the DHCP clients are the same ip address I set up for the lan ethernet interface of the router (192.168.1.6), but I wish they were both 192.168.1.1.
I can't find or figure out the correct command for my purpose.
Thanks in advance.
Emanuele
P.s. I'm not so expert in english language so I'm sorry for some imprecisions.
Why do you need to run a DHCP server on 192.168.1.6, don't you run a DHCP server on 192.168.1.1? (Maybe you need to disable the DHCP server on 192.168.1.6. It's usually done on access points which don't acts as routers.)
It's possible to set the DNS server as dhcp_option 6 in dhcp.lan, The default gateway is dhcp_option 3, which you can try.
Hello mikma, you are correct indeed, but actually I don't know how to disable DHCP and DNS server in LEDE and, at the same time, point the clients to 192.168.1.1 for DNS, DHCP and default gateway.
As I said, I'm a newbie and I can do just a bit.
By the way, your commands work great.
The LEDE router actually has 192.168.1.6 as its own ip address.
Cheers.
Add Gateway's IP at the Use custom DNS servers and untick This is the only DHCP in the local network. This helped me, but I am a newbie too, good luck!
Hi vasilis74 and thanks for your answer, but I did not have the LUCI interface so I should have done by the prompt.
Anyway I reinstalled the stock firmware.
Cheers.