DHCP using Linux to build

How to set up DHCP services in Linux. First, give the machine to configure a static ip, the following information to modify the network card configuration file path:
vim / etc / sysconfig / Network-scripts / ens33 the ifcfg-
DHCP using Linux to build
DHCP using Linux to build
finished restart the service after configuration changes: systemctl restart network.

If it is, then yum install yum cache must first clear look rm -rf /etc/yum.repo.d/*
a new yum file vim /etc/yum.repo.d/a.repo
DHCP using Linux to build
use the system CD-ROM mount mount / dev / sr0 / media will mount the CD to the next meida directory
yum install DHCP services
cp -r /usr/share/doc/dhcp-4.2.5/dhcp.conf.example /etc/dhcp/dhcpd.conf
DHCP using Linux to build
into the main DHCP configuration file vim /etc/dhcp/dhcpd.conf
have a subnet statement on line 47
DHCP using Linux to build
after you set up the machine If you were using a printer a fixed IP, then there is a 77-line set retention
DHCP using Linux to build
Once configured wq to save and exit
last start DHCP systemctl start network services

Guess you like

Origin blog.51cto.com/14223370/2435258