
Cara melihat
Interface
root@debian:~#
ifconfig
Cara
konfigurasi network
root@smkmuh2:~# nano /etc/network/interfaces
# The local network interface
auto eth0
iface eth0 inet static
address
192.168.0.1
netmask
255.255.255.248
network 192.168.0.0
gateway
192.168.0.6
broadcast
192.168.0.7
dns-nameservers
192.168.0.1
auto eth0:0
ifacec eth0:0 inet static
address
192.168.0.2
netmask
255.255.255.248
auto eth0:1
iface eth0:1 inet static
address
192.168.0.3
netmask
255.255.255.248
Konfigurai
skrip menjadi seperti ini, kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X
(untuk keluar)
root@smkmuh2:~# nano /etc/resolv.conf
search smkmuh2.sch.id
nameserver 192.168.0.1
Tambah skrip
diatas ini, kemudian restart networknya
root@smkmuh2:~# service networking restart
0 komentar:
Posting Komentar
Click to see the code!
To insert emoticon you must added at least one space before the code.