DHCP client with bridged NIC

Started by mauro, March 08, 2023, 12:58:48 PM

Previous topic - Next topic
Dear all,

I'm strugleing to figure out how to make this work.
I have a modem/router with Openwrt with 3 LANs (LAN, DMZ, DMZ_2), and for all of these there is a DHCP server.
I want to change the router/firewall from zeroshell used in DMZ to opnsense used in DMZ_2

Opnsense run on APU2c4.
I have 2 NICs bridged configured with DHCP client. opnsense receive the IP from the DHCP server when connected to the Openwrt main router.
the issue is that if I plug a pc to the second NIC of the bridge, the pc doesn't receive the IP. In other terms the bridge in Opnsense doesn't forward the DHCP server information.

Can I have some hints?

I've tried also to reverse the setting with DHCP server on Opnsense and Openwrt as client but with this I get really confused with routes and gateway and I can't figure out how to access the open internet from DMZ_2 machines...

To be honest I don't know which is the best or correct way of doing it. I have the actual configuration with Openwrt in charge of al DHCP server and works so far and it make sense to me

cheers

Did you set the two tunables as in the OPNsense documentation?

https://docs.opnsense.org/manual/how-tos/lan_bridge.html
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Dear all, thanks for help.

After few more tries and a further study I managed to get the following configuration working with DHCP server on Opnsense and openwrt as client.

To get access to internet from the DMZ I created a static route with destination o.o.o.o/o and gateway the DMZ interface

I hope this will help someone else

regards