Konfigurasi IP Gateway DEBIAN LINUX


1)     /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1

auto eth1
iface eth1 inet static
address 192.168.2
0.1
netmask 255.255.255.0
network 192.168.2
0.0
broadcast 192.168.2
0.255


maksud dari penulisan "auto lo", mereferensikan 
antarmuka jaringan lokal (localhost)

2)     /etc/sysctl.conf

net.ipv4.ip_forward=1


3)     /etc/resolv.conf

nameserver 192.168.1.1
nameserver 202.134.0.155
  

4)     /etc/rc.local
iptables -t nat -A POSTROUTING -s 192.168.20.0/24 -d 0/0 -j MASQUERADE


"komputer kamu sudah SIAP!! bisa sharing jaringan koneksi internet ke lokal client (PC ROUTER)"





Silahkan Tinggalkan Komentar Anda :

Konfigurasi IP Gateway DEBIAN LINUX