Background

tutorial dibawah mungkin bisa jadi “repost”,tapi saya ngumpulin artikel dari beberapa sumber,harap dimaafin.enjoy

  • Konfigurasi Router Ubuntu 8.10
  1. Konfigurasi IP Address di setipa interface,klau saya sih cuma pake 2 saja :D .pertama ketik dulu #sudo -i .terus edit file nya,#vim /etc/network/interface.berikut isi file nya
auto eth0
iface eth0 inet static
address 10.1.3.23
netmask 255.255.255.0
network 10.1.3.0
broadcast 10.1.3.255
gateway 10.1.3.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 1.2.3.1

auto eth1
iface eth1 inet static
address 1.2.3.1
netmask 255.255.255.0
network 1.2.3.0
broadcast 1.2.3.255

2. edit file dengan perintah #vim /etc/sysctl.conf,tambahin atau hapus # dari net.ipv4.ip_forward=1.
3. masukin command # echo “1″ > /proc/sys/net/ipv4/ip_forward
4.trus command yg ini buat konfigurasi nat #iptables -t nat -A POSTROUTING -s 1.2.3.0/24 -d 0/0 -j MASQUERADE
5. edit file #vim /etc/rc.local.trus masukin command di atas supaya di eksekusi waktu start up
6. beres dah,istirahat dulu nyak
  • DHCP Server Ubuntu 8.10
1. instal dulu paketnya #apt-get install dhcp3-server
2. edit file konfigurasi dhcp nya #vim /etc/dhcp3/dhcpd.conf. hapus tanda #,trus kondisikan sama network yg dipakai,ini tampilan yg udah di edit :
# A slightly different configuration for an internal subnet.
subnet 1.2.3.0 netmask 255.255.255.0 {
range 1.2.3.3 1.2.3.20;
option domain-name-servers ns.serveraink.com;
option domain-name “dhcp.serveraink.com”;
option routers 1.2.3.1;
option broadcast-address 1.2.3.255;
default-lease-time 600;
max-lease-time 7200;
}

3. yg terahir edit #vim /etc/default/dhcp3-server.isi interface yang ke lokal/LAN (eth1)
4. restart dah dhcp nya #/etc/init.d/dhcp3-server restart
  • DNS Server Ubuntu 8.10
1. install dulu paketnya kaya biasa #apt-get install bind9
2. di direktori /etc/bind edit file named.conf #vim /etc/bind/named.conf. tampilannya kaya dibawah:
named


3. di direktori yang sama,bikin file untuk zona,contoh nama file nya db.aink.zone
zone
4. selanjutnya bikin file serupa (boleh dikopi dari db.aink.zone)tapi save sebagai db.aink.rev
rev


5. trus jangan lupa ngedit file #vim /etc/resolv.conf.edit nameserver 1.2.3.1
6. tes dns server yang kita buat pake perintah nslookup (ip address/domain name-nya).
#nslookup 1.2.3.1
Server:         1.2.3.1
Address:        1.2.3.1#53

1.3.2.1.in-addr.arpa    name = ns.serveraink.com.
trus command satunya lagi
#nslookup ns.serveraink.com
Server:         1.2.3.1
Address:        1.2.3.1#53

Name:   ns.serveraink.com
Address: 1.2.3.1

Categories: Share