Public IP setup

Static IP 5 setup for DSL-G2562DG (006).pdf (539.7 KB)

Hi, is there a way i can setup this on RouterOS?

Just to confirm, you want your devices to have public IPs only and said IPs get routed through an L2TP tunnel inside a PPPoE one? If that's the case, it can be configured on a MT router

Yes, currently the ISP ONT/Router assigns a private IP and they only gave me that manual but I would prefer to use MT

According to this you can use MT. Depending on the connection speed, you may need a beefier than usual device - the L2TP over PPPoE burns CPU cycles.

Will this tutorial work? I will be using a RB2011 iL-RM for the test.

Not quite because your setup would be L2TP client over PPPoE. And in production you would need a more powerful device than RB2011, something like RB5009 would be more suitable.

As for the setup, following things should be done:

  1. Add PPPoE client on WAN-facing port (I'll assume ether1):
/interface pppoe-client
add interface=ether1 password="password" name=pppoe-out disabled=no user="username"
  1. If absent, add a NAT masquerading rule:
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out
  1. Add L2TP client with disabled default route:
/interface l2tp-client
add add-default-route=no connect-to="server_IP" disabled=no name=l2tp-out password="password" user="username"
  1. Add one of the public IPs to the bridge or the machine-facing interface/s
/ip address
add address="public_IP" interface="bridge_or_eth"
  1. Create new routing table for policy routing purposes:
/routing table
add fib name=thr_L2TP
  1. Add default route to the L2TP in the newly created table:
/ip route
add dst-address=0.0.0.0/0 gateway=l2tp-out routing-table=thr_L2TP
  1. Add routing rules to direct traffic from the devices to the L2TP tunnel:
/routing rule
add action=lookup interface="bridge_or_eth" table=thr_L2TP
  1. Assign the public IPs to the devices per the instructions from the ISP

Any critique to the suggested config is welcome

Good evening,

I wrote this little HowTo for RB3011UiAS-RM router.

It seems that the hardware is a little bit older. You may try, and if it will work, I guess that the performances should be lower (traffic encryption - because the router's CPU).

Anyway, because I wanted to use OpenVPN instead L2TP and new authentication methods and ciphers, last year I've upgraded the router's firmware to 7.19.4, but I was disappointed by the GUI, so I downgraded to 7.16.2 (stable) - the last with that graphics.

Regarding L2TP Server, in my RB3011UiAS-RM's WebFig menu (7.16.2 firmware), PPP -> L2TP Server section, a new group appears now: L2TPv3.