Community discussions

MikroTik App
 
verrwirung
just joined
Topic Author
Posts: 3
Joined: Wed Jul 23, 2014 2:39 pm

2 ISP with different IP address

Wed Jul 23, 2014 2:48 pm

Hi. I'm new with this mikrotik routerboard. and i really need help, badly.
here's the situation:
I have an ADSL2+ connection which is connected in eth1. The modem is acting as bridge and the address is 192.168.1.1. My local network ip range is 172.18.0.0/16. Now the problem is I have a new connection which I would like to add in that network. The new ISP sent me an Cisco NTU and the address is 192.168.108.1. If I connect directly to that Cisco router, my laptop is getting 192.168.108.2 address and able to connect to the internet. Is there anyone who can guide me in setting this up to mikrotik? I tried it with all the search result from google, but can't figure it out. Is it possible for the current ip range (172.18.0.0/16) to connect to Cisco router (192.168.108.1) via Mikrotik? I also tried removing the ADSL2+ connection and connect the Cisco but still not connecting... Please help :(
 
User avatar
tavanajafar
just joined
Posts: 9
Joined: Thu Jul 24, 2014 5:32 pm

Re: 2 ISP with different IP address

Thu Jul 24, 2014 8:33 pm

HI

yes you can.
you must connect your local interface to one port of your Router such as ether2 and your Input Internet (send to you from CISCO Router) to ether1 port on your Router.Than add new DHCP-CLIENT to your router for ether1 then add new route "/ip route add gateway=your CISCO Address"and delete old default route.

and now you can connect to internet with old network range :)
 
Emile
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Thu Jul 24, 2014 12:39 pm
Location: Oudtshoorn, South Africa

Re: 2 ISP with different IP address

Fri Jul 25, 2014 11:16 am

Do you want to use both modems at the same time?

Here is what you can do if you only want to replace the modem with the cisco.

On you mirkotik..
Go to ip ---> route and check for something like 0.0.0.0/0 192.168.1.1
Change the 192.168.1.1 to 192.168.108.1
Also go to ip --> address and look for address that starts with 192.168.1.X
Edit it and change it to 192.168.108.2
PS: If the mikrotik gets its ip address from the router instead then don't worry about the above step.
 
verrwirung
just joined
Topic Author
Posts: 3
Joined: Wed Jul 23, 2014 2:39 pm

Re: 2 ISP with different IP address

Sat Jul 26, 2014 1:19 pm

Do you want to use both modems at the same time?

Here is what you can do if you only want to replace the modem with the cisco.

On you mirkotik..
Go to ip ---> route and check for something like 0.0.0.0/0 192.168.1.1
Change the 192.168.1.1 to 192.168.108.1
Also go to ip --> address and look for address that starts with 192.168.1.X
Edit it and change it to 192.168.108.2
PS: If the mikrotik gets its ip address from the router instead then don't worry about the above step.
Hi Emile,
This was a really nice advice, you're a genius!! It is working now and to answer your question, yes, I want to use both internet connections at the same time.
THANK YOU SO MUCH!!!
I followed this step and it ran smoothly...but there's still another problem..
with that ADSL2+ connection, I'm connected to another mikrotik site (main office) via PPTP VPN.
I actually want to use this ADSL2+ connection as an internal internet connection and make the new connection connect
to the VPN as it is much faster. I tried replacing all the VPN connection details with the ip details of the new ISP but
I still can't get thru...is there any work around here?

THANKS AGAIN!!
 
Emile
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Thu Jul 24, 2014 12:39 pm
Location: Oudtshoorn, South Africa

Re: 2 ISP with different IP address

Mon Jul 28, 2014 9:39 am

Im glad i could help.
Here is what you can do.
For example if adsl2 is isp1 and you just want 172.18.0.100 to use that connection.


-click on new terminal and paste
/ip route add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=isp1
/ip firewall mangle add chain=prerouting src-address=172.18.0.100 routing-mark=isp1
/ip firewall nat add src-address=172.18.0.100 action=masquerade routing-mark=isp1
That should work.
here is what each rule does.
--Route is create to route all traffic that is mark for isp1 to go to 192.168.1.1
/ip route add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=isp1
--All traffic for ip address 172.18.0.100 is mark to be routed through isp1
/ip firewall mangle add chain=prerouting src-address=172.18.0.100 routing-mark=isp1
--All traffic from 172.18.0.100 is being natted.
/ip firewall nat add src-address=172.18.0.100 action=masquerade routing-mark=isp1
PS: if you planning to group certian ip addresses together in address-list then instead of using src-address use address-list instead.

For example
/ip firewall nat add address-list=mylist action=masquerade routing-mark=isp1
 
verrwirung
just joined
Topic Author
Posts: 3
Joined: Wed Jul 23, 2014 2:39 pm

Re: 2 ISP with different IP address

Mon Jul 28, 2014 3:22 pm

Thanks for all the help.
This forum has been really helpful for Mikrotik beginners like me..
This is the first time I've used this small but powerful device and I'm really enjoying it..

As for the problems, thanks Emile, I managed to sort it out...the reply you posted about the prerouting and src-nat were right. I actually configured them even before doing your first advice. The problem I encountered was on the receiving end of the VPN, I just have to create another route for the new public IP address of the new ISP connection and that's it!

Thanks again!! :D