KONFIGURASI ROUTER
1. Sebelum mulai pastikan mengguinakan 2 adapter yaitu :
adapter 1 = bridge adapter
adapter 2 = 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.226
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.226
network 192.168.20.0
netmask 255.255.255.0
broadcast 192.168.20.255
gateway 192.168.20.1
gateway 192.168.12.1
auto eth1
iface eth1 inet static
address 192.168.20.226
network 192.168.20.0
netmask 255.255.255.0
broadcast 192.168.20.255
gateway 192.168.20.1
simpan dengan ctrl+0 enter lalu ctrl+x
3. Setting router: #nano /etc/rc.local
tuliskan pada baris diatas exit 0
iptables- nat -A POSTROUTING -o eth0 -j MASQUERADE
Simpan
4.Restart interface nya:
#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
3. Setting router: #nano /etc/rc.local
tuliskan pada baris diatas exit 0
iptables- nat -A POSTROUTING -o eth0 -j MASQUERADE
Simpan
4.Restart interface nya:
#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
Tidak ada komentar:
Posting Komentar