Rabu, 08 Juni 2011
10 Steps to a simple to use MikroTik Router Settings
10 Steps to a simple to use MikroTik Router Settings
PC Client -> Switch -> Router -> Internet
IP PUBLIC: x.y.z.pub/29
DNS: x.y.z.dns1 and x.y.z.dns2
Gateway: x.y.z.gw
LOCAL ROUTER IP address: 192.168.100.1/24
Client IP address: 192.168.100.2/24
Note: Adjust Hardware, IP Address, DNS, Gateway with your own
Hardware:
Router: RouterBoard 1000 (mikrotik v3, 19 Stable)
Switch : D-Link DES-3026 Ethernet Switch
PC Client : PowerBook G4
Setting ROUTER
1. Change the default password mikrotik
[Admin@titik.org]> / user set admin password = whatever '
2. Rename ethernet name:
[Admin@titik.org]> / interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE MTU
Ether 1500 0 R ether1
1 ether2 ether 1500
2 ether3 ether 1500
Ether 1500 3 R ether4
[Admin@titik.org]> / interface set ether1 name = IP-LOCAL
[Admin@titik.org]> / interface set ether4 name = IP-PUBLIC
[Admin@titik.org]> / interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE MTU
0 R IP-LOCAL ether 1500
1 ether2 ether 1500
2 ether3 ether 1500
IP 3 R 1500-PUBLIC ether
3. IP Address Setting
[Admin@titik.org]> / ip address add address = xyzpub/29 interface = IP-PUBLIC
[Admin@titik.org]> / ip address add address = 192.168.100.1/24 interface = IP-LOCAL
[Admin@titik.org]> / ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 xyzpub/29 xyz168 xyz175 IP-PUBLIC
1 192 168 100 255 192.168.100.1/24 192.168.100.0 IP-LOCAL
4. Gateway Settings
[Admin@titik.org]> / 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-STATE GATEWAY DISTANCE INTERFACE
Xyz168/29 xyzpub 0 0 ADC IP-PUBLIC
1 ADC 192.168.100.0/24 192.168.100.1 0 IP-LOCAL
[Admin@titik.org]> / ip route add dst-address = 0.0.0.0 / 0 gateway = xyzgw
[Admin@titik.org]> / 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-STATE GATEWAY DISTANCE INTERFACE
0 AS 0.0.0.0 / 0 reachable xyzgw 1 IP-PUBLIC
Xyz168/29 xyzpub 0 0 ADC IP-PUBLIC
1 ADC 192.168.100.0/24 192.168.100.1 0 IP-LOCAL
5. Gateway Ping Test
[Admin@titik.org]> / ping x.y.z.gw
x.y.z.gw 64 byte ping: ttl = 64 time = 1 ms
x.y.z.gw 64 byte ping: ttl = 64 time = 1 ms
x.y.z.gw 64 byte ping: ttl = 64 time = 1 ms
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min / avg / max = 1/1.0/1 ms
6. Setting DNS
[Admin@titik.org]> / ip dns print
primary-dns: 0.0.0.0
secondary-dns: 0.0.0.0
allow-remote-requests: no
max-udp-packet-size: 512
cache-size: 2048KiB
cache-max-ttl: 1W
cache-Used: 4KiB
[Admin@titik.org]> / ip dns set primary-dns = xyzdns1 secondary-dns = xyzdns2 allow-remote-requests = yes
[Admin@titik.org]> / ip dns print
primary-dns: x.y.z.dns1
secondary-dns: x.y.z.dns2
allow-remote-requests: yes
max-udp-packet-size: 512
cache-size: 2048KiB
cache-max-ttl: 1W
cache-Used: 10KiB
7. Test Connection to the Internet (eg ping yahoo.com)
[Admin@titik.org]> / ping yahoo.com
206.190.60.37 64 byte ping: ttl = 48 time = 300 ms
206.190.60.37 64 byte ping: ttl = 48 time = 299 ms
206.190.60.37 64 byte ping: ttl = 48 time = 316 ms
206.190.60.37 64 byte ping: ttl = 48 time = 316 ms
206.190.60.37 64 byte ping: ttl = 48 time = 311 ms
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min / avg / max = 299/308.4/316 ms
8. Settings for NAT (Network Address Translation)
[Admin@titik.org]> / ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
[Admin@titik.org]> / ip firewall nat add chain = srcnat src-address = 192.168.100.0/24 action = src-nat to-addresses = zyzpub
[Admin@titik.org]> / ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 chain = srcnat action = src-nat to-addresses = xyzpub src-address = 192.168.100.0/24
Setting PC CLIENT
9. Setting Client IP Address
IP Address: 192.168.100.2
Subnet: 255.255.255.0
Gateway: 192.168.100.1
DNS: 192.168.100.1
10. Test the connection by pinging the Router, Gateway, DNS and yahoo.com
- Ping Router
Perk1z: ~ $ ping 192.168.100.1 herman
PING 192.168.100.1 (192.168.100.1): 56 data bytes
64 bytes from 192.168.100.1: icmp_seq = 0 ttl = 64 time = 0360 ms
64 bytes from 192.168.100.1: icmp_seq = 1 ttl = 64 time = 0257 ms
64 bytes from 192.168.100.1: icmp_seq = 2 ttl = 64 time = 0254 ms
^ C
- 192.168.100.1 ping statistics -
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min / avg / max / stddev = 0.254/0.290/0.360/0.049 ms
- Ping Gateway
perk1z: ~ $ ping x.y.z.gw herman
PING x.y.z.gw (x.y.z.gw): 56 data bytes
64 bytes from xyzgw: icmp_seq = 0 ttl = 63 time = 1813 ms
64 bytes from xyzgw: icmp_seq = 1 ttl = 63 time = 1538 ms
64 bytes from xyzgw: icmp_seq = 2 ttl = 63 time = 1368 ms
^ C
- X.y.z.gw ping statistics -
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min / avg / max / stddev = 1.368/1.573/1.813/0.183 ms
- Ping DNS
perk1z: ~ $ ping x.y.z.dns1 herman
PING x.y.z.dns1 (x.y.z.dns1): 56 data bytes
64 bytes from xyzdns1: icmp_seq = 0 ttl = 62 time = 1437 ms
64 bytes from xyzdns1: icmp_seq = 1 ttl = 62 time = 3945 ms
64 bytes from xyzdns1: icmp_seq = 2 ttl = 62 time = 1576 ms
^ C
- X.y.z.dns1 ping statistics -
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min / avg / max / stddev = 1.437/2.319/3.945/1.151 ms
- Ping Yahoo
perk1z: ~ herman $ ping yahoo.com
PING yahoo.com (206.190.60.37): 56 data bytes
64 bytes from 206.190.60.37: icmp_seq = 0 ttl = 47 time = 303,308 ms
64 bytes from 206.190.60.37: icmp_seq = 1 ttl = 47 time = 309,105 ms
64 bytes from 206.190.60.37: icmp_seq = 2 ttl = 47 time = 306,238 ms
^ C
- Yahoo.com ping statistics -
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min / avg / max / stddev = 303.308/306.217/309.105/2.367 ms
Good luck and I hope useful
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar