LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-14-2011, 08:15 AM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,054

Rep: Reputation: 41
Is dhclient essential for internet browsing?


Whenever I run netstat command 'dhclient' always has an 'active internet connection'. Is it essential for web browsing or can I do web browsing without dhclient running all the time?
 
Old 10-14-2011, 08:33 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Hello,

For a short, simple answer, you need it only if you are connecting to a network via DHCP. If it is a statically assigned IP address, then you don't technically need it.

Cheers,

Josh
 
Old 10-14-2011, 09:09 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Your host requires an IP in order to communicate on the network. That IP is an address uniquely assigned to the NIC on your host computer. The IP can be assigned as a 'fixed' address, coded into the startup scripting, or can be assigned by a DHCP server on a remote network-attached host. In the latter case, the DHCP server periodically refreshes the assigned address, and this is done by communicating with the DHCP client (dhclient). If the DHCP client does not run, the IP will eventually expire, and further communication may fail. The DHCP server may also be providing other information to the client, especially the addresses of nameservers and network gateways, but possibly other parameters vital to proper IP communications.
The volume of traffic between DHCP clients and servers is very low, and other resources consumed by the client is also very small. I doubt the likelihood that it will interfere with anything, and it should not be cause for alarm or concern.

--- rod.

Last edited by theNbomr; 10-14-2011 at 09:11 AM.
 
Old 10-14-2011, 10:58 AM   #4
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,054

Original Poster
Rep: Reputation: 41
Thanks corp769 and theNbomr for your help.

Quote:
"If the DHCP client does not run, the IP will eventually expire"
This reminds of an earlier situation where internet connection was failing after a short period with an iptables firewall. Can you tell me what ports should be allowed by iptables for DHCP to run properly?
 
Old 10-14-2011, 01:03 PM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
The DHCP protocol specifies the use of UDP ports 67 & 68.
--- rod.
 
Old 10-14-2011, 07:35 PM   #6
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,054

Original Poster
Rep: Reputation: 41
Thanks for the info. Are they source or destination ports? What should be the iptables rule statement for DHCP to work properly?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhclient shows IP, but internet including ping wont work mjkelly93 Linux - Networking 1 10-09-2005 07:46 AM
dhclient needed every time i boot to get internet michiaki Linux - Newbie 5 06-26-2005 08:37 PM
internet browsing coal-fire-ice Linux - Software 2 12-09-2004 05:38 PM
dhclient / cant use keyboard on internet toastermaker Linux - Networking 6 06-04-2004 01:15 AM
Cannot conect to the internet. ¿dhclient? Guayacan Linux - Networking 1 01-01-2004 04:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration