Pages

Rabu, 05 Oktober 2011

Setting Multi IP di Linux Ubuntu/Debian

Untuk Postingan kali ini saya akan berbagi ilmu kembali tentang mensetting multi IP dan Multi domain.

1.Setting Multi IP
debian@root# nano /etc/network/interface

auto eth0
iface eth0 inet static
address 192.168.30.1
netmask 255.255.255.0

auto eth0:0
iface eth0 inet static
address 192.168.40.1
netmask 255.255.255.0
(Simpan dengan menekan tombol Ctrl+x lalu tekan y)

debian@root# /etc/init.d/networking restart

2. Setting BIND9 MULTIDOMAIN
debian@root# cd /etc/bind
debian@root# cp db.local xtreme.com
debian@root# cp db.local xtreme
debian@root# cp db.local power.com
debian@root# cp db.local power
debian@root# nano xtreme.com

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA xtreme.com. root.xtreme.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS xtreme.com.
@ IN A 192.168.30.1
www IN A 192.168.30.1
profil IN A 192.168.30.1
(Simpan dengan menekan tombol Ctrl+x lalu tekan y)

debian@root# nano xtreme

; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA xtreme.com. root.xtreme.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS xtreme.com.
1 IN A xtreme.com.
(Simpan dengan menekan tombol Ctrl+x lalu tekan y)

debian@root# nano power.com

; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA power.com. root.power.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS power.com.
@ IN A 192.168.40.1
www IN A 192.168.40.1
profil IN A 192.168.40.1
(Simpan dengan menekan tombol Ctrl+x lalu tekan y)

debian@root# nano power

; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA power.com. root.power.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS power.com.
1 IN A power.com.
(Simpan dengan menekan tombol Ctrl+x lalu tekan y)
-------------
debian@root# nano named.conf.local

zone "xtreme.com" {
type master;
file "/etc/bind/xtreme.com";
};

zone "30.168.192.in-addr.arpa" {
type master;
file "/etc/bind/ptr";
};

zone "power.com" {
type master;
file "/etc/bind/power.com";
};

zone "40.168.192.in-addr.arpa" {
type master;
file "/etc/bind/ptr1";
};
(Simpan dengan menekan tombol Ctrl+x lalu tekan y)

debian@root# /etc/init.d/bind9 restart
debian@root# nano /etc/resolv.conf

nameserver 192.168.30.1
nameserver 192.168.40.1

Nah Sekarang Kita punya 2 IP dan 2 Domain dalam satu Server. semoga bermanfaat ya. :)

0 komentar:

Posting Komentar