arusi
March 4, 2010, 2:35pm
1
Hi all,
I´ve mikrotik routerboard 750 (http://routerboard.com/pricelist.php?showProduct=56 ) and need some help to configure it. Thank you for your assistance in advance.
I like to configure it with two ADSL Modems with local balancing. I saw this example http://wiki.mikrotik.com/wiki/Improved_Load_Balancing_over_Multiple_Gateways but I don’t know how to change it to fit my needs.
Can someone send me the complete script to configure it?
The router has two upstream (WAN) interfaces with dynamic addresses
Ethernet Port 1 = Modem ADSL 1 in Bridge mode PPPOE client with username and password
Ethernet Port 2 = Modem ADSL 2 in Bridge mode PPPOE client with username and password
The LAN interface has the IP address of 192.168.2.1
Ethernet Port 3, 4 and 5 = LAN
DHCP Server 192.168.2.150 - 192.168.2.200
arusi
March 5, 2010, 12:27pm
2
:global action
/interface set ether1 name=ether1-gateway
/interface set ether2 name=ether2-gateway
/interface set ether3 name=ether3-local-master
/interface set ether4 name=ether4-local-slave
/interface set ether5 name=ether5-local-slave
/interface ethernet set ether4-local-slave master-port=ether3-local-master
/interface ethernet set ether5-local-slave master-port=ether3-local-master
/ip address add address=192.168.2.1/24 interface=ether3-local-master comment="default configuration"
:if ([:len [/system package find name="dhcp" !disabled]] != 0) do={
/ip dhcp-client add interface=ether1-gateway disabled=no comment="default configuration";
/ip dhcp-client add interface=ether2-gateway disabled=no comment="default configuration";
/ip pool add name=default-dhcp ranges=192.168.2.150-192.168.2.254;
/ip dhcp-server add name=default address-pool=default-dhcp interface=ether3-local-master disabled=no;
/ip dhcp-server network add address=192.168.2.0/24 gateway=192.168.2.1 dns-server=192.168.2.1 comment="default configuration";
}
/ip dns {
set allow-remote-requests=yes
static add name=router address=192.168.2.1
}
/tool mac-server remove [find]
/tool mac-server add interface=ether3-local-master disabled=no
/tool mac-server add interface=ether4-local-slave disabled=no
/tool mac-server add interface=ether5-local-slave disabled=no
/tool mac-server mac-winbox disable [find]
/tool mac-server mac-winbox add interface=ether3-local-master disabled=no
/tool mac-server mac-winbox add interface=ether4-local-slave disabled=no
/tool mac-server mac-winbox add interface=ether5-local-slave disabled=no
/ip neighbor discovery set [find name=ether1-gateway] discover=no
/ip neighbor discovery set [find name=ether2-gateway] discover=no