Hi Guys,
I’m looking for help on the following, I’ve attached a diagram which explains logically what I’m trying to achieve.
Capture.JPG
With this setup, I’d like to give each of the Draytek 2820’s their own public IP address from the /28 pool provided to us from our ISP. As well as this, I’d like to be able to assign multiple IP’s to certain router’s if that is possible.
I believe that I need to use OSFP to do this, but I’m unfamiliar with MikroTik routers as well as the OSFP.
Does anyone have a basic config that I can base my setup around? If I can see an actual config that somebody has used then I’m quite able to modify it for my need.
At the moment I have the following config enabled on the router, but I don’t believe this is the optimal way to achieve what I want, I guess it’s double NAT’n the traffic? Which I’d rather avoid, plus I’m unable to have a second IP active on the Draytek router, but that doesn’t surprise me.
ip address add address=x.x.183.146/28 broadcast=x.x.183.159 interface=ether1
ip address add address=x.x.183.147/28 broadcast=x.x.183.159 interface=ether1
ip address add address=x.x.183.148/28 broadcast=x.x.183.159 interface=ether1
ip address add address=x.x.183.149/28 broadcast=x.x.183.159 interface=ether1
ip address add address=x.x.183.150/28 broadcast=x.x.183.159 interface=ether1
ip address add address=x.x.183.151/28 broadcast=x.x.183.159 interface=ether1
ip address add address=x.x.183.152/28 broadcast=x.x.183.159 interface=ether1
ip address add address=x.x.183.153/28 broadcast=x.x.183.159 interface=ether1
ip address add address=x.x.183.154/28 broadcast=x.x.183.159 interface=ether1
ip address add address=x.x.183.155/28 broadcast=x.x.183.159 interface=ether1
ip address add address=x.x.183.156/28 broadcast=x.x.183.159 interface=ether1
ip address add address=x.x.183.157/28 broadcast=x.x.183.159 interface=ether1
ip address add address=x.x.183.158/28 broadcast=x.x.183.159 interface=ether1
ip address add address=172.16.100.100/24 broadcast=172.16.100.255 interface=ether2
ip pool add name=pppoe-pool ranges=10.10.10.10-10.10.10.100
interface pppoe-server server add interface=ether2 max-mtu=1488 max-mru=1488 keepalive-timeout=disabled one-session-per-host=yes max-sessions=0 default-profile=default authentication=pap disabled=no
interface pppoe-server server add interface=ether3 max-mtu=1488 max-mru=1488 keepalive-timeout=disabled one-session-per-host=yes max-sessions=0 default-profile=default authentication=pap disabled=no
interface pppoe-server server add interface=ether4 max-mtu=1488 max-mru=1488 keepalive-timeout=disabled one-session-per-host=yes max-sessions=0 default-profile=default authentication=pap disabled=no
interface pppoe-server server add interface=ether5 max-mtu=1488 max-mru=1488 keepalive-timeout=disabled one-session-per-host=yes max-sessions=0 default-profile=default authentication=pap disabled=no
interface pppoe-server server add interface=ether6 max-mtu=1488 max-mru=1488 keepalive-timeout=disabled one-session-per-host=yes max-sessions=0 default-profile=default authentication=pap disabled=no
interface pppoe-server server add interface=ether7 max-mtu=1488 max-mru=1488 keepalive-timeout=disabled one-session-per-host=yes max-sessions=0 default-profile=default authentication=pap disabled=no
interface pppoe-server server add interface=ether8 max-mtu=1488 max-mru=1488 keepalive-timeout=disabled one-session-per-host=yes max-sessions=0 default-profile=default authentication=pap disabled=no
interface pppoe-server server add interface=ether9 max-mtu=1488 max-mru=1488 keepalive-timeout=disabled one-session-per-host=yes max-sessions=0 default-profile=default authentication=pap disabled=no
interface pppoe-server server add interface=ether10 max-mtu=1488 max-mru=1488 keepalive-timeout=disabled one-session-per-host=yes max-sessions=0 default-profile=default authentication=pap disabled=no
ppp profile add name=pppoe-profile local-address=10.10.10.1 remote-address=pppoe-pool dns-server=8.8.8.8 rate-limit=10M/10M
ppp profile add name=sbs local-address=10.10.10.1 remote-address=pppoe-pool dns-server=8.8.8.8
ip firewall nat add action=masquerade chain=srcnat out-interface=ether1
ip route add dst-address=0.0.0.0/0 gateway=x.x.183.145
ppp secret add name=sbs password=sbs profile=sbs remote-address=10.10.10.55 service=pppoe
ip firewall nat add action=netmap chain=dstnat dst-address=x.x.183.146 to-addresses=10.10.10.55
ip firewall nat add action=netmap chain=srcnat src-address=10.10.10.55 to-addresses=x.x.183.146