The above configuration is a Hyper-V installation of CentOS 7.0The way to install a DHCP server isYum Install DHCPDAfter installation and configuration, there is an error when runningThe error prompts are as follows: for Start (no IPV4 addresses.)--- error one .... configured to listenon any interfaces! ---error two.-----------------------------------Analyze the
7. Configure the DHCP server and dhcp server for two different subnets.
The environment is as follows: (ensure that the two subnets can be pinged to each other before reference)
Vm1 192.168.170.3 VMnet8 (NAT Mode)
Virtual Machine vm2 192.168.155.3 VMnet1 (host mode only)
Vi
configuration file.
DHCP server settings
Install server software
[root@centos ~]# yum install -y dhcp
Check which important files are provided by the dhcp Software
[root@centos ~]#
/fallback-net
Configure DHCPD to start automatically, this new change on CentOS 7 #systemctl Enable Dhcpd.service//Original is Chkconfig dhcpd on
# systemctlis-enabled DHCPD
Enabled//appears this word, the proof has been set to boot up.
1.3. Test
Testing on a single Windows client
Tips: This DNS is my previous settings, easy access to the Internet.
# tail/var/lib/dhcpd/dhcpd.leases///
Dynamic Update of DNS and DHCP in CentOS 7
Windows domain has a function, dhcp sends the new ip address data to the DNS server, so that you can easily remotely know a person's computer name.
Of course, similar functions can be well implemented in linux. Man 5 dhcpd. conf
Enable Nic enable DHCP in Centos 7 to automatically obtain IP addresses
By default, Centos7 does not enable Nic configuration. That is to say, all network interfaces are available and the Internet cannot be accessed. Because I am locally installed, I don't want to spend a long time setting static IP addresses too slowly, directly enable the network function to au
.jpg "title=" Dh2.png "alt=" Wkiol1v9atzso3aeaajntdzufyk481.jpg "/>7. Restart the DHCP server after configuration is complete650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/78/wKiom1V9aBzSjVHiAACJq2645y0632.jpg "title=" cq.png "alt=" Wkiom1v9abzsjvhiaacjq2645y0632.jpg "/>Reboot successfully, complete the configuration!8. Configure the
interface. The advantage of the above command is that it does not need to care about the IP address of the interface, and the conversion will automatically proceed.
Or run the following command:
Iptables -- table Nat -- append postrouting -- Out-interface eth0-J Masquerade
Iptables -- append forward -- In-interface eth1-J accept
Now let's take a look at whether the client can connect to the Internet normally. As follows:
The above operations on the firewall are temporary. The next time y
/526870_1409019187hn89.png "width =" 722 "Height =" 623 "/>
The above operations on the firewall are temporary. The next time you restart the DHCP server client, you still cannot connect to the internet normally.
You can save the rule by saving/etc/init. d/iptables. As follows:
/Etc/init. d/iptables save
More/etc/sysconfig/iptables
650) This. width = 650; "Title =" clip_image024 "style =" border-right-width
Linux: CentOS 6.5
1. Install DHCP service components:# Rpm-ivh dhcp-4.1.1-38.P1.el6.centos.x86_64.rpm or yum install dhcpOptions and parameters:-I: install-V: view more detailed installation information.-H: displays the installation progress in the installation information column.
2. list all files and directories of the software (list ):
# Rpm-ql dhcpOptions and
Install the dhcp server on Centos/Ubuntu (Not configured to listen on any interfaces !)
A soft routing service is being developed recently. One of the features is the dhcp service. Record the process for your reference.
(Dhcpd version 4.1.1 and centos version 6.6)
Body:
(1)
Recently, in a soft route, one of the features is the DHCP service. Record the process for other people to refer to.(DHCPD version 4.1.1,centos version 6.6)Reference article:(1) Click to open the link(2) Click to open the linkBody:(1) Installing DHCPUbuntu uses Yum with Apt-get,centos, which is not much to say.(2) Boot and start serviceSet DHCPD to boot,
Failure Phenomenon:
Windows 7 system uses wireless to prompt "Windows cannot start wireless pan DHCP Server service" (located on the local computer). Error 1067: Process terminated unexpectedly. As shown in the following illustration:
Solution:
1. Enter Lenovo official service website, manually download and fully install the Intel wireless networ
Set up an FTP server on centos 7 and set up ftp on centos 7Note: This article refers to the CSDN blogger xiaocia's article 《Build an FTP server on CentOS7To verify the feasibility. However, there is one drawback:
After linux is restarted, ftp cannot be accessed. I have also
CentOS 7 64-bit installation and configuration of PXE Server
This article describes how to install and configure a PXE Server on the RHEL/CentOS 764-bit with a local image installed repository. The repository source is provided by the ISO image of
Tags: dockerScenario One: Use wget to download the latest version of Tomcat build when Docker is created#centos7+oraclejdk7+tomcat7 from centos:centos7 maintaineryuj Scenario Two: Build with the Tomcat compression package downloaded on the Docker server (apache-tomcat-7.0.63.tar.gz is used here) #centos7+oraclejdk7+tomcat7 fromcentos:centos7 maintaineryuj Use Docker to build a Web server for
Configure PXE network startup server in RHEL/CentOS 7
PXE Server -- pre-start execution environment -- instructs the client computer to Start, Run, or install the operating system directly from the network interface, without burning a CD/DVD or using a certain physical media, it can reduce the workload of installing th
The following simple guide, "the VNC server on RHEL 7/centos 7 machines, VNC help to share the desktop wit H The other machines which have a client installed. VNC server and client is not a installed by default, you need to setup the VNC
. conf file which may be located in the/etc/DHCPD or/etc/dhcp3 directories depending on your version of Linux.
Note:The skeleton DHCP. CONF file that is created when you install the package may vary in its completeness. in ubuntu/Debian, the skeleton DHCPD. conf file is extensive with most of the commands deactivated with a # sign at the beginning. in fedora/RedHat/centos an extensive sample is also created
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.