Hello, sorry for my English. I hope Google translated this somewhat.
I have a Fritzbox here and a Netgear WNDRMacv2 with Openwrt is to be connected behind it.
After the Netgear comes a switch with the clients.
The Netgear is supposed to provide a DNS server to operate a local web server.
I don't have access to the Fritzbox.
I've done it before with a DDWRT router, but unfortunately the hardware couldn't do it.
At that time I connected the Fritzbox to the WAN port on the router. The DDRWRT ran on a different subnet. In the DDWRT the web server is bound to a URL via IP.
So that I can reach the web server from the local network via the URL.
Unfortunately I can't manage to connect the Netgear to the Fritzbox.
How can I get an IP address from the Fritzbox via WAN port and then assign the IP from my web server to a URL in Openwrt?
Configure the netgear to use dhcp on the wan side, that should get it to query the fritzbox' dhcp server.... to reach a machine behind the netgear from the fritzbox' network you will need to add specific rules to reach through the netgears NAT and to allow connections initiated from outside the neatgears internal LAN.
The Netgear now gets an IP from the Fritzbox.
That has already worked. Now I would like to get from the Netgear subnet to the Fritzbox subnet. That doesn't work yet.
You need to create a rule for a port forward as now there is a NAT between the hosts behind the netgear and the fritzbox network, but that essentially would be the same if you would likd to access a server in your home network from the internet.
But maybe its time to talk about your ultimate goals? So instead of "how to do X" try to explain what problem X is intended to solve?