Welcome to 3-Oz!!! | Blog NetOS !!!

Selamat Datang di Situs Blog 3-Oz (Blog NetOS) !!! Mari kita salurkan aspirasi anda dengan berbagi ilmu dan kreasi berupa imajinasi !!!

About Me

Its My Life !!! Orang yang sederhana dan ingin mempunyai cita-cita Tinggi dan terus bersemangat untuk merebut itu semua !!!

Semangat Juang !

Untuk menyambut Hari Kemerdekaan Indonesia, Ayo kita Bangkitkan Semangat Juang utk membangun Negeri ini !!!

Indahnya saat Bersama

Kebersamaan adalah suatu hal yang sangat menyenangkan bagiku karena mereka yg bisa membuatku bahagia dan menjadi spirit bagiku.

Warna-Warniku

Hidup itu sementara tentunya kita harus mampu mewarnai diri kita supaya bisa lebih bermakna dari semuanya

Wednesday, July 27, 2011

Creating a DHCP Server in FreeBSD

In the activity PKL / Internships in Puskom UNS, I will make a DHCP server in the scope of the Faculty of Agriculture using the IP Router 10.82.57.1/24

Here are the steps:
1. First install the DHCP server package, with the first entry as root,

#cd /usr/ports/net/isc-dhcp31-server
#make install clean 
2.If so, Copy dhcpd.conf.simple to the dhcpd.conf file, in /usr/local/etc
#cd /usr/local/etc/
#cp dhcpd.conf.simple dhcpd.conf
3. Then, setting and configuration dhcpd.conf
#ee /usr/local/etc/dhcpd.conf
Edit :
A slightly different configuration for an internal subnet.
subnet 10.82.57.0 netmask 255.255.255.0 {
range 10.82.57.2 10.82.57.253;
option domain-name-servers 203.6.148.2;
option domain-name "fp.uns.ac.id";
option routers 10.82.57.1;
option broadcast-address 10.82.57.255;
default-lease-time 600;
max-lease-time 7200;
}
if finished, please "Save"
4. Next, add the script in /etc/rc.conf/ :
#ee /etc/rc.conf/
 add the following script :
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="re0"
dhcpd_withumask="022"
 if finished, dont forget to "Save"

5. Then, please to start DHCP Server :
#/usr/local/etc/rc.d/isc-dhcpd start

Creating a DHCP Server in MikroTik

In the task PKL / Internship UPT. Puskom UNS this time is made ​​by using Mikrotik DHCP Server for Building C and D of Agriculture Sebelas Maret University.

Here are the steps:
1. Login to your mikrotik using MikroTik WinBox

2. Look at the ip that is used as eth1 and eth2 or ip at interfaces, select Menu ip --> addresses,


3. klik menu IP --> Poll --> Add (+), to make the IP range that will is distributed, for example with name :  dhcp-pool dan range ip : 10.101.111.3-10.101.111.253

4. Then Enable the DHCP server, klik menu IP --> DHCP Server-->Add(+), In the name content with a network or anything, eg dhcp-rt-cd (up to you)
At the interface select the interface that will didistribuskian its dynamic IP in this case because ether2 ether2 to be distibusikan to Building C and D Faculty of Agriculture UNS
In the address poll, select
dhcp-pool

5. Next configure the Default gateway and DNS server when the client will be connected to the internet. Still in the windows DHCP Server, klik tab Network,

6. If you have any, check the status of DHCP with open Menu New Terminal, type :>ip dhcp-server print




7. Now we are setting his client by using the ip automatically : 


To find out who is connected with mikrotik dhcp ip can be seen, at Menu ip-->DHCP Server--> tab leases


GOOD LUCK !!!