DHCP.v7

From Access Information
Jump to: navigation, search


Installing New Server Mrepo smartd RAID Hardening YUM Crontabs LogWatch systemctl firewalld CentOS 7
Packages
Apache Bind Cacti DHCP mariadb Samba Sarg Sendmail Smokeping Rsync Work Apps
Problems VPN VPN Win Extras Bash MailScanner Horde Google CE Wake Up KVM
Other Computer Lab ISO2USB aiContact Google CE Android USB Live SRS XML

DHCP

yum install dhcp-common.x86_64 dhcp

dhcpd.conf

#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.example
#   see dhcpd.conf(5) man page
#
# Option definitions common to all supported networks

# This DHCP server Authoritative server in the Network.
authoritative;
subnet 192.168.7.0 netmask 255.255.255.0 {# Specify the range of lease IP address

       option broadcast-address        192.168.7.255;
       option routers                  192.168.7.254;
       option subnet-mask              255.255.255.0;
       option nis-domain               "tcsurvey.co.nz";
       option domain-name              "tcsurvey.co.nz";
       option domain-name-servers	192.168.7.254;
       option time-offset              43200;  # NZ Standard Time

       range dynamic-bootp 192.168.7.40 192.168.7.199;
       default-lease-time 216000;
       max-lease-time 432000;

 host derek{
  option host-name "derek.tcsurvey.co.nz";
  hardware ethernet 00:1c:c4:32:1b:2d;
  fixed-address 192.168.7.11;
 }
}

firewalld

firewall-cmd --zone=public --add-port=67/upc --permanent
firewall-cmd --zone=public --add-port=68/upc --permanent

systemctl

systemctl enable dhcpd 
systemctl start dhcpd
  • Did you find this page useful?
  • Do you have an issue that you have not yet fixed?

We can do this for you.

I am available for technical support. Please follow this link. Tech Support Request.
+64-6-880-0000 : ++1-808-498-7146 : help@ai.net.nz
Getting us to help you