It depends on the router, e.g, the bt smarthub doesn’t allow this. best to google your router model and check.

Even if the router has the capability to do it, your isp will prob have custom firmware to disable the option as they don’t like you doing this.

You could do it with something like a draytek router, they are pricey but are designed for small business so are very configurable.