Masuk ke terminal
Masukan su
Masukan password
cek NIC
# ifconfig
Harus ke cek:
eth0
eth1
lo
setting ip network
# nano /etc/network/interfaces
auto lo
iface lo inet loopback
Ketik:
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.100.1
netmask 255.255.255.0
Kemudian simpan
Ctrl+o
Ctrl+x
Restart network
# nano /etc/init.d/networking.restart
Setting Ip DNS
# nano /etc/resolv.conf
nameserver 119.81.0.251
nameserver 8.8.8.8
Mengaktifkan ip forward
# nano /etc/sysctl.conf
Lalu hilangkan tanda # pada # net.ipv4.ip_forward
Ctrl+o
Ctrl+x
Mengaktifkan NAT
#Iptables –t nat –A POSROUTING –o eth0 –j MASQUERADE
Lalu copy
Kemudian simpan di rc.local
Masuk ke rc.local dengan perintah:
# nano /etc/rc.local
(simpan di atas exit0)
EmoticonEmoticon