Professional Documents
Culture Documents
1
1. Install vim
vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.44
netmask 255.255.255.224
network 192.168.1.32
broadcast 192.168.1.63
gateway 192.168.1.33
kalau dhcp staticnya diganti dh
auto eth1
iface eth1 inet static
address 10.10.10.1
netmask255.255.0
network 10.10.10.0
broadcast 10.10.10.255
3. Restart
/etc/init.d/networking restart
4. Edit DNS
nano /etc/resolv.conf
5. aktifkan IP forward
echo 1 > /proc/sys/net/ipv4/ip_forward
6. edit
vim /etc/sysctl.conf
Hilangkan tanda # pada baris
net.ipv4.ip_forward=1
7. jalan kan perintah iptables untuk meneruskan koneksi dari eth0 ke eth1
nano /etc/rc.local
tulis kode berikut sebelum exit