I managed to install openwrt 21.02 on an old xiaomi 3g router.
The internet box as an ip address of 192.168.1.1, I have a DHCP server on a rasperry pi 4 (192.168.1.149)
Openwrt default ip address is 192.168.1.1. I would like to change this for, let's say, 192.168.1.97
If I go to network/interfaces and chage 192.168.1.1 to 192.168.1.97 save and apply, It tasks several minutes and notghin responding (nor 192.168.1.1 or 192.168.1.97).
The only way to fix things is to reboot the router, and then it's ip address is still 192.168.1.1
So can someone explain me how to change this setting ?
If I plug my laptop on lan0 or lan1 on openwrt router.
If I want a DHCP address for the laptop it fails.
And nothing works.
If I setup a static ip address on my laptop, i can access the web, the router (192.168.1.97), but not the dhcp server (192.168.1.149 does not respond) and my NAS 192.168.1.101 is not reachable !!!
I really don't understand how to configure openwrt as just a switch with wifi connection possibility.
Frollic : thank you it works well with dumb mode. The only drawback is that there are only 2 rj45 port available...
I would have like 3 connections (the cable from the 1st floor, the NAS, and a third cable that goes on another room on floor 0 ...
In fact my internet box is in my office room.
There is a cable rj45 from that room to the living room (still floor 1). (there is a switch for tv, ps4, tv player ...)
From that switch I have the rj45 cable that goes to floor 0
Now on floor 0, I can connect that cable to the openwrt router on port lan0 and my Nas on lan1, and I can use openwrt wifi.
The only drawback is that it would have be great to have a third port, since I have another rj45 cable that goes in an another room...
there's also a USB port, on the v1 of the device, which could be used as additional ethernet port(s), but a gigabit switch is probably cheaper, anyway.
I've never heard of such a tab - until you mentioned it.
If your device has a switch built in, it would be under Network > Switch. If this is the case, the WAN port is usually assigned as "untagged" on line 2 (VLAN 2), you would turn that off and change it to "untagged" on VLAN 1.
This is a DSA kernel, there is no Switch page. Also in later versions, bridges are declared separately.
First go to Network-Interfaces and delete the wan interface. Your use case (dumb AP) only needs a lan network. This will free up the wan port for other uses. Then click the Devices tab at the top of Network->Interfaces and find the line for br-lan. Click the Configure button on that line. Add wan to the list of Bridge Ports that are in br-lan. The three Ethernet ports on the back of the router are named wan, lan1 and lan2. You want them all in the same bridge br-lan so that devices plugged into them are switched to the same network.