Welcome Comments Pictures

Senin, 04 Februari 2013

Setting Network



Disini saya memakai ip 192.168.6.1/29
·         Cara melihat Interface
root@debian:~# ifconfig
·         Cara konfigurasi network
root@debian:~# nano /etc/network/interfaces
# The local network interface
auto eth0
iface eth0 inet static
            address 192.168.6.1
            netmask 255.255.255.0
            network 192.168.6.0
            gateway 192.168.6.6
            broadcast 192.168.6.7
            dns-nameservers 192.168.6.1
auto eth0:0
iface eth0:0 inet static
            address 192.168.6.2
            netmask 255.255.255.0
auto eth0:1
iface eth0:1 inet static
            address 192.168.6.3
            netmask 255.255.255.0

Konfigurai skrip menjadi seperti ini, kemudian tekan Ctrl +  O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)

root@debian:~# nano /etc/resolv.conf
search smkmuh2.sch.id
nameserver 192.168.6.1

Tambah skrip diatas ini, kemudian restart networknya
root@debian:~# /etc/init.d/networking restart