NAT dan Dynamic Routing - PowerPoint PPT Presentation

About This Presentation
Title:

NAT dan Dynamic Routing

Description:

NAT dan Dynamic Routing NAT Menyiapkan interface Aktifkan ip aliasing ifconfig eth0:0 192.168.1.1 netmask 255.255.255.0 ifconfig eth0:0 192.168.2.1 netmask 255.255 ... – PowerPoint PPT presentation

Number of Views:53
Avg rating:3.0/5.0
Slides: 11
Provided by: stud1161
Category:
Tags: nat | dan | dynamic | routing

less

Transcript and Presenter's Notes

Title: NAT dan Dynamic Routing


1
  • NAT dan Dynamic Routing

2
  • NAT

3
Menyiapkan interface
  • Aktifkan ip aliasing
  • ifconfig eth00 192.168.1.1 netmask 255.255.255.0
  • ifconfig eth00 192.168.2.1 netmask 255.255.255.0

4
Konfigurasi
  • Aktifkan paket forwarding (temporary)
  • echo 1 gt /proc/sys/net/ipv4/ip_forward
  • Aktifkan paket forwarding (permanen)
  • buat script diatas dimasukkan kedalam rc.local
  • vim /etc/sysctl.conf
  • net.ipv4.ip_forward1

5
Menyiapkan table translasi
  • Temporary
  • iptables -t nat -I POSTROUTING -s
    192.168.1.0/24 -j MASQUERADE
  • iptables -t nat -I POSTROUTING -s
    192.168.2.0/24 -j MASQUERADE
  • Permanen
  • iptables-save gt /var/lib/iptables/active
  • tambahkan script iptables-restore lt
    /var/lib/iptables/acvite pada /etc/rc.local

6
  • QUAGGA
  • (Dynamic routing)

7
Installasi quagga
  • apt-get install quagga

8
Konfigurasi
  • Copy template konfigurasi
  • cp /usr/share/doc/quagga/examples/zebra.conf.sam
    ple /etc/quagga/zebra.conf
  • cp /usr/share/doc/quagga/examples/ospfd.conf.samp
    le /etc/quagga/ospfd.conf

9
Menyiapkan interface
  • Aktifkan ip aliasing
  • ifconfig eth0 10.252.108.23 netmask 255.255.255.0
  • ifconfig eth00 192.168.1.1 netmask 255.255.255.0
  • ifconfig eth00 192.168.2.1 netmask 255.255.255.0
  • route add default gw 10.252.108.1

10
Konfigurasi terminal
  • telnet localhost 2604
  • en
  • conf t
  • router ospf
  • network 10.252.108.0/24 area 0
  • network 192.168.1.0/24 area 0
  • network 192.168.2.0/24 area 0
Write a Comment
User Comments (0)
About PowerShow.com