1. SETTING NETWORK
·
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.1.1
netmask 255.255.255.224
network 192.168.1.0
gateway 192.168.1.30
broadcast 192.168.1.31
dns-nameservers
192.168.1.1
auto eth0:0
iface eth0:0 inet static
address 192.168.1.2
netmask 255.255.255.224
auto eth0:1
iface eth0:1 inet static
address 192.168.1.3
netmask 255.255.255.224
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.1.1
Tambah skrip diatas ini, kemudian restart networknya
root@debian:~# /etc/init.d/networking restart
0 komentar