Install the fedora DHCP server under Vmware

Source: Internet
Author: User

 

Use Yum list | grep DHCP to obtain the DHCP installation package (or DHCPD ?)

Run the rpm-qc dhcp command to check the location of the DHCP configuration file.

On my fc14, DHCP 4.2 is

/Etc/DHCP/DHCPD. conf (configuration file, mainly to modify this file)
/Etc/DHCP/dhcpd6.conf
/Etc/OpenLDAP/Schema/DHCP. Schema
/Etc/sysconfig/DHCPD
/Etc/sysconfig/dhcpd6
/Etc/sysconfig/dhcrelay
/Var/lib/DHCPD. Leases (record file, you can view this file)
/Var/lib/DHCPD/dhcpd6.leases

 

Open/etc/DHCP/DHCPD. conf in the editor and configure

It mainly configures a subnet, and some information about the IP segment and lease period.

My configuration information is as follows:

 

Ddns-Update-style none;
Option domain-name "";
Get-lease-hostnames true;
# Option domain-name-servers mainserver. skolesys. Local;
Log-facility local7;
Subnet 192.168.50.0 netmask 255.255.255.0 {
Range 192.168.50.50 192.168.50.254;
Option routers 192.168.50.1;
Default-lease-time 604800;
Max-lease-time 605800;
Filename "pxelinux.0 ";
Option root-path "192.168.50.1:/opt/LTSP/i386 ";
}

 

Next, configure the IP address of the server. The IP address and the sunnet IP address of the configuration file must be in the same network segment,

It is best to use the same IP address as the router IP address. According to the above DHCP. conf file, the server configuration is as follows,

 

 

Finally, use service DHCPD start to start the DHCP service. The server is configured.

 

Verify whether the server is enabled because it is installed through VMware,

Therefore, it can only be verified between the host and VMWare. The following is the configuration of VMware.

 

First, understand how VMware's network is configured. After VMware is installed, there will be two virtual NICs,

One is configured as Nat by default, and the other is configured as host-only (or bridge mode) by default ),

You can use vmnet8 and vmnet1 to configure their respective modes, as shown in the following two figures.

 

 

After fedora is installed, perform Virtual Machine

After vmnet1 disable, enable again. Check whether the IP address is in the segment configured in DHCP. conf.

Or open it directly.

/Var/lib/DHCPD. Leases

View records. My records are as follows:

Lease 192.168.50.50 {
Starts 5 2010/11/12 00:25:35;
Ends 5 10./11/19 00:25:35;
Tstp 5 2010/11/19 00:25:35;
CLTT 5 2010/11/12 00:25:35;
Binding State active;
Next binding state free;
Rewind binding state free;
Hardware Ethernet 00: 50: 56: C0: 00: 01;
UID "/001/000 PV/300/000/001 ";
Client-hostname "zlislw ";
}

We can see that 192.168.50.50 meets the requirements.

 

* If you want to access the Internet, remember to change all the settings back. The above settings only test whether DHCP works normally.

 

 

 

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.