2) konfigurasi router debian lenny

Upload: anidafutri

Post on 06-Jul-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/18/2019 2) Konfigurasi Router Debian Lenny

    1/3

    Konfigurasi Router Debian Lenny

    Setelah berhasil  menginstall debian lenny 5.04. Selanjutnya kita akan mengkonfigurasiRouter. Silahkan ikuti langkah berikut :

    * Kata2 yang bercetak tebal adalah perintah yang dijalankan pada komputer serer.* Kata2 yang ber!arna merah adalah yang harus anda ubah atau buat.

    "# pico /etc/network/interfaces

      $ %he primary net!ork interfa&e  allo!'hotplug eth0

      ifa&e eth0 inet stati&

      address "(2.").".5  netmask 255.255.255.0

      net!ork "(2.").".0

      broad&ast "(2.").".255

      gate!ay "(2.")."."  $ dns'* options are implemented by the resol&onf pa&kage+ if installed

      dns'nameserers 202.",4.0."55  dns'sear&h smkn"nganjuk.s&h.id

      $ %he se&ondary net!ork interfa&e

      auto eth"

      ifa&e eth" inet stati&  address "(2.").5."

      netmask 255.255.255.0

      net!ork "(2.").5.0  broad&ast "(2.").5.255

    2# /etc/init.d/networking restart

    ,# pico /etc/sysctl.conf 

      $ -n&omment the net line to enable pa&ket for!arding for /4  net.ip4.ip1for!ard"

    4# iptables -t nat -A POSRO!"#$ -o et%& -' (AS)!*RAD*5# iptables -t nat -n +L

    Chain PREROUTING (policy ACCEPT)  target prot opt source destination

      Chain POSTROUTING (policy ACCEPT)  target prot opt source destination

      AS!UERA"E all ## $%$%$%$&$ $%$%$%$&$

     Chain OUTPUT (policy ACCEPT)

      target prot opt source destination

    )# iptables-sa,e /etc/network/iptables.conf 

    3# ec%o iptables-restore /etc/network/iptables.conf /etc/network/if-up.d/iptables

    # pico /etc/network/if-up.d/iptables$binsh

    iptables'restore 6 et&net!orkiptables.&onf 

    (# c%0od 12 /etc/network/if-up.d/iptables

    "0# reboot

    http://www.situstkj.co.cc/2010/10/konfigurasi-souter-debian-lenny.htmlhttp://www.situstkj.co.cc/2010/10/instalasi-debian-lenny.htmlhttp://www.situstkj.co.cc/2010/10/instalasi-debian-lenny.htmlhttp://www.situstkj.co.cc/2010/10/konfigurasi-souter-debian-lenny.htmlhttp://www.situstkj.co.cc/2010/10/instalasi-debian-lenny.html

  • 8/18/2019 2) Konfigurasi Router Debian Lenny

    2/3

    ""# ifconfig 3 less

      eth0 7ink en&ap:8thernet 9addr 00:0&:2(:,2:(3:44

      inet addr:"(2.").".5 ;&ast:"(2."(2.").".255 ?@>S% R-AA/AB S% S% R-AA/AB S%

  • 8/18/2019 2) Konfigurasi Router Debian Lenny

    3/3

    @:G-sersGantoroHping 456.478.4.9 Pinging '%'*+%'%, -ith . /ytes o0 data1

     Reply 0ro2 '%'*+%'%,1 /ytes3. ti2e3'2s TT53*6 Reply 0ro2 '%'*+%'%,1 /ytes3. ti2e4'2s TT53*6

     Reply 0ro2 '%'*+%'%,1 /ytes3. ti2e4'2s TT53*6

     Reply 0ro2 '%'*+%'%,1 /ytes3. ti2e4'2s TT53*6 Ping statistics 0or '%'*+%'%,1

     Pac7ets1 Sent 3 68 Recei9ed 3 68 5ost 3 $ ($: loss)8

     Appro;i2ate round trip ti2es in 2illi#seconds1 ini2u2 3 $2s8 a;i2u2 3 '2s8 A9erage 3 $2s

     

    "5# Fika Reply+