LAN -> Mikrotik RouterOS -> ADSL Modem ->Internet Configuration

Posted by Unknown Selasa, Maret 06, 2012 0 komentar

LAN -> Mikrotik RouterOS -> ADSL Modem -> Internet Configuration

For the LAN, we use a class C ip address, the network 192.168.10.0/24. For RouterOS, we need two ethernet cards. One (ether1 - 192.168.1.2/24) for connection to the ADSL modem and another one (ether2 - 192.168.10.1/24) for connection to the LAN. For the ADSL modem, IP we set 192.168.1.1/24.
Before you type anything, make sure you've been on the root menu by typing "/"

1. Set IP for each ethernet card
ip address add address = 192.168.1.2/24 interface = ether1 (public)
ip address add address = 192.168.10.1/24 interface = ether2 (local)
To display the results of the above command type the following command:
ip address print
Then do the testing by trying nge-ping to the gateway or to a computer on the LAN. If the result is successful, then your IP configuration is correct
ping 192.168.1.1
ping 192.168.10.10

2. Adding Routing
ip route add gateway = 192.168.1.1
3. Setting DNS
ip dns set primary-dns = 202.134.1.10 allow-remote-requests = yes
ip dns set secondary-dns = 202.134.0.155 allow-remote-requests = yes
Because of this connection using a Speedy from Telkom, the DNS yg pake ya got Telkom aq. Please adjust your DNS provider.
After that you try to do ping to yahoo.com for example:
ping yahoo.com
If the result is successful, then the DNS settings are correct

4. Source NAT (Network Address Translation) / Masquerading
In order for all computers that are on the LAN can connect to the internet as well, then you need to add NAT (Masquerade) on Mikrotik.
ip firewall nat add chain = srcnat action = masquerade out-interface = ether1
Now try doing a ping to yahoo.com from existing computer on the LAN
ping yahoo.com
If the result is successful, then the settings are correct masquerade

5. DHCP (Dynamic Host Configuration Protocol)
Due to practical reasons, my friend pengin pake DHCP Server. Let Quote connect each of your clients, he's no need to set the IP manually. Stay Obtain from DHCP Server aja, dah wrong. Fortunately there is also a feature Mikrotik DHCP server. So yes ga no problem .. 8)
* Create an IP Address Pool
ip pool add name = dhcp-pool ranges = 192.168.0.2-192.168.0.254
* Add a DHCP Network
ip dhcp-server network add address = 192.168.10.0/24 gateway = 192.168.10.1 dns-server = 202.134.1.10,202.134.0.155
* Adding a DHCP Server
ip dhcp-server add name = DHCP_LAN disabled = no interface = ether2 address-pool = dhcp-pool
Now try to do testing of the client computer, to request the IP Address from DHCP Server. If successful, then once again, settingannya already bener

6. Bandwidth Management
In order for all client computers on the LAN bandwidth not fight each other, it needs to be done such thing as bandwidth management or bandwidth control, idea: (I use a simple que so much easier;
queue simple add name = "Billing" target-address = 192.168.10.2/32 dst-address = 0.0.0.0 / 0 interface = Local queue = default priority = 8 limit-at = 16000/32000 max-limit = 16000/64000
queue simple add name = "cashier" target-addresses = 192.168.10.3/32 dst-address = 0.0.0.0 / 0 interface = Local parent = Shaping priority = 8 queue = default / default limit-at = 0 / 8000 max-limit = 0 / 256 000 total-queue = default
Continue command to all clients who want to limit bnadwithnya.

7. Graphing
Mikrotik is also equipped with functions like MRTG monitoring regular traffic. So we can see how many packets are passed by our Mikrotik PC.
tool graphing set store-every = 5min
Next we will monitor the package ² who passed all the interfaces that are on our Mikrotik PC, klo on my computer there is ether1 and ether2.
tool graphing interface add interface = all store-on-disk = yes
Now try to navigate your browser to the IP Router Mikrotik. Quote aq here:
http://192.168.10.1/graphs/
There will be a choice what aja interface on your router. Try click on one, then you will be able to see a graph of paket2 who passed on the interface.
Reviewer : Unknown - ItemReviewed : LAN -> Mikrotik RouterOS -> ADSL Modem ->Internet Configuration

0 komentar:

Posting Komentar

!Tolong komentar yang membangun dan jangan SPAM !

Followers

Guest Book

statistic

Blog Ping