KONFIGURASI ROUTER
KONFIGURASI ROUTER
*adapter1 = bridged adapter
*adapter2 = internal network
2.jalankan debian,kemudian setting ip dan interfaces
pada debian masuk ke filenya : #nano /etc/network/interfaces
ganti tulisan :
allow-hotplug eth0
iface eth0 inet dhcp
menjadi :
auto eth0
iface eth0 inet static
address 192.168.12.232
network 192.168.12.0
netmask 255.255.255.0
broadcast 192.168.12.255
gateway 192.168.12.1
auto eth1
iface eth1 inet static
address 192.168.20.232
network 192.168.20.0
netmask 255.255.255.0
broadcast 192.168.20.255
gateway 192.168.20.1
simpan dengan ctrl+o enter lalu ctrl+x
3. setting router : #nano /etc/rc.local
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
simpan
4.mengaktifkan ip forwading :#nano /etc/sysctl.conf
cari tulisan : #net.ipv4.ip_forward =1
hilangkan tanda pagarnya lalu simpan
5.restart interface nya : #/etc/init.d/networking restart
No comments:
Post a Comment