Wednesday, November 25, 2015

DHCP Server Configuration Part 2



Step-3:  After complete the NIC configure you have to change the host name by following this                             command:

[root@dhcp ~]# vi /etc/sysconfig/network

(Original File):

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain

(Modified File):

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=dhcp
Press Esc → Shift + : → x! → Enter

Step-3:  Edit the resolv.conf file by following this command

[root@dhcp ~]# vi /etc/resolv.conf

search alphabd.net
nameserver 210.207.201.1
nameserver 210.207.201.2

Step-4:  Copy & Rename the DHCP configuration file & Change the permission by following this                                

command:

[root@dhcp ~]# cd /usr/share/doc/dhcp-3.0.5/
[root@dhcp dhcp-3.0.5]# cp dhcpd.conf.sample  /etc/dhcpd.conf
[root@dhcp dhcp-3.0.5]# chmod 777 /etc/dhcpd.conf

Now Edit this file using vi editor & make some change in to this file.

[root@dhcp ~]# vi /etc/dhcpd.conf

(Original File):

ddns-update-style interim;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 {

# --- default gateway
      option routers                192.168.0.1;
      option subnet-mask            255.255.255.0;

      option nis-domain       "domain.org";
      option domain-name            "domain.org";
      option domain-name-servers    192.168.1.1;

      option time-offset            -18000;     # Eastern Standard Time
#     option ntp-servers            192.168.1.1;
#     option netbios-name-servers   192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#     option netbios-node-type 2;

      range dynamic-bootp 192.168.0.128 192.168.0.254;
      default-lease-time 21600;
      max-lease-time 43200;

      # we want the nameserver to appear at a fixed address
      host ns {
            next-server marvin.redhat.com;
            hardware ethernet 12:34:56:78:AB:CD;
            fixed-address 207.175.42.254;
      }
}
(Modified File):

ddns-update-style interim;
ignore client-updates;

subnet 210.207.201.0 netmask 255.255.255.0 {

# --- default gateway
      option routers                210.207.201.4;        
      option subnet-mask            255.255.255.0;

#     option nis-domain       "domain.org";
      option domain-name            "alphabd.net";        
      option domain-name-servers    210.207.201.1;

      option time-offset            -18000;     # Eastern Standard Time
#     option ntp-servers            192.168.1.1;
#     option netbios-name-servers   192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#     option netbios-node-type 2;

      range dynamic-bootp 210.207.201.50 210.207.201.254;
      default-lease-time 43200;
      max-lease-time 86400;

      # we want the nameserver to appear at a fixed address
      host ns {
            next-server marvin.redhat.com;
            hardware ethernet 12:34:56:78:AB:CD;
            fixed-address 207.175.42.254;
      }

      host pc01 {
            hardware ethernet 00:1E:68:91:BB:EC;
            fixed-address 210.207.201.100;
      }

      host client01 {
            hardware ethernet 00:0C:29:8C:95:01;
            fixed-address 210.207.201.150;
      }

}
Esc → Shift + : → x! → Enter

Step-5:  Create a dhcp.leases file that the DHCP server grants to the DHCP client to use a particular IP   address. If it does not exist dhcp server will fail to provide IP address for dhcp cient.

[root@dhcp ~]# touch /var/lib/dhcpd/dhcpd.leases
[root@dhcp ~]# service network restart

[root@dhcp ~]# service dhcpd restart

NEXT-Step-6

MAXIT INTERNET

BLOGGER

CD DVD RW

DELL

DOWNLOAD

FTP Server Linux

HACK

HARD DRIVE

HOW TO WORKIN

HARDWAER

INTERNET

INTERNET CAFE

LAPTOP

LENOVO

LINUX

Additional configuration for Samba Server (Part 2)  

BSNL/Airtel/Idea using Huawei E156G 3g Wireless USB Linux 5   

Basic File Extensions    CHANGING AN ACCOUNT EXPIRATION DATE   

Configure Linux as a Router   

Configure SAMBA Server (Part-1)   

Configure VNC server   

Configure Yum Server (Part-1)   

Configure yum server for Client machine (Part 3)   

Configuring Samba as a Standalone Server (Part 3)  

Connecting ftp Server with Anonymous User Part 5  

Create ftp account with Shared directory Part 3  

DHCP Server Configuration Part 2  

DHCP Server Configuration Part-1  

DHCP Server Configuration Part-3  

Enabling FTP Services in Yum Server (Part 5)  

FTP Server Configuration Part 1  

FTP Server How to Change In Primary DNS Server Part 2  

HTTP Client side configuration (Part 4)  

How to Vsftpd conf files Parameter Part 6   

LINUX FILE SYSTEM STRUCTURE  

Linux User Administrtion  

Linux as a Router configuration for Client Machine   

Linux client machine FileZilla FTP Client Part 4  

Local Yum Server (Part 2)  

Modifying Existing User Information  

Primary DNS Server Configuration Part-1  

Primary DNS Server Configuration Part-2    

Primary DNS Server Configuration Part-3  

Remove Linux From Your Pc Safely and restoring your MBR  

Sharing & Accessing Samba Share (Part 4)   

Speeding up your internet connection under Linux and Windows   

THE ROOT FILE SYSTEM   

VNC Server Configuration

LINUX LAB

Linux as a Router

MOTHERBOARD

Mobile

NETWORKING

REDHAT 5

REGISTRY EDTOR

RESET BIOS PASSWORD

SAMBA Server Linux

SERVER

SERVER CONFIG

SOFTWAER

VNC server Linux

Window 10

Window XP