Mikrotik Router Board overflow

Mikrotik Router Board overflow

router board 751G
This example is run on a 751G-RB 2Hnd
  • Ether1 will be set as "ISP1" that connects to the modem or router from your ISP (ISP1) through "DHCP client".
  • Ether2 will be set as "ISP2" that connects to the modem or router of your second ISP (ISP2) through "DHCP client".
  • ISP1 is the main distributor of the Internet in the event of the modem or router ISP2 will take over and you will have redundant internet.
  • Ether3 to 5 and WLAN1 be bridged and Genat with both ISPs
I overflow the whole configuration to be as clear as possible.
Naming of the interfaces
It is clear when you give a name to the interfaces, this will make everything clear what cable hangs on any device.

Click "interfaces" then double-click "ether1"

When "name" you give ether1 called "ether1-ISP1, click" apply "then" ok ".

Then double-click "ether2"

When "name" you give ether2 called "ether2-ISP2

Do this for all interfaces, so it will not clutter.
DHCP Client Setting
Here we must ensure that there is an overflow occurred at the failure of ISP1 note so well.

Click "IP" then "DHCP client".

Click on the blue cross.

  • At "interface" select "ether1-ISP1"
  • To "add default route", select "NO", which is very important. Click "apply" then "ok".

Then click again on the blue cross to set "ether2-ISP2".

Under "Interface" "ether2-ISP2".

Then select from "Add default route" "NO", click "apply" and "OK".
Default route manually

Click "IP" then "Routes".

Click on the blue cross.

  • "Dst. Address" is 0.0.0.0/0
  • At "gateway" you enter the IP address of the router of the first ISP
  • When "Check gateway" select "ping" will check this setting if the router is online using ping.
  • In "Distance" you fill one in, click on "apply" then "ok".

Click on the blue cross.

  • "Dst. Address" is 0.0.0.0/0
  • At "gateway" you enter the IP address of the router of the second ISP
  • When "Check gateway" select "ping" will check this setting if the router is online using ping.
  • In "Distance" you fill in two, click on "apply" then "ok". The second distance will cause the router first one will be chosen as the default router. Failure of the first router which will only take over.

So the overflow settings are configured, note the distance on the default routes.
Make DNS settings
DNS cache is used to minimize external DNS request to an external DNS server. This is a simple recursive DNS server with local items. It is therefore slightly faster Internet browsing.

Click "IP" then "DNS".

Specify under "servers" to the IP address of a DNS server, click on the black arrow.

Give a second IP address of a DNS server, check "allow remote requests" to. Click "apply" and "OK".

Then click on "static"

Click on the blue cross.

When "name" enter eg "mijn.router.mijndomein" in, at "address" fill in the IP address you are going to give the bridge to the lan. At "TTL" (time to live) you enter a length of time the DNS records must be kept. Click "apply" and "OK".
Making Bridge for the LAN

Click "bridge" then on the blue cross.

Enter to "name" the bridge a name, such as "bridge-lan."

Then click on "ports" to add the interfaces to the bridge.

At "Interface", select "ether3-LAN1", click "apply" and "OK".

Again click the blue cross to add the following interface.

To "interface" select ether4-LAN2, click "apply" and "OK".

Thus the required interfaces are bridged.
The bridge give an IP address

Click "IP" then "addresses".

To "address" fill in 192.168.100.1/24 example, the / 24 subnet mask is 255.255.255.0. Under "Interface" "bridge-lan", click "apply" then "ok".
Configuring the DHCP server

Click "IP" then "DHCP server".

Click "DHCP setup".

Under "DHCP server interface" "bridge-lan", click "next".

"DHCP address space" is filled in automatically, click "next".

"Gateway for DHCP network" is also automatically filled in, click on "next".

"Addresses to give out" can change you, but here are automatically selected throughout the DHCP range, click "next".

"DNS servers" enter the first IP address in the bridge-lan, then add at least one DNS server, such as here at Google.

The "lease time" the time is that the DHCP server will give to one particular IP address, if you want to shorten the time you can change this, click "next".

The DHCP server has been set.
Configure wet settings

Click "ip" followed by "firewall".

Select the top "wet" and click on the blue cross.

In "chain" select "scrnat" in "Scr. Address" you enter the IP range in which was given to the bridge. For "out interface" select "ether1-ISP1.

Click through to "action" there select "masquerade".

Again click the blue cross to set ether2-ISP2.

In "chain" select "scrnat" in "Scr. Address" you enter the IP range in which was given to the bridge. For "out interface" select "ether2-ISP2.

Click through to "action" there select "masquerade".

So, everything is set up and working.

Comments

Popular Posts