Simple configuration of DHCP server in VMware

Source: Internet
Author: User
In VMware, simply configure the DHCP server-Linux Enterprise Application-Linux server application information. The following is a detailed description. Learn about DHCP configuration in linux in vmware this afternoon.

Setup of a preliminary test environment
1. System Environment: Fedora 2
2 Software Version: dhcp-3.0.1rc12-4.i386.rpm on the second disc
3. hardware environment
First, set the NIC in vmware to host-only.
It is equivalent to connecting the virtual network card vmnet1 on the host to the virtual machine's network card. disable DHCP for the vmnet1 network card (which is enabled by default.

2. Install the dhcp server
Rpm-ivh dhcp-3.0.1rc12-4.i386.rpm
There is a dhcp profile template in/usr/share/doc/dhcp-3.0.1rc12/dhcp. conf. sample
Copy the dhcp. conf. sample file to the/etc directory and change the file name to dhcpd. conf.
Configure dhcp in/etc/dhcpd. conf
Common configurations are as follows:
// Set the subnet Declaration
Subnet 192.168.2.1 netmask 255.255.255.0 {
// Set the default gateway for DHCP
Option routers 192.168.2.1
// Set the subnet mask for DHCP
Option subnet-mask limit 255.0
// Set the DNS server address for DHCP
Option domain-name-servers 192.168.2.1
// Set the address pool
Range dynamic-bootp 192.168.2.100 192.169.2.254
// Specify the MAC address of the DHCP Client
Host ns {
Hardware ethernet **:**:**:**:**:**
// Assign a fixed IP address to the specified MAC address
Fixed-address 192.168.2.111}

In addition, you can view the allocated IP addresses in/var/lib/dhcp/dhcpd/lease.

A simple DHCP server is built. You can obtain the IP address through the test machine.
Because there are still many advanced and complex configurations that do not have time to experiment today, we will continue to improve this configuration document in the future.
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.