I am working on a minor project task where I need to configure my router as a DHCP relay agent. What I have tried is

  1. Ignored the current interface which was serving as DHCP agent by default.

  2. Added the peice of code ( taken from OpenWRT documentation ) inside the dhcp file present inside /etc/config directory.config relay 'id'option interface 'lan'option local_addr '192.168.1.1'option server_addr 'remote_dhcp_server_ip'

    The result is not what I am expecting.

I have a strict requirement to use version 21.02.0 of OpenWRT for this task. I think I'm missing something important. Any help would be greatly appreciated. Thanks.