Well, if translate word-by-word, then it should be something like:

/ip route add routing-mark=adsl dst-address=80.90.100.88/29 gateway=eth0
/ip route add routing-mark=adsl dst-address=192.168.200.0/24 gateway=eth1
/ip route add routing-mark=adsl dst-address=90.100.120.150/29 gateway=eth2
/ip route add routing-mark=adsl gateway=80.90.100.94 distance=1
/ip rule add src-address=80.90.100.92/32 action=lookup table=adsl

2012/7/30 Sim <[email protected]>

> Hello!
> I need to convert this "Linux" config to "Mikrotik config".
>
> I've TWO internet lines: HDSL and ADSL.
> HDSL is the default gateway (ETH2)
>
> I need to connect to Mikrotik (VPN) from "ADSL PORT".
> In this way all connection from/to ADSL will be forwarded over them and not
> over default gw.
>
> In linux I use iproute2 as this example where:
>
> - 80.90.100.92 is the IP of LOCAL DEVICE (Miktorik in this case)
> and
> - 80.90.100.94 is the ADSL GW
>
> Script:
> *Code:*
> #Table "ADSL"
> ip route add table adsl to 80.90.100.88/29 dev eth0
> ip route add table adsl to 192.168.200.0/24 dev eth1
> ip route add table adsl to 90.100.120.150/29 dev eth2
> ip route add table adsl to default via 80.90.100.94 metric 1
>
> #Create
> ip rule add from 80.90.100.92/32 table adsl
>
>
>
> Thanks and best regards!
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.butchevans.com/pipermail/mikrotik/attachments/20120730/5daafa09/attachment.html
> >
> _______________________________________________
> Mikrotik mailing list
> [email protected]
> http://www.butchevans.com/mailman/listinfo/mikrotik
>
> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
> RouterOS
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.butchevans.com/pipermail/mikrotik/attachments/20120730/eca94ed8/attachment.html>
_______________________________________________
Mikrotik mailing list
[email protected]
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS

Reply via email to