1) /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
auto eth1
iface eth1 inet static
address 192.168.20.1
netmask 255.255.255.0
network 192.168.20.0
broadcast 192.168.20.255
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
auto eth1
iface eth1 inet static
address 192.168.20.1
netmask 255.255.255.0
network 192.168.20.0
broadcast 192.168.20.255
maksud dari penulisan "auto lo", mereferensikan
antarmuka jaringan lokal (localhost)
2) /etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv4.ip_forward=1
3) /etc/resolv.conf
nameserver 192.168.1.1
nameserver 202.134.0.155
nameserver 192.168.1.1
nameserver 202.134.0.155
4) /etc/rc.local
iptables -t nat -A POSTROUTING -s 192.168.20.0/24 -d 0/0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.20.0/24 -d 0/0 -j MASQUERADE
"komputer kamu sudah SIAP!! bisa sharing jaringan koneksi internet ke lokal client (PC ROUTER)"