Monday, January 22, 2007

OpenBSD DHCP Server

####################
# DHCP Server
####################



root@dikpora /root]$ nano -w /etc/rc.conf
dhcpd_flags="" # for normal use: ""



root@dikpora /root]$ nano -w /etc/dhcpd.interfaces

# $OpenBSD: dhcpd.interfaces,v 1.1 1998/08/19 04:25:45 form Exp $
#
# List of network interfaces served by dhcpd(8).

rl1


root@dikpora /root]$ nano -w /etc/dhcpd.conf
# $OpenBSD: dhcpd.conf,v 1.1 1998/08/19 04:25:45 form Exp $
#
# DHCP server options.
# See dhcpd.conf(5) and dhcpd(8) for more information.
#

# Network: 192.168.1.0/255.255.255.0
# Domain name: dikpora.smk2-solo.sch.id
# Name servers: 192.168.10.1
# Default router: 192.168.1.1
# Addresses: 192.168.1.2 - 192.168.1.50
#
shared-network LOCAL-NET {
option domain-name "dikpora.smkn2-solo.sch.id";
option domain-name-servers 192.168.10.1;

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;

range 192.168.1.2 192.168.1.50;
}
}



root@dikpora /root]$ touch /var/db/dhcpd.leases
root@dikpora /root]$ reboot
root@dikpora /root]$ ps ax |grep dhcpd
22945 ?? Is 0:00.00 /usr/sbin/dhcpd rl1

No comments: