Fedora8 server configuration-Dhcp Configuration

Source: Internet
Author: User
Dhcp configuration for Fedora8 server-Linux Enterprise Application-Linux server application information. For details, see the following section. The main configuration file of the dhcp service is dhcpd In the/etc directory. conf file. After the dhcp service is installed, the file contains only the following lines (the comment line starts ):

#

# DHCP Server Configuration file.

# See/usr/share/doc/dhcp */dhcpd. conf. sample

#

1. manually configure the dhcp service

Command: vi/etc/dhcpd. conf

The basic content in the dhcpd. conf file is as follows:

Ddns-update-style none; (required for this row)

# DHCP Server Configuration file.

# See/usr/share/doc/dhcp */dhcpd. conf. sample

Subnet 192.168.27.0 netmask 255.255.255.0 {

Interface eth0;

Range 192.168.27.81 192.168.27.100;

Default-lease-time 604800;

Max-lease-time 7200;

Option routers 192.168.27.254;

Option domain-name-servers 192.168.27.234;

Option subnet-mask limit 255.0;

Option broadcast-address 192.168.27.255;

# Configure the static IP address as follows

Host syzx-fangjy {

Hardware ethernet 00: 0C: 29: 89: 0D: A4;

Fixed-address 192.168.27.230;

}

}



2. Set a firewall

Command: lokkit

Select Customize (Custom), enter dhcp: udp, dhcp: tcp in the "Other Ports:" column, enter "67,68" in the "Custom Rules:" column, and then select "OK.

3. Start (or restart the dhcp service)

Service dhcpd start (service dhcpd restart)

After the preceding steps, the dhcp service is successfully configured.

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.