Red_Hat
RH302 · Question #99
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…
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…
Network configuration
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:
- 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; } }
Topics
#DHCP#MAC address reservation#fixed IP assignment#dhcpd.conf
Community Discussion
No community discussion yet for this question.