[afnog] Configuring mikrotik to supply my clients with public IPs
John Gitau
JGitau at Safaricom.co.ke
Wed Jun 29 19:58:15 EAT 2005
> I just bought a Mikrotik RouterOS. Can someone use to this
> router give me the basic setup to supply my clients with
> public IPs. So far i have been using
> NAT(masqurading) to supply only local IPs
Mikrotiks support static, dynamic and policy based routing. You can have
your "evil" NAT running along with your public addresses.
For example:
To add two static routes to networks 192.168.0.0/24 and 0.0.0.0/0 on a
mikrotik with two interfaces and two IP addresses:-)
[jgitau at MikroTik2.7] ip route> add dst-address=192.168.0.0/24
gateway=10.5.0.2
[jgitau at MikroTik2.7] ip route> add gateway 10.5.0.1
[jgitau at MikroTik2.7] ip route> print
Flags: X - disabled, I - invalid, D - dynamic, J - rejected,
C - connect, S - static, r - rip, o - ospf, b - bgp
# DST-ADDRESS G GATEWAY DISTANCE INTERFACE
0 S 192.168.0.0/24 r 10.5.0.2 1 Local
1 S 0.0.0.0/0 r 10.5.0.1 1 Public
2 DC 10.5.0.0/24 r 0.0.0.0 0 Public
The first line adds a route for the 192.168.x.x network to 10.5.0.2, and
the second one adds a default route to 10.5.0.1
[jgitau at MikroTik2.7] ip route>print detail
The above should give you more details on the routing table.
This document
'http://www.mikrotik.com/Documentation/manual_2.7/IP/Route.html#ht382128
05' might help you. There' more on policy and dynamic routing there.The
last Mikrotik I worked on was running OS 2.7,2.8 I believe a lot has
changed since then, you can catch up with the documentation from their
site.
**Gitau
Safaricom Ltd.
........................................................................
.
"If the entire earth, land and water, were covered with computers,
IPv6 would allow 7x10^23 IP addresses per square meter. [...] While it
was not the intention to give every molecule on the surface of the earth
its own IP address, we are not that far off."
.. Tannenbaum, .Computer.Networks., 3rd Edition
........................................................................
.
More information about the afnog
mailing list