1. Install the dhcp package: # yum install dhcp 2. Copy the sample file /usr/share/doc/dhcp*/dhcpd.conf.sample. # cp /usr/share/doc/dhcp*/dhcpd.conf.sample /etc/dhcp/dhcpd.conf 3. The Sample dhcp configuration file will look as follows. # cat /etc/dhcp/dhcpd.conf Allow booting; Allow bootp; authoritative; subnet 192.168.0.0 netmask 255.255.255.0 { option routers 192.168.0.1; range 192.168.0.100 192.168.0.200; default-lease-time 21600; max-lease-time 43200; You will need […]
Archives for May 2017
CentOS / RHEL : How to change SNMP community string
Question: How to change an SNMP community string in CentOS / RHEL? Answer: Here is a short note on how to change an SNMP community string and test if its working allright. 1. The below line in /etc/snmp/snmpd.conf needs to be modified to change the community string. Replace the string public or the last word […]
CentOS / RHEL : How to create new LVM based swap partition
Let see an example of increasing existing swap space by adding new LVM based swap. The example here uses the disk /dev/sdc for creating a new volume group and swap volume under it. Since we are going to use this disk, any data, if exists on it, will be lost. As root user perform the […]
CentOS / RHEL : How to add swap file
Not the best practices to add a file as swap space, but it comes handy when you have an urgent requirement of adding swap space. The post below describes steps to add swap file. Adding swap file Determine the size of the new swap file in MB and multiple by 1024 to determine the block […]