Tampilkan postingan dengan label MikroTik. Tampilkan semua postingan
Tampilkan postingan dengan label MikroTik. Tampilkan semua postingan

Selasa, 26 Oktober 2010

Configurasi dua router

Router 1

Configure Ethernet

router#
router#config terminal
router (config)#interface fastethernet0/0
router(config-if)#ip address 192.100.10.1 255.255.255.0
router(config-if)#no shutdown
router(config-if)# CTRL + Z
router#
router#write memory

Configure Serial

Router#config terminal
Router(config)#interface serial0
Router(config-if)#ip address 192.100.100.1 255.255.255.0
Router(config-if)#no shutdown
router(config-if)# CTRL + Z
router#
router#write memory
router#show running-config

Configure PC 1

C>winipcfg

Beri IP Address
 IP :  192.100.10.2
Netmask : 255.255.255.0
Gatway   : 192.100.10.1

C:> ping 192.100.10.1
C:>ping 192.100.100.1





Router 2

Configure Ethernet

router#
router#config terminal
router (config)#interface fastethernet0/0
router(config-if)#ip address 192.100.200.1 255.255.255.0
router(config-if)#no shutdown
router(config-if)# CTRL + Z
router#
router#write memory

Configure Serial

Router#config terminal
Router(config)#interface serial0
Router(config-if)#ip address 192.100.100.2 255.255.255.0
Router(config-if)#no shutdown
router(config-if)# CTRL + Z
router#
router#write memory
router#show running-config

Configure PC 2

C>winipcfg

Beri IP Address
 IP :  192.100.200.2
Netmask : 255.255.255.0
Gatway   : 192.100.200.1

C:> ping 192.100.200.1
C:>ping 192.100.100.2





Router 1
Routing

Router#
Router#config terminal
Router(config)#ip route 192.100.200.0 255.255.255.0 192.100.100.2
router(config-if)# CTRL + Z
router#
router#write memory


Router 2
Routing

Router#
Router#config terminal
Router(config)#ip route 192.100.10.0 255.255.255.0 192.100.100.1
router(config-if)# CTRL + Z
router#
router#write memory

router#show ip route

C= Connected (default)
S= static (penambahan dilakukan manual)

Kemudian Ping antar PC apakah sudah bisa atau belum, kalo belum coba chek lagi koonfigure di atas



Jumat, 06 Agustus 2010

Mikrotik Step by step Configuration under 5 minutes


Mikrotik Step by step Configuration under 5 minutes

Ethernet based ISP
5 step to configure the mikrotik
  1. IP Address
  2. Gateway
  3. DNS
  4. NAT
  5. Proxy + transparent rules

Step 1
[admin@MikroTik] > ip address add interface=ether1 address=”your public ip” \
disabled=no
[admin@MikroTik] > ip address add interface=ether2 address=”your lan ip” \
disabled=no

Step 2
[admin@MikroTik] > ip route add gateway=”your gateway ip” disabled=no

Step 3
[admin@MikroTik] > ip dns set primary-dns=”your isp primary dns” \
secondary-dns=”your isp secondary dns” \
allow-remote-requests=yes

Step 4
[admin@MikroTik] > ip firewall nat add chain=srcnat out-interface=ether1 \
action=masquerade disabled=no

Step 5
[admin@MikroTik] > ip web-proxy set port=8080 hostname=host.yourdomain.com \
transparent-proxy=yes \
cache-administrator=support@yourdomain.com enabled=yes
[admin@MikroTik] > ip firewall nat add chain=dstnat protocol=tcp dst-port=80 \
action=redirect to-ports=8080 disabled=no \
comment=”transparent proxy”
[admin@MikroTik] > ip firewall nat add chain=dstnat protocol=tcp dst-port=3128 \
action=redirect to-ports=8080 disabled=no
[admin@MikroTik] > ip firewall nat add chain=dstnat protocol=tcp dst-port=8080 \
action=redirect to-ports=8080 disabled=no