LANGKAH-LANGKAH SETTING PC ROUTER LINUX DEBIAN 5

keterangan :

  1. tuliasan model ini artinya itu harus dirubah atau membuat

  2. tulisan model ini artinya itu perintah

================ROUTING========================

nano /etc/network/interfaces ——————> setting IP routing

# The primary network interfaces

allow-hotplug eth0

auto eth0

iface eth0 inet static

address 100.100.100.122

netmask 255.255.255.0

network 100.100.100.0

broadcast 100.100.100.255

gateway 100.100.100.1

# dns-* options are implemented by the resolvconf package, if installed

dns-nameservers 100.100.100.1 8.8.8.8 8.8.4.4

dns-seach disabilitas-bisa.lan

# The secondary network interfaces

auto eth1

iface eth1 inet static

address 192.168.1.1

netmask 255.255.255.0

network 192.168.1.0

broadcast 192.168.1.255

nano /etc/rc.local ——————-> Meroutingkan

iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE

exit 0

iptables -t nat -n -L ————————–> Melihat konfigurasi

nano /etc/network/option ————–> Konfigurasi IP Fofward

ip_forward = yes

spoofprotect = yes

syncookies = no

nano /etc/sysctl.conf —————-> Mengaktifkan IP forward

net.ipv4_forward=1 —————> hilangkan tanda #

/etc/init.d/networking restart ———–> restart konfigurasi IP routing

==================DHCP==================

apt-get install dhcp3-server ———–> install DHCP

nano /etc/dhcp3/dhcpd.conf ————> setting DHCP

# A slightly different configuration for an internal subnet.

Subnet 192.168.1.0 netmask 255.255.255.0 {

range 192.168.1.2 192.168.1.100;

option domain-name-servers 8.8.8.8,8.8.4.4;

option domain-name ”disabilitas-bisa.lan”;

option routers 192.168.1.1;

option broadcast-address 192.168.1.255;

default-lease-time 600;

max-lease-time 7200;

}

nano /etc/default/dhcp3-server ——————> Mengaktifkan eth1 untuk DHCP server

#separate multiple interfaces with spaces, e.g. ”eth0 eth1”.

INTERFACES=”eth1”

/etc/init.d/dhcp3-server restart —————-> restart DHCP

============PERINTAH PENTING=============

- Mematikan/shutdown server

halt           atau             Shutdown -h now

- Mereboot/merestart server

reboot

- Mengaktifkan eth0

ifconfig eth0 up

- Mengaktifkan eth1

ifconfig eth1 up

- Mematikan eth0

ifconfig eth0 down

- Mematikan eth1

ifconfig eth1 down

- Mengecek alamat IP eth0

ifconfig eth0

- Mengecek alamat IP eth1

ifconfig eth1

- Menghapus tampilan layar

clear

SEMOGA BERMANFAAT BUAT BELAJAR MEMBUAT PC ROUTER LINUX DEBIAN 5

/span

About these ads

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Logout / Ubah )

Twitter picture

You are commenting using your Twitter account. Logout / Ubah )

Facebook photo

You are commenting using your Facebook account. Logout / Ubah )

Google+ photo

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s