Jumat, 09 Oktober 2015

setting router pada sistem operasi debian (amiruddin azis)(kabere,enrekang)(smkn 1 bintuni)

1.perintah yang digunakan untu mengatur ip address (Eth 0 tersambung dengan ethernet,Eth 1 tersambung dengan  LAN
            Pertama kita ketikkan pada root  Nano  /etc/network/interfaces lalu tekan enter untuk masuk ke root yang telah kita masukkan perintah tertentu.
·         Ip static
Auto eth 0
Iface eth 0 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.133
·         Dhcp
Auto eth 0
Iface eth0 inet dhcp

Eth1 auto eth1 inet static
Address 10.10.10.1
Netmask 255.255.255.0
Network 10.10.10.0
Broadcast 10.10.10.255
2.restart networketc/in
            /it.d/networking restart
3.aktifkan ip forward
Echo 1 > /proc/sys/net/ipv4/ip_forward
Nano /etc/sysctl.confic
Net.ipv4.foeward=1
4.masukan perintah ip tablles untuk meneruskan eth0 ke eth 1
Nano /etc/rc.loca
Tuliskan kode sebelum exit
Iptables –t nat -A POSTROUTING-o eth0 –j MASQUERADE
5.melakukan re-start pada komputer
Shutdown –r now
6.mematikan komputer

Shutdown –h now

Tidak ada komentar:

Posting Komentar