SMEOnffLine: Mengubah IP address agar menjadi IP address Statik atau IP address Dinamik

From SpeedyWiki

Jump to: navigation, search

Sesuaikan isi /etc/rc.local dengan keperluan kita. Nilai default IP address dinamik. Untuk aplikasi server harus di set agar IP address statik.

Contents

[edit] IP Statik

[edit] Copy /etc/rc.local

sudo cp /etc/rc.local.ip.statik /etc/rc.local

[edit] Sesuaikan DHCP Server

Edit DHCP Server agar sesuai, misalnya

vi /etc/dhcp3/dhcpd.conf
ddns-update-style none;
option domain-name "ukm.co.id"
option domain-name-servers 192.168.0.254, 203.34.118.10, 203.34.118.12, 208.67.222.222, 208.67.220.220;
default-lease-time   86400; # 24 jam
max-lease-time      172800; # 48 jam
authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
       range 192.168.0.30 192.168.0.70;
       option routers 192.168.0.1;
       }

[edit] Sesuaikan SMTP Postfix

vi /etc/postfix/main.cf
mynetworks = 127.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/16

[edit] Sesuaikan NTP Server

vi /etc/ntp.conf 
restrict 192.168.0.0 mask 255.255.255.0 trust
broadcast 192.168.0.255

[edit] Sesuaikan dansguardian

vi /etc/dansguardian/dansguardian.conf
accessdeniedaddress = 'http://192.168.0.254/cgi-bin/dansguardian.pl'

[edit] Sesuaikan eGroupWare

Edit konfigurasi & sesuaikan IP address yang baru

http://localhost/egroupware/setup/config.php

[edit] Sesuaikan Wiki

Edit konfigurasi

vi /var/www/wiki/LocalSettings.php
$wgLogo                = "http://192.168.0.254/wiki/odc-wiki.jpg";

[edit] IP Dinamik

[edit] Copy /etc/rc.local

sudo cp /etc/rc.local.ip.dinamik /etc/rc.local

[edit] Matikan DHCP Server

sudo /etc/init.d/dhcp3-server stop

[edit] Pranala Menarik

Personal tools