my experience starting openBSD DHCP server
first
Edit /etc/rc.conf.local to start the DHCP server automatically:
dhcpd_flags=YES / dhcpd_flags=-q
Create/edit the file /etc/dhcpd.interfaces to list the interfaces dhcpd should listen on for DHCP requests:
# $OpenBSD: dhcpd.interfaces,v 1.1 1998/08/19 04:25:45 form Exp $
#
# List of network interfaces served by dhcpd(8).
#
# ep0
# ed0 le0
# de1
xl0 >> this your network card
and then
# mv /etc/dhcpd.conf /etc/dhcpd.conf.asli
# nano /etc/dhcpd.conf
----------------------------------start-------------------------
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.212.255;
option routers 192.168.212.2;
option domain-name-servers 192.168.212.1, 192.168.212.3;subnet 192.168.212.0 netmask 255.255.255.0 {
range 192.168.212.11 192.168.212.210;
}
--------------------E.o.F----------------------------------------
run dhcp server
# /usr/sbin/dhcpd
auto start dhcp insert into /etc/rc.local
# vi /etc/rc.local
------------------------------------
if [ -x /usr/sbin/dhcpd ] ; then
/usr/sbin/dhcpd
echo -n ‘ dhcp server’
fi
---------------------------------
and finish ok im success run the dhcp server
thanks to openbsd.org
first
Edit /etc/rc.conf.local to start the DHCP server automatically:
dhcpd_flags=YES / dhcpd_flags=-q
Create/edit the file /etc/dhcpd.interfaces to list the interfaces dhcpd should listen on for DHCP requests:
# $OpenBSD: dhcpd.interfaces,v 1.1 1998/08/19 04:25:45 form Exp $
#
# List of network interfaces served by dhcpd(8).
#
# ep0
# ed0 le0
# de1
xl0 >> this your network card
and then
# mv /etc/dhcpd.conf /etc/dhcpd.conf.asli
# nano /etc/dhcpd.conf
----------------------------------start-------------------------
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.212.255;
option routers 192.168.212.2;
option domain-name-servers 192.168.212.1, 192.168.212.3;subnet 192.168.212.0 netmask 255.255.255.0 {
range 192.168.212.11 192.168.212.210;
}
--------------------E.o.F----------------------------------------
run dhcp server
# /usr/sbin/dhcpd
auto start dhcp insert into /etc/rc.local
# vi /etc/rc.local
------------------------------------
if [ -x /usr/sbin/dhcpd ] ; then
/usr/sbin/dhcpd
echo -n ‘ dhcp server’
fi
---------------------------------
and finish ok im success run the dhcp server
thanks to openbsd.org
Comments
Post a Comment