1.sebelum mulai pastikan menggunakan 2 adapter yaitu:
*adapter1 = bridged adapter
*adapter2 = internal network
2.jalankan debian,kemudian setting ip dan interfaces
pada debian masuk ke filenya : #nano /etc/network/interfaces
*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
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
tuliskan pada baris diatas exit 0
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
simpan
4.mengaktifkan ip forwading:#nano /etc/sysctl.conf
hilangkan tanda pagarnya lalu simpan
5.restart interface nya : #/etc/init.d/networking restart
THANK YOU FOR WATCHING:)
LP ASJ XI - Tugas 03 Konfigurasi Router
Reviewed by Wildan
on
8:53 PM
Rating:
No comments: