Install the DHCP server on FreeBSD-general Linux technology-Linux technology and application information. For more information, see. Install the DHCP server on FreeBSD
System installation under Virtual Machine
Partition:/fs 500 M
Swap 256 M
/Usr fs 2048 M
/Var fs 500 M
/Tmp fs 500 M
/Home fs 1024 M
/Soft fs remaining space
Host Name: one
Account: root
Password 123456
# Vi/etc/rc. conf
Sshd_enable = "yes"
Ifconfig em0 (fxp0 in this project) 192.168.2.1 netmask 255.255.255.0
Ifconfig em1 (this project is nfe0) 192.168.3.1 netmask 255.255.255.0"
Under/etc
# Sh netstart // restart the network
Set ssh under/etc/ssh
# Vi sshd_config
// Make a modification
PermitRootLogin yes
PasswordAuthentication yes
PermitEmptyPasswords yes
Install DHCP
Mount to/mnt and copy the installation file to/soft for Installation
Tar zxvf dhcp-4.1.0.tar.gz under/soft
Under the dhcp-4.1.0
#./Configure
# Make
# Make install
Configure DHCP
# Find/-name dhcp. conf
# Cp/usr/local/etc/dhcp. conf/etc/dhcpd. conf
Edit dhcpd. conf under/etc/dhcpd. conf (delete all unused information temporarily)
# Vi/etc/dhcp. conf
Subnet 192.168.2.0 netmask 255.255.255.0 {
Server-identifier 192.168.2.1;
Range 192.168.2.10 192.168.2.250;
Option broadcast-address 192.168.2.255;
Default-lease-time 600;
Max-lease-time 7000;
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.