Routing using interface as gateway w/DHCP

In routerOS, when setting a route, instead of adding a gateway IP address, you can select the only an interface.

  • If that interface is PPPoE, routerOS will automatically set the GW to the PPPoE GW when it connects
  • If that interface has a /30 network on it, routerOS will automatically set the GW to the other available address on the /30

So why can’t routerOS automatically find the default gateway address when DHCP is running on that interface and assign it to that route?

Mikrotik, any reason why you would not make this work?

Maybe I’m missing something here, but when you set add-default-route on a DHCP client to yes, a default route will be added to the routing table with the gateway set to the IP served to the client via DHCP.

Yes but I don’t want to add a default route, I want to add a specific route.

It would be really nice if instead of an add default route checkbox, they had a “+” that came up with the same options as adding a static route. This would solve many problems.

actually, single ‘routing-table’ option for DHCP default route would be enough: you always can create separate routing table with default route, and then use routing rules to send only specific traffic to that routing table…

MT? =)