# dmesg | grep eth
File konfigurasi jaringan ada di /etc/network/interfaces. Dua macam setting IP yang kita ketahui yaitu dynamic dan static.
Setup Interfaces ke DHCP
Untuk mensetup IP ke DHCP bisa dilihat contoh berikut :
auto eth0
iface eth0 inet dhcp
Setup Interfaces ke STATIC
auto eth0Jika kita ingin menambahkan virtual ip :
iface eth0 inet static
address 192.168.9.100
netmask 255.255.255.0
network 192.168.9.0
broadcast 192.168.9.255
gateway 192.168.9.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.9.2
auto eth0:1
iface eth0:1 inet static
address 192.168.10.101
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
Tidak ada komentar:
Posting Komentar