nerdexam
Red_Hat

RH302 · Question #98

Configure the DHCP server by matching the following conditions: Subnet and netmask should be 192.168.0.0 255.255.255.0 Gateway Should be 192.168.0.254 DNS Sever Should be 192.168.0.254 Domain Name…

Answers: 1. vi /etc/dhcpd.conf ddns-update-style none; option routers 192.168.0.1; option domain-name "example.com"; option domain-name-servers 192.168.0.254; default-lease-time 21600; max-lease-time 43200; subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.10…

Network configuration

Question

Configure the DHCP server by matching the following conditions: Subnet and netmask should be 192.168.0.0 255.255.255.0 Gateway Should be 192.168.0.254 DNS Sever Should be 192.168.0.254 Domain Name should be example.com Range from 192.168.0.10-50

Explanation

Answers:

  1. vi /etc/dhcpd.conf ddns-update-style none; option routers 192.168.0.1; option domain-name "example.com"; option domain-name-servers 192.168.0.254; default-lease-time 21600; max-lease-time 43200; subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.10 192.168.0.50; } /etc/dhcpd.conf file is used to configure the DHCP. Some global options i.e Gateway, domainname, DNS server specified using option keyword.
  2. Check the SELinux Context, should be like this: -rw-r--r-- root root system_u:object_r:dhcp_etc_t /etc/dhcpd.conf
  3. If not use the restorecon -R /etc command to restore the selinux context of the file.
  4. service dhcpd start | restart

Topics

#DHCP server#dhcpd.conf#IP range#subnet configuration

Community Discussion

No community discussion yet for this question.

Full RH302 Practice