Community discussions

MikroTik App
 
glaurutis
just joined
Topic Author
Posts: 21
Joined: Tue Jan 31, 2006 5:34 pm

Two isp in mikrotik

Thu May 31, 2007 10:32 pm

Well, i have mikrotik 532A with 564. In eth1 is the first isp this connection comming from a cisco (i have the administration of this, an i have a whole clase c). eth2 is my lan, eth 3 is a switch with vlan port, eth4 is the second isp (but i don´t have administration of this an is a /29).

My problem is this:

In the switch i have clients with diferent ip address public without nat and privated using the first isp. An a second client coneccted to the second isp between a bridge interface (eth3, eth4) an using routing-mark to this client and some rules to work. It work properly but my problem is when y try to select an addrees of my lan (privated address) to use the second isp. I try an try an try but nothing..... i see packet going out from this isp but dont going in. I use similar configuration but nothing. I think it don´t work because eth1 is not member of bridge interface. But i try this, i put eth1 in the same bridge but nothing. :?

I don´t want to do balance or nathing else, i only need to use the second isp for my lan.

Any suggestion? i read al the examples but nothing work. I use router os 2.43

Thanks in advance

Gustavo
 
glaurutis
just joined
Topic Author
Posts: 21
Joined: Tue Jan 31, 2006 5:34 pm

Re: Two isp in mikrotik

Fri Jun 01, 2007 10:53 pm

The problem is resolved :D

Thanks any way

Gustavo
 
fly_man
just joined
Posts: 1
Joined: Mon Jun 04, 2007 11:43 am

Re: Two isp in mikrotik

Thu Jun 07, 2007 3:48 pm

how did you reslove the problem, i have two isp and it dosn't work, please help, routes? nat?
 
glaurutis
just joined
Topic Author
Posts: 21
Joined: Tue Jan 31, 2006 5:34 pm

Re: Two isp in mikrotik

Fri Jun 15, 2007 8:49 pm

Well i try first the configuration on my pc. An it works fine to browse on internet. But my problem is when i try to access to webservers on the some mikrotik routerboard but in another eth with the first isp. I can ping the url an it resolve the external ip, But i can´t browse or access to servers in the first connection. Here is my configuration.

Any body can tell me why i dont browse or access them????

/ interface ethernet
set LAN name="LAN" mtu=1500 mac-address=00:0C:42:06:14:17 arp=enabled \
disable-running-check=yes auto-negotiation=yes full-duplex=yes \
cable-settings=default speed=100Mbps comment="" disabled=no

set Metrotel name="Metrotel" mtu=1500 mac-address=00:0C:42:06:05:63 \
arp=enabled disable-running-check=yes auto-negotiation=yes full-duplex=yes \
cable-settings=default speed=100Mbps comment="" disabled=no

/ ip address
add address=192.168.1.1/24 network=192.168.1.0 broadcast=192.168.1.255 \
interface=LAN comment="LAN" disabled=no

add address=190.12.98.20/29 network=190.12.98.16 broadcast=190.12.98.23 \
interface=Metrotel comment="Metrotel" disabled=no

/ ip route
add dst-address=0.0.0.0/0 gateway=190.12.98.17 distance=1 scope=255 \
target-scope=10 routing-mark=Gustavo comment="" disabled=no

/ ip firewall nat
add chain=srcnat out-interface=Metrotel src-address=192.168.1.110 \
action=src-nat to-addresses=190.12.98.20 to-ports=0-65535 comment="" \
disabled=no

/ ip firewall mangle
add chain=prerouting in-interface=LAN src-address=192.168.1.110 \
action=mark-connection new-connection-mark=Gustavo passthrough=yes \
comment="Prueba Gustavo" disabled=no
add chain=prerouting in-interface=LAN src-address=192.168.1.110 \
action=mark-packet new-packet-mark=Gustavo_UP passthrough=yes \
comment="" disabled=no
add chain=prerouting in-interface=LAN connection-mark=Gustavo \
action=mark-routing new-routing-mark=Gustavo passthrough=no comment="" \
disabled=no

add chain=forward src-address=192.168.1.110 action=mark-connection \
new-connection-mark=gustavo_con_down passthrough=yes comment="Gustavo \
DOWN" disabled=no
add chain=forward in-interface=Metrotel connection-mark=gustavo_con_down \
action=mark-packet new-packet-mark=gustavo_down passthrough=no comment="" \
disabled=no

/ ip firewall filter
add chain=forward in-interface=LAN out-interface=Metrotel \
src-address=192.168.1.110 action=accept comment="Metrotel Prueba Gustavo" \
disabled=no

add chain=forward in-interface=Metrotel out-interface=LAN \
dst-address=192.168.1.110 dst-address-type="" action=accept \
comment="Metrotel Prueba Gustavo" disabled=no

/ queue tree
add name="Gustavo prueba up" parent="-- METROTEL UP --" \
packet-mark=Gustavo_UP limit-at=0 queue=default priority=8 max-limit=0 \
burst-limit=0 burst-threshold=0 burst-time=0s disabled=no

add name="Gustavo" parent="-- LAN --" packet-mark=gustavo_down limit-at=0 \
queue=default priority=1 max-limit=0 burst-limit=0 burst-threshold=0 \
burst-time=0s disabled=no