Vous êtes sur la page 1sur 2

14/3/2014

Manual:Simple Static Routing - MikroTik Wiki

Manual:Simple Static Routing


Introduction
Lets make a simple routing setup illustrated in image below

Ether1 of Router1 is connected to ISP and will be the gateway of our networks. Router2 is connected to ether2 of Router1 and will act as a gateway for clients connected to it from LAN2. Router1 also connects one client to ether3. Our goal is to create setup so that clients from LAN1 can reach clients from LAN2 and all of them can connect to internet.

Configuration
Lets consider that ISP gave us an address 10.1.1.2/30 and gateway is 10.1.1.1 Router1:
/ i pa d d r e s s a d da d d r e s s = 1 0 . 1 . 1 . 2i n t e r f a c e = e t h e r 1 a d da d d r e s s = 1 7 2 . 1 6 . 1 . 1 / 3 0i n t e r f a c e = e t h e r 2 a d da d d r e s s = 1 9 2 . 1 6 8 . 1 . 1 / 2 4i n t e r f a c e = e t h e r 3 / i pr o u t e a d dg a t e w a y = 1 0 . 1 . 1 . 1 a d dd s t a d d r e s s = 1 9 2 . 1 6 8 . 2 . 0 / 2 4g a t e w a y = 1 7 2 . 1 6 . 1 . 2

Router2:
/ i pa d d r e s s a d da d d r e s s = 1 7 2 . 1 6 . 1 . 2 / 3 0i n t e r f a c e = e t h e r 1 a d da d d r e s s = 1 9 2 . 1 6 8 . 2 . 1 / 2 4i n t e r f a c e = e t h e r 2 / i pr o u t e a d dg a t e w a y = 1 7 2 . 1 6 . 1 . 1

If you look at configuration then you will see that on Router1 we added route to destination 182.168.2.0/24. It is required for clients from LAN1 to be able to reach clients on LAN2. On Router2 such route is not required since LAN1 can be reached by default route.

[ Top | Back to Content ]


http://wiki.mikrotik.com/wiki/Manual:Simple_Static_Routing 1/2

14/3/2014 [ Top | Back to Content ]

Manual:Simple Static Routing - MikroTik Wiki

Categories: Manual | Routing | Examples | Basic

http://wiki.mikrotik.com/wiki/Manual:Simple_Static_Routing

2/2

Vous aimerez peut-être aussi