I have a setup where when connected to PPPoE i get a private ip address assigned.
Than the ISP routes a public subnet over this, i can than use this public subnet on my LAN interface so i can connect servers ‘directly’ public.
Problem is now that this private ip is now used by the mikrotik router as out interface, so every thing i do from the router towards internet will result in using the PPPoE private ip.
icmp will not be answered and i cannot access the upgrade.mikrotik.com host, also registration of teh router will not succeed, so it is stuck in trial mode…
Is there a way to tell the router that his internet interface should be the routed subnet ip i give him?
In the PPPoE server, secretes, use the Public IP belongs to you in Remote Address.
This way the PPPoE server will give the PPPoE client that public address when this client authenticate.
You could remove the “add default route” checkmark for the PPPoE interface and add a default route manually
which is like the automatically added route, but with the pref-src field filled with the IP address you want to use.
Tried that, ping to IP works, but to DNS names does not.
When i than enter the DNS servers to the routes an let it route whithout pref-src it does resolve and ping works.
However than the router cannot connect to the upgrade servers nor i can register it to the mikrotik site, it says: Error connection timed out
You can upgrade by downloading the packages from the MikroTik server then upload to the router and reboot.
For further help with your config please include a /export of the router configuration.
You need to use SRC-NAT to rewrite any connection initiated from the router to one of the Public adresses of the route Subnet.
In order to save addresses, I would abuse the very first address of the prefix, which is unusable within standard ethernet (Network address)