LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-07-2016, 03:59 PM   #1
qabsou
LQ Newbie
 
Registered: Jun 2013
Posts: 15

Rep: Reputation: Disabled
Red face dhcp


Hello

I have configured an dhcp client, all works well, until I try to communicate
with the server.I can not ping it or do any other communication.
If I use static addresses there is no problem.
If I display ifconfig on the dhcp interface I can not see any IP address.

What is the problem?
 
Old 04-08-2016, 02:56 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Quote:
If I use static addresses there is no problem.
If I display ifconfig on the dhcp interface I can not see any IP address.
Possible cause is your DHCP server is not configured properly. Access your DHCP server usually --though not always-- it is your modem and configure it as DHCHP server to offer IP to the client. Also, set your client to obtain IP automatically through DHCP server. Normally the DHCP server has a range of IP addresses it can offer, see to it that your network is within range of these IP in the server otherwise DHCP is offering an IP that doesn't work inside the intended network.

Know first the IP range available in the server. Then check your client if it is within the network (range) of these IPs
Code:
netstat -r
if they don't match use ifconfig to put down and then up the interface then see if the server-client dialogue leads to a workable match.

Hope that helps. Good luck.

m.m.
 
Old 04-08-2016, 11:36 AM   #3
qabsou
LQ Newbie
 
Registered: Jun 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Hi,

Checking it closlely, I can see that the interface is not configured at all.
I have got all needed information from the DHCP server. I can see it
in /var/bin/dhcp/dhcliente.leases.

I also can see that my dhclient-script file in /sbin/dhcp, is empty
and I assume this is the script that should configure the interface.
 
  


Reply



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
Two DHCP ranges in one DHCP server using one NIC on a MPLS network - centos6 6.3 x64 pablobhz Linux - Newbie 7 03-04-2013 04:22 PM
Baffling DNS from a DHCP server problem. Appears to be ignoring dhcp.conf royce2020 Linux - Networking 1 02-16-2010 12:40 PM
Linux DHCP client unsuccessful on a windows DHCP served network tom1080 Linux - Newbie 1 12-16-2009 11:37 AM
DHCP on CentOS 4.7 - /var/lib/dhcp/dhcpd.leases: Permission denied Latitude Linux - Networking 1 06-05-2009 02:08 AM
Dhcp failed with error (Pump Told us : no dhcp reply recived.) alok.rhct Linux - Networking 3 03-24-2007 07:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:40 AM.

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
Open Source Consulting | Domain Registration