Konfigurasi IP Address Linux Server 10.4


1.    Cek NIC yang aktif
sudo ifconfig
password: entersaja

2.    Aktifkan NIC
sudo ifconfig eth0 up
jika error maka ketik sudo ifconfig eth1 up

3.    Konfigurasi IP Address
sudo pico /etc/network/interfaces
auto eth0
iface eth0 inet static
address 200.100.4.65
netmask 255.255.255.0
network 200.100.4.0
broadcast 200.100.4.255
gateway 200.100.4.254
dns-nameservers 200.100.4.65
dns-search spama.sch.id
up ip addr add 200.100.4.66/27 brd 200.100.4.255 dev eth0 label eth0:0
up ip addr add 200.100.4.67/27 brd 200.100.4.255 dev eth0 label eth0:1

setelah selesai tekan tombol ctrl+x
kemudian muncul pesan pada baris paling bawah
“do you want to save the change..?”
“press Y to save or N to no”

4.    Restart konfigurasi dengan perintah:
sudo /etc/init.d/networking restart
jika muncul pesan “ok” pada baris paling bawah, maka konfigurasi telah berhasil.
Lanjutkan ke konfigurasi client.

Jika sudah berhasil maka muncul:
eth0
eth0:0
eth0:1
eth1
lo
virbr0

Post a Comment

Lebih baru Lebih lama