Freebsd ---- Dhcpserver

Source: Internet
Author: User
Tags domain name server
Freebsd ---- Dhcpserver -- Linux Enterprise Application-Linux server application information. The following is a detailed description. Dhcp server

1 cd/usr/ports/net/isc-dhcp3-server

Make install clean

2. Create dhcpd. conf in the/usr/local/etc/dhcpd. conf. sample file.

Ee/usr/local/etc/dhcpd. conf

3
Default-lease-time 600;

Default Client address lifetime/second

Max-lease-time 7200;

Maximum Lifetime/second

Option domain-name "warder_cn ";

Domain Name Server


Option domain-name-servers 192.168.1.1, 61.144.56.100;

Dns server address



Ddns-update-style none;

Dynamic dns Update (none not updated)



Subnet 10.10.1.0 netmask 255.255.255.0

{

Range 10.10.1.50 10.10.1.100;

Option routers 10.10.1.25

}

Dhcp address pool 10.10.1.0 network segment, subnet mask 255.255.0

Address pool 10.10.1.50 to 100

Default Gateway 10.10.1.25


****

If you want to bind mac + ip

Host hostname

{

Hardware ethernet mac;

Fixed-address ip

}


4



Ee/etc/hosts 255.255.255.255.255 dhcp server address


5 route add-add dchp server address-interface Intranet Nic


Add Rc. conf file

Dhcpd_enable = "YES"

Dhcpd_ifaces = "intranet Nic name"


6

Modify dhcpd. conf to kill dhcpd

7

Reboot

The startup is successful and can be seen in dmesg.

Listening on BPF/rl0/mac/ip

Sending on BPF/rl0/mac/ip

Sending on socket/fallback-net
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.