I have a pair of routers with firmware 24.10 on mt7621. The first router 192.168.1.1 is the main one, it receives the Internet from the provider and distributes it over lan and wlan, i.e. everything is standard. It is required that the second router receives Internet from the first router via wifi and all devices connected to router #1 and #2 co. work in the same subnet 192.168.1.1/24. According to the settings: On the second router in the lan interface, I registered the static ip 192.168.1.2, disabled dhcp, and added the gateway 192.168.1.1. In the wireless settings on the second router, I successfully connected via wifi to router #1 via the Scan button. If I log into the second router via ssh, I can successfully ping 8.8.8.8 from it, i.e. the radio bridge is working. But if I connect the laptop with a cable to router #2, then the laptop does not receive an ip address from router #1 in this case.
I don't know your router. I do what you describe with bthh5s. This router has two radios. One connects to my main router. The other is used to extend the Wifi. I use package relayd to bridge between the two radios; one is connected to LAN and the other to WWAN. The relaybridge bridges LAN and WWAN. I have a document for the the hh5 setup, written for openwrt 19, but this works for openwt 24.10. I have two working at the moment.
I would advise you to use WDS. Here is the how to: https://openwrt.org/docs/guide-user/network/wifi/wifiextenders/wds
Kr
I'm having a bit of trouble visualizing the physical topology here, but it sounds like there are 3 devices here... the ISP device and then 2 OpenWrt routers.
If the first OpenWrt router is connected via Ethernet to the ISP device, then you can use WDS or 802.11s mesh (WDS will be easier) to connect the 2 OpenWrt devices wirelessly.
If, however, the first OpenWrt router must be connected wirelessly to the ISP device, the only option will be relayd.
If I understood correctly, WDS allows you to create a radio bridge and at the same time use wifi distribution at the same time. But I don't need it, it's enough to distribute the Internet via cable from the second router. My main question is how to get dhcp from the first router while connecting notebook to the second one.
Can you draw a diagram of the network topology to make sure we understand how things will be connected?
I don't really understand how exactly I should draw the diagram, I'll just describe it in more detail ...
The main router #1 has a local address of 192.168.1.1, the cable from the provider is inserted into the wan port, the router distributes the Internet via wifi and cable, i.e. everything follows the classical scheme.
The second router #2 needs to be configured so that it receives Internet from router #1 via wifi (wireless bridge) and distributes it from its lan ports, while clients connected to the LAN ports of router #2 should receive ip addresses from router #1, not from router #2 and be in the same subnet as the clients connected to router #1, i.e. 192.168.1.1/24
a quick sketch on paper would be sufficient... you can take a picture and post it here.
Ok... so the main router is OpenWrt? or is it running some other firmware?
Are there two or three devices here?
As I described in the first post, I have two routers #1 and #2, both with openwrt 24.10 on soc mt7621.
Ok... then you can use WDS or 802.11s.