Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » Cara Membuat IP Alias di Raspberry

Cara Membuat IP Alias di Raspberry

1. Taruh Script dibawah ini kedalam fileĀ /etc/network/if-up.d/ifup-alias, Buatlah file tersebut (Executable) dengan Chmod 755.

—-

#! /bin/bash
if [ “$IFACE” == “eth0″ ]
then
ifup eth0:0
elif [ “$IFACE” == “wlan0″ ]
then
ifup wlan0:0
fi

2. lakukan penambahan penambahan ip address di /etc/network/interfaces
#WIRED / CABLES
iface eth0:0 inet static
address 192.168.0.30
network 192.168.0.0
netmask 255.255.255.0

#WIRELESS
iface wlan0:0 inet static
address 192.168.0.30
network 192.168.0.0
netmask 255.255.255.0

Filed under: 7. Operating System

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>