Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
MDI DHCP Server Implementation
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== '''Configuring DHCP Server''' == Edit configuration file and make below entries [root@mdidhcpserver dhcp]# vim /etc/dhcp/dhcpd.conf # DHCP Server Configuration file. # see /usr/share/doc/dhcp*/dhcpd.conf.sample # see 'man 5 dhcpd.conf' log-facility local5; authoritative; subnet 192.168.0.0 netmask 255.255.0.0 { range 192.168.13.1 192.168.24.254; option domain-name-servers 192.168.10.83, 192.168.12.25; option domain-name "mdi.ac.in"; option routers 192.168.12.25; option broadcast-address 192.168.15.255; default-lease-time 864000; max-lease-time 1728000; } #Fixed address host DESKTOP-NH2KCIO { hardware ethernet B6:86:87:B2:FD:EC ; fixed-address 192.168.17.228;} host DESKTOP-NH3KCIO { hardware ethernet B0:5A:DA:D6:9C:7D ; fixed-address 192.168.13.202;} host DESKTOP-NH1KCIO {hardware ethernet 44:8a:5b:72:53:b2 ; fixed-address 192.168.12.215;} host Tarun_mobile {hardware ethernet 98:0c:a5:18:bc:bd ;} deny unknown-clients; # Unknown clients get this pool. subnet 169.254.0.0 netmask 255.255.0.0 { option domain-name-servers ns1.example.com, ns2.example.com; max-lease-time 300; range 169.254.0.1 169.254.255.254; allow unknown-clients; } include "/mac_address/NMP28_MAC_Responses.txt"; include "/mac_address/PGPM_2014.txt"; include "/mac_address/PGPM_2015.txt"; include "/mac_address/PGPIM_2014.txt"; include "/mac_address/PGPIM_2015.txt"; include "/mac_address/sap_2016.txt"; include "/mac_address/fpm_2015.txt"; include "/mac_address/Vendor.txt"; include "/mac_address/PGHR_2015.txt"; include "/mac_address/PGHR_2014.txt"; include "/mac_address/Faculty_Staff_Hostel_LH_LAB.txt"; include "/mac_address/PTPGPM.txt"; --------------------------------------------------------------------------- '''Assign the network interface:''' [root@mdidhcpserver ~]# vim /etc/sysconfig/dhcpd Make below entry: DHCPDARGS=eth0 --------------------------------------------------------------------------- '''After configuration Restart DHCP Service''' [root@mdidhcpserver ~]# /etc/init.d/dhcpd restart [root@mdidhcpserver ~]# chkconfig dhcpd on '''Disable dhcpd6 service''' [root@mdidhcpserver dhcp]# /etc/init.d/dhcpd6 stop [root@mdidhcpserver dhcp]# chkconfig dhcpd6 off --------------------------------------------------------------------------- '''Enabling log''' [root@mdidhcpserver ~]# vim /etc/rsyslog.conf Make below entry in rsyslog.conf file # Save DHCP log local5.* /var/log/dhcpd.log --------------------------------------------------------------------------- '''Restart rsyslog service''' [root@mdidhcpserver ~]# /etc/init.d/rsyslog status rsyslogd (pid 1349) is running... [root@mdidhcpserver ~]# /etc/init.d/rsyslog restart
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)