Community discussions

MikroTik App
 
montcer9012
just joined
Topic Author
Posts: 15
Joined: Sat Sep 24, 2016 7:31 pm

Setting up a network with Mikrotik

Wed Sep 20, 2017 8:26 pm

Hello. Help!

I am setting up a network in my office, or at least trying to, with a Mikrotik aHP-Lite 941-2nd, WebFig 6.32.2, and my current problem is that I want the Mikrotik to join together 2 internet connections into 1, so I can take advantage of two internet connections that I have. A friend told me that I have to set two ports in the Mikrotik as WAN instead of LAN, and then plug the Modems there, but WebFig is too complicated for me.

So, how can I do that? I have tried to follow some tutorials I see on the web, but my WebFig is totally different of the ones used in the tutorials so I do not understand what I am doing.

Looking forward to hearing from you.

Regards.

EDIT: On several tutorials over the internet, people uses some IP numbers, but it is not clear to me if I have to change those for my IP's, or if I have to let the instructions as they are, without any change.
PD: Sorry for my bad english :(
 
darkprocess
Member Candidate
Member Candidate
Posts: 249
Joined: Fri Mar 20, 2015 1:16 pm

Re: Setting up a network with Mikrotik

Wed Sep 20, 2017 10:02 pm

The config is quite conplicate for a beginner with no network knowledge. 1 wan is easy to setup with webfig. The second one needs to change the configuration through cli or winbox with policy routing.
 
montcer9012
just joined
Topic Author
Posts: 15
Joined: Sat Sep 24, 2016 7:31 pm

Re: Setting up a network with Mikrotik

Wed Sep 20, 2017 11:10 pm

The config is quite conplicate for a beginner with no network knowledge. 1 wan is easy to setup with webfig. The second one needs to change the configuration through cli or winbox with policy routing.
Oh, I see. Well, I am trying my best with it :(

At this very moment, I am trying to understand this tutorial: https://wiki.mikrotik.com/wiki/Manual:PCC

I have several doubts about it; I hope someone answer here to clarify the process hahaha.

EDIT: What should I place in broadcast? (add address=10.111.0.2/24 network=10.111.0.0 broadcast=10.111.0.255 interface=ISP1) I think it is reserved for the subnet mask, 255.255.255.0, right?
 
darkprocess
Member Candidate
Member Candidate
Posts: 249
Joined: Fri Mar 20, 2015 1:16 pm

Re: Setting up a network with Mikrotik

Wed Sep 20, 2017 11:48 pm

The config is quite conplicate for a beginner with no network knowledge. 1 wan is easy to setup with webfig. The second one needs to change the configuration through cli or winbox with policy routing.
 
montcer9012
just joined
Topic Author
Posts: 15
Joined: Sat Sep 24, 2016 7:31 pm

Re: Setting up a network with Mikrotik

Thu Sep 21, 2017 12:09 am

Hello darkprocess,

Thanks for your answers!

Could you please tell me if all this is enough:
/ ip address
add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=LAN
add address=10.111.0.2/24 network=10.111.0.0 broadcast=10.111.0.255 interface=ISP1
add address=10.112.0.2/24 network=10.112.0.0 broadcast=10.112.0.255 interface=ISP2

/ ip firewall mangle
add chain=prerouting dst-address=10.111.0.0/24  action=accept in-interface=LAN
add chain=prerouting dst-address=10.112.0.0/24  action=accept in-interface=LAN
add chain=prerouting in-interface=ISP1 connection-mark=no-mark action=mark-connection \
    new-connection-mark=ISP1_conn
add chain=prerouting in-interface=ISP2 connection-mark=no-mark action=mark-connection \ 
    new-connection-mark=ISP2_conn
add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local \
    per-connection-classifier=both-addresses:2/0 action=mark-connection new-connection-mark=ISP1_conn 
add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local \ 
    per-connection-classifier=both-addresses:2/1 action=mark-connection new-connection-mark=ISP2_conn
add chain=prerouting connection-mark=ISP1_conn in-interface=LAN action=mark-routing \ 
    new-routing-mark=to_ISP1
add chain=prerouting connection-mark=ISP2_conn in-interface=LAN action=mark-routing \
    new-routing-mark=to_ISP2
add chain=output connection-mark=ISP1_conn action=mark-routing new-routing-mark=to_ISP1     
add chain=output connection-mark=ISP2_conn action=mark-routing new-routing-mark=to_ISP2

/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=to_ISP1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 routing-mark=to_ISP2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.111.0.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 distance=2 check-gateway=ping

/ ip firewall nat 
add chain=srcnat out-interface=ISP1 action=masquerade
add chain=srcnat out-interface=ISP2 action=masquerade
If so, I think I can handle. Will be difficult but is not so extensive adknowledge to obtain. I am currently going through it step by step, but I surely could use a hand :)

EDIT: Now I can't access to WebFig because the default gateway has changed to the one provided by my ISP, as well as the ISP. I mean, the router changed the IP and the Default Gateway and now I can't access to it neither by Wireless nor by LAN.
 
montcer9012
just joined
Topic Author
Posts: 15
Joined: Sat Sep 24, 2016 7:31 pm

Re: Setting up a network with Mikrotik

Fri Sep 22, 2017 12:26 am

Hello!

I have followed this tutorial, but have not worked for me :(

I also tried to follow this Wiki article with no luck.

I know this is very easy for someone who knows what he is doing hahaha, but it is not my case.

Please, someone point me in the right direction!
 
User avatar
morituruz
newbie
Posts: 33
Joined: Fri Oct 17, 2014 9:00 am

Re: Setting up a network with Mikrotik

Fri Sep 22, 2017 8:36 am

I also tried to follow this Wiki article with no luck.
Post your current config (filter, mangle, routes)
 
montcer9012
just joined
Topic Author
Posts: 15
Joined: Sat Sep 24, 2016 7:31 pm

Re: Setting up a network with Mikrotik

Mon Sep 25, 2017 10:40 pm

Post your current config (filter, mangle, routes)
Hello, Thanks for your answer!

I hope here is all we need to check (as result of export file=my-backup):
# sep/25/2017 14:36:51 by RouterOS 6.32.2
# software id = RPJK-J4JV
#
/interface bridge
add admin-mac=4C:5E:0C:08:30:D7 auto-mac=no name=bridge-local
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce \
disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=\
MikroTik-0830DA wireless-protocol=802.11
/interface ethernet
set [ find default-name=ether1 ] name=ether1-gateway
set [ find default-name=ether2 ] name=ether2-master-local
set [ find default-name=ether3 ] master-port=ether2-master-local name=\
ether3-slave-local
set [ find default-name=ether4 ] master-port=ether2-master-local name=\
ether4-slave-local
/ip neighbor discovery
set ether1-gateway discover=no
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk mode=dynamic-keys \
wpa2-pre-shared-key=J308832936
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge-local name=default
/interface bridge port
add bridge=bridge-local interface=ether2-master-local
add bridge=bridge-local interface=wlan1
/ip address
add address=192.168.88.1/24 comment="default configuration" interface=\
bridge-local network=192.168.88.0
/ip dhcp-client
add comment="default configuration" dhcp-options=hostname,clientid disabled=\
no interface=ether1-gateway
/ip dhcp-server network
add address=192.168.88.0/24 comment="default configuration" gateway=\
192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add chain=input comment="default configuration" protocol=icmp
add chain=input comment="default configuration" connection-state=\
established,related
add action=drop chain=input comment="default configuration" in-interface=\
ether1-gateway
add action=fasttrack-connection chain=forward comment="default configuration" \
connection-state=established,related
add chain=forward comment="default configuration" connection-state=\
established,related
add action=drop chain=forward comment="default configuration" \
connection-state=invalid
add action=drop chain=forward comment="default configuration" \
connection-nat-state=!dstnat connection-state=new in-interface=\
ether1-gateway
/ip firewall nat
add action=masquerade chain=srcnat comment="default configuration" \
out-interface=ether1-gateway
/system clock
set time-zone-name=America/Caracas
/system routerboard settings
set cpu-frequency=650MHz protected-routerboot=disabled
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether2-master-local
add interface=ether3-slave-local
add interface=ether4-slave-local
add interface=wlan1
add interface=bridge-local
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2-master-local
add interface=ether3-slave-local
add interface=ether4-slave-local
add interface=wlan1
add interface=bridge-local
This config is the result of a factory reboot I perform as with this config the router at least broadcast SSID with internet, and the 3 LAN ports works for any computer I connect directly. I have not stated yet, but the network I want to install is this one (please, see link to the image at my OneDrive, or the attached PDF here
EJ1.pdf
)

EDIT: It does not matter if the printer is connected to the Mykrotyk or the other router, as I just need it working. Also, I think that the switch is a DHCP server, right?
You do not have the required permissions to view the files attached to this post.
 
User avatar
morituruz
newbie
Posts: 33
Joined: Fri Oct 17, 2014 9:00 am

Re: Setting up a network with Mikrotik

Thu Sep 28, 2017 1:44 pm

I see no load balancing in your configuration so i can't tell whats wrong :)
Easiest way to archieve balancing is to specify multiple gateways in default route
Something like that:
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1,10.112.0.1 check-gateway=ping

Who is online

Users browsing this forum: 0xAA55, Ahrefs [Bot], Buckeye, patrikg and 58 guests