untuk membuat sebuah IP address alias pertama tama Setelah login di root masukan perintah berikut
# vim /etc/network/interfaces
Lalu setelah itu ubah auto-hotplug eth0 menjadi auto eth0 seperti di bawah ini
Setelah itu tambahkan ip alias yang akan di gunakan dengan menggunakan auto eth0:0 , eth0:1 ,eth0:2 dts..
# The primary network interface
Auto eth0
iface eth0 inet static
address 10.10.10.1
netmask 255.255.255.0
network 10.10.10.0
broadcast 10.10.10.255
gateway 10.10.10.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.10.10.1
dns-search tresna-widiyaman.sch.id
Auto eth0:0
iface eth0:0 inet static
address 10.20.20.1
netmask 255.255.255.0
network 10.20.20.0
broadcast 10.10.10.255
gateway 10.10.10.254
Auto eth0:1
iface eth0:1 inet static
address 10.30.30.1
netmask 255.255.255.0
network 10.30.30.0
broadcast 10.10.10.255
gateway 10.10.10.254
setelah itu simpan dengan menekan esc : wq
lalu restart networking
#/etc/init.d/networking restart
Lalu setelah itu kita ifup
#ifup eth0:0
#ifup eth0:1
Lalu kita lihat ip alis yang kita buat apakah sudah berfungsi dengan perintah
#ifconfig
Semoga bermanfaat J
No comments:
Post a Comment