install DHCP
Instalasi DHCP
11.
apt-get install dhcp3-server
22.
gedit /etc/network/interfaces
iface eth1 inet static
address 192.168.110.1 “catatan : kalau iface eth0 inet dhcpnya
2 hapus satu”
netmask 255.255.255.192
network 192.168.110.0
broadcast 192.168.110.255
auto eth1
iface eth0 inet dhcp
auto eth0 à
save
33.
gedit /etc/default/dhcp3-server à
enter
interfaces “eth1” à
save (karena eth1 yang akan membagi
Ipnya)
44.
gedit /etc/dhcp3/dhcpd.conf
# autoritative (di hapus pagarnya)
# A slightiy different configuration for
...
Subnet
192.168.110.0 netmask 255.255.255.192 catatan : pagarnya di hapus sampai
range
192.168.110.1 192.168.110.62 tutup kurung
option
router 192.168.110.1
option
broadcast-address 192.168.110.255 à save
55.
/etc/init.d/dhcp3-server restart
/etc/init.d/networking restart
66.
gedit /etc/rc.local à
enter
“ketik perintah di bawah ini, ketik di atas
“exit0”
Iptables
–A POSTROUTING –t nat -o eth0 –j MASQUARADE à save
77.
iptables –t nat –n –L à enter (di ketikkan di root terminal)
88.
gedit /etc/sysctl.conf
cari tulisan “ipv4 forward = 1” jika sudah
ketemu tulisan tersebut
pagarnya di buang à
save
99.
test terminal “syctl –p”
110.
restart jaringan “/etc/init.d/networking restart
catatan : cek di client sudah tersambung atau belum ke internet
kalau belum berarti ada kesalahan, dan cek
kembali ^^ @fAki_kun
Komentar
Posting Komentar