IP
alias merupakan pemberian suatu alamat IP Address pada satu interface ( LanCard
) lebih dari satu. jadi satu lancard bisa memiliki lebih dari satu IP address.
IP alias biasanya digunakan pada server-server untuk mempermudah dan
meminimalis NIC yang digunakan.
1. Setting IP pada Interfaces
pico /etc/network/interfaces
|
#kemudian
edit file Interfaces
# This file describes the network
interfaces available on your system
# and how to activate them. For
more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0 eth0:1 eth0:2
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.240
network 192.168.1.1
broadcast 192.168.1.17
iface eth0:1 inet static
address 192.168.1.3
netmask 255.255.255.240
network 192.168.1.1
broadcast 192.168.1.17
iface eth0:2 inet static
address 192.168.1.4
netmask 255.255.255.240
network 192.168.1.1
broadcast 192.168.1.17
|
2. Restart Network
/etc/init.d/networking
restart
|
3. Hidupkan eth0 eth0:1 eth0:2
ifup eth0 eth0:1 eth0:2
|
4. Pengujian Jaringan
ping 192.168.1.2
ping 192.168.1.3
ping 192.168.1.4
|

No comments:
Post a Comment