Showing posts with label dhcpd. Show all posts
Showing posts with label dhcpd. Show all posts

How To Change Apache Home Page

To change Apache web server's home page, you need to edit the httpd.conf configuration file and specify a new page as default Home page. 

If your home page is created as "home.html" and is located in /var/www/html/home.html follow the steps below to set home.html as default home page


Edit configuration file
[root@server ~]# vi /etc/httpd/conf/httpd.conf
Go to the "DirectoryIndex" parameter (can find near 402nd line) and add the new page as default home page like below
DirectoryIndex home.html
# Now save the httpd.conf file
Click on image to enlarge
Restart the httpd daemon 
[root@server ~]#  service httpd restart

Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

Test new home page
Test new Home page by going to the home url of website.

[SOLVED] How to reserve IP Address in Linux DHCP Server

FREQUENTLY ASKED QUESTIONS (Linux DHCP Server)
Q: How to reserve an ip address in dhcp server?

  You are administering a DHCP Server in a Linux Distribution, and you need to reserve a fixed ip address for a special dhcp client. DHCP server will always assign fixed ip address  to that specific client. This tutorial should work in all the popular linux distributions like Ubuntu, Fedora, Redhat, CentOS, etc.

This dhcp server ip address reservation is MAC Address 
based reservation. You should know the MAC address of the dhcp client's Ethernet NIC card and add it to dhcp configuration file.


Requirement
Name: Accountant (Any name)
MAC address: A1:B2:C3:D4:E5:F6
Fixed ipaddress: 192.168.10.29


How To Reserve IP Address
First, Edit the dhcpd configuration file and add an ip address reservation 
In Ubuntu, Debian Linux distributions
user@ubuntu:~$ sudo vi /etc/dhcp3/dhcpd.conf
                            OR
In RPM Disrtibutions like Redhat, Fedora, CentOS. etc.
[root@server ~#]vi /etc/dhcp/dhcpd.conf


host Accountant {
hardware ethernet
 A1:B2:C3:D4:E5:F6;
fixed-address 192.168.10.29;
}

#Add the above 4 lines(green in color) to the dhcpd.conf configuration file and save file. 
Now the dhcp server always assign the ipaddress 192.168.10.29 to the system with MAC address of A1:B2:C3:D4:E5:F6.


Restart dhcp service
[root@server ~#]service dhcpd restart
or
user@ubuntu:~$ sudo /etc/init.d/dhcp3-server restart
Restart network in dhcp client system.


Just worked ?  Post your comments and share with friends....


DHCP Server Related Posts

Configure DHCP Server in Linux

This configuration will work on all RPM based linux distributions (Redhat,Fedora,CentOS,etc.)

Steps to install and configure a DHCP Server

Step1: Install dhcp packages
[root@server ~#]yum install dhcp


Step2: Edit the dhcp configuration file located in /etc/dhcp/dhcpd.conf
[root@server ~#]vi /etc/dhcp/dhcpd.conf
#[Note: The lines to add or edit in dhcpd.conf file is colored brown. Enable the lines by removing ‘#’ if required and edit. Allways backup the configuration file before editing.]


#Add your domain name
option domain-name    ”servercomputing.com”;


#Add DNS  server addresses(for clients)
option domain-name-servers 192.168.10.50, 192.168.10.51;


#Set lease time
default-lease-time 600;


#set maximum lease time
max-lease-time 7200;


#activate dhcp server
authoritative;


#Add your ip address pool in below format. In this example network 192.168.10.0/24 and ip address pool is 192.168.10.201  to 250 for clients,gateway=192.168.10.1.
subnet 192.168.10.0 netmask 255.255.255.0 {
  range dynamic-bootp 192.168.10.201 192.168.10.250;
  option broadcast-address 192.168.10.255;
  option routers 192.168.10.1;
}


#This is the way to Reserve an ip address 192.168.10.29  for a special client named Accounts . [ MAC address based reservation]. Here 00:E0:5D:A0:6A:0C is the mac address of accounts pc’s NIC card(optional).
host Accounts {
  hardware ethernet 00:E0:5D:A0:6A:0C;
  fixed-address 192.168.10.29;
}


Step3: Start dhcp service
[root@server ~#]service dhcpd start


Step4: Add dhcp service to startup
[root@server ~#]chkconfig dhcpd on


Step5: To do in client computers
Set Obtain ip automatically in all windows and “Use DHCP” in linux client computers.

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons