Wednesday, November 25, 2015

DHCP Server Configuration Part-3




Step-6:   Client Configuration for using DHCP.

Linux Client

[root@dhcp ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

#Broadcom Corporation Net link BCM57875 Gigabyte Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:0C:29: EB: B2: CA
ONBOOT=yes
TYPE=Ethernet

Windows Client

From NIC Properties =>> set Obtain an IP Address Automatically

Step-7:   Renewing IP Address

Renew an IP Address in Linux

The -r flag explicitly releases the current lease, and once the lease has been released, the client exits. For example, open terminal and type the command:

[root@dhcp ~]# dhclient –r

Now obtain fresh IP:

[root@client1 ~]# dhclient

Or you can put the two commands on a single line:

[rnbsp; oot@client1 ~]# dhclient -r; dhclient

There is no need to restart network service. Above command should work with any Linux distro such as RHEL, Fedora, and others. On a related note you can also try out the following commands:

[root@client1 ~]# ifdown eth0
[root@client1 ~]# ifup eth0
[root@client1 ~]# /etc/init.d/network restart

Renew an IP Address in Windows

Open Command Prompt → Then Type The following command

C:\Documents and Settings\Administrator> Ipconfig  /release
C:\Documents and Settings\Administrator> Ipconfig  /renew

C:\Documents and Settings\Administrator> Ipconfig  /all

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