nerdexam
Red_Hat

RH302 · Question #99

RH302 Question #99: Real Exam Question with Answer & 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.1 192.168.0.25

Question

You have DHCP server, which assigns the IP, gateway and DNS server ip to Clients. There are two DNS servers having MAC address (00:50:FC:98:8D:00, 00:50:FC:98:8C:00), in your LAN, But they always required fixed IP addres (192.168.0.254, 192.168.0.253). Configure the DHCP server to assign the fixed IP address to DNS server.

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.1 192.168.0.254; host dns1 { hardware ethernet 00:50:FC:98:8D:00; fixed-address 192.168.0.254; } host dns2 { hardware ethernet 00:50:FC:98:8C:00; fixed-address 192.168.0.253; } }

Community Discussion

No community discussion yet for this question.

Full RH302 Practice