[SOLVED] UPNP Conflict When Adding Secondary IP on WAN Interface for ONT WEB Access

Hello MikroTik Community,

Current Setup:

  • MikroTik Router RBD53iG-5HacD2HnD (RouterOS 7.20.1)

  • ONT in bridge mode connected to Fiber interface

  • LAN subnet: 192.168.88.0/24

  • ONT management IP: 192.168.100.1

  • UPNP: Enabled and working for gaming applications

The Problem:

When I add an IP address on the Fiber interface to access the ONT:

/ip address add address=192.168.100.2/24 interface=Fiber comment="ONT Access"

If I release the DHCP client on the Fiber interface, UPNP starts creating NAT rules with the wrong gateway (192.168.100.2) instead of using my actual internet gateway.

I'm hoping someone can help me find a solution, maybe this is a bug of RouterOS?

You can try:

  1. Create a MACVLAN interface on top of the Fiber interface, named it ONT-Man.

  2. Move the 192.168.100.2/24 address entry from Fiber to ONT-Man.

  3. Add masquerade rule for out-interface=ONT-Man.

That should solve your problem.

2 Likes

Thank you very much, this solved my problem.:+1: