how to connect two routers

hey guys do u have any basic guide how to connect two routers? like static routic? ehehe :smiley: can someone post a basic configuration

thanks

What you need to do?

More info please..

With this info I can say: To connect 2 routers you need 1 ethernet wire.

yes iber that’s what i want 2 router in single cat5 cable :smiley:
for example i have my 3 ports mik router
ether 1 = wan
ether 2 = local 100.100.100.1
ether 3 = local 100.100.101.1 <<<< >>>> connect to second router, i need static routing and what is the gateway?

thanks iber

Hi, you can read in the wiki about nat and masquerade. It’s easy.

The router gateway must be the WAN ip and the gateway for 101.x must be 101.1

ok ber i try tommorow

thanks

hello iber this is my router a and router b config still unreachable :frowning:

router a

ADDRESS NETWORK BROADCAST INTERFACE

0 ;;; Office Network
10.11.0.1/24 10.11.0.0 10.11.0.255 ether3-local
1 ;;; Hotel
10.12.0.1/24 10.12.0.0 10.12.0.255 ether4-local
2 ;;; Reserve port
10.13.0.1/30 10.13.0.0 10.13.0.3 ether5-local
3 ;;; servers
10.2.2.1/24 10.2.2.0 10.2.2.255 ether2-local
4 ;;; WAN
x.x.x.x/30 x.x.x.x. x.x.x.x Ether1-WAN
[myron@MikroTik] /ip address> ..
[myron@MikroTik] /ip> route
[myron@MikroTik] /ip route> print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit

DST-ADDRESS PREF-SRC GATEWAY DISTANCE

0 A S 0.0.0.0/0 121.97.75.121 1
1 ADC 10.2.2.0/24 10.2.2.1 ether2-local 0
2 ADC 10.11.0.0/24 10.11.0.1 ether3-local 0
3 ADC 10.12.0.0/24 10.12.0.1 ether4-local 0
4 ADC 10.13.0.0/30 10.13.0.1 ether5-local 0
5 ADC x.x.x.x/30 x.x.x.x Ether1-WAN 0


router b

ADDRESS NETWORK BROADCAST INTERFACE

0 100.100.101.1/24 100.100.101.0 100.100.101.255 ether3

1 10.13.0.2 10.13.0.2 10.13.0.2 ether1

2 100.100.100.1/24 100.100.100.0 100.100.100.255 ether2

[myron@MikroTik] /ip address> ..
[myron@MikroTik] /ip> rout
[myron@MikroTik] /ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit

DST-ADDRESS PREF-SRC G GATEWAY DISTANCE

INTERFACE
0 S 0.0.0.0/0 u 10.13.0.1 1

1 ADC 10.13.0.2 10.13.0.2 0
ether1
2 ADC 100.100.100.0/24 100.100.100.1 0
ether2
3 ADC 100.100.101.0/24 100.100.101.1 0
ether3

thanks

lol i solved the problem is in the 10.13.0.2 if i don’t put /24 the destination is unreachable because the router a 10.13.0.1/30 is 3 host ip only :slight_smile:, my router a and router b are connected now

yes!

1 10.13.0.2 10.13.0.2 10.13.0.2 ether1


you can show your config with “export”

example:

system identity export

instead of copy paste the console.