LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 12-24-2006, 09:05 AM   #1
groovie1971
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Rep: Reputation: 0
getting a false/wrong ip address from dhcp


Hello,

Yesterday, I did a fresh install of centos 4.4 / “minimal install”
I keep getting a false/wrong ip address from dhcp.
When I set a fixed IP it still does not work, I can not make use of the Internet.
If I connect to the internet running Windows everything works fine, so it is not a network issue I think. I tried several solutions (from reading forum posts etc..) but nothing seems to help. Could somebody point me in the good direction ?

This is what happens:

Quote:
[root@ANACONDA ~]# dhclient eth0
Listening on LPF/eth0/00:11:95:d8:93:16
Sending on LPF/eth0/00:11:95:d8:93:16
Sending on Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.90.15.251
Bound to 10.90.12.95 – renewal in 300371 seconds
Quote:
[root@ANACONDA ~]# ifconfig eth0
eth0
Link encap:Ethernet HWaddr 00:11:95:D8:93:16
inet addr:10.90.12.95 Bcast:255.255.255.255 Mask:255.255.248.0
inet6 addr: fe80::211:95ff:fed8:9316/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:12007 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:723274 (706.3 KiB) TX bytes:1062 (1.0 KiB)
Interrupt:5 Base address:0xaf00
This is what my ifcfg-eth0 looks like:

Quote:
[root@ANACONDA ~]#cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:11:95:D8:93:16
ONBOOT=yes
TYPE=Ethernet
DHCP_HOSTNAME=ANACONDA.localdomain


Thanks, JJ
 
Old 12-24-2006, 05:16 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
what should be the appropriate DHCP address?

Check the contents of /var/lib/dhcp/dhcp*leases on the client (ANACONDA?). Delete that file. and run dhclient again.

Last edited by ppuru; 12-24-2006 at 05:18 PM.
 
Old 12-25-2006, 07:45 AM   #3
groovie1971
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ppuru
what should be the appropriate DHCP address?
195.162.196.246
Looks like the dhcp server is correct?

Quote:
Originally Posted by ppuru
Check the contents of /var/lib/dhcp/dhcp*leases on the client (ANACONDA?). Delete that file. and run dhclient again.
result:
Quote:
lease {
interface "eth0";
fixed-address 10.90.12.95;
filename "disable.cfg";
option subnet-mask 255.255.248.0;
option time-offset 1;
option routers 10.90.15.254;
option dhcp-lease-time 519448;
option dhcp-message-type 5;
option domain-name-servers 195.162.196.246;
option dhcp-server-identifier 195.162.196.246;
option broadcast-address 255.255.255.255;
renew 4 2006/12/28 04:04:09;
rebind 6 2006/12/30 19:29:00;
expire 0 2006/12/31 13:31:11;
}
Windows "ipconfig /all"
Quote:
IP-address: 87:244.179.xxx
Subnetmasker: 255.255.255.0
Standaardgateway: 87.244.179.254
DHCP-server: 195.162.196.246
DNS-servers: 195.162.196.3 / 195.162.196.5
my centos pc is directly wired to a ARRIS cablemodem "model: CM450B" not connected to routers/switches.

JJ
 
Old 12-25-2006, 07:52 AM   #4
Jaiprakash
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
Please update result of the following command in this thread

netstat -nr
 
Old 12-25-2006, 08:15 AM   #5
groovie1971
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Jaiprakash
Please update result of the following command in this thread

netstat -nr

Result:
Quote:
[root@ANACONDA dhcp]# netstat -nr
Kernel IP routing table

Destination
1) 10.90.8.0
2) 0.0.0.0

Gateway
1) 0.0.0.0
2) 10.90.15.254

Genmask
1) 255.255.248.0
2) 0.0.0.0

Flags
1) U
2) UG

MSS Window
1) 0 0
2) 0 0

irtt Iface
1) 0 eth0
2) 0 eth0


JJ
 
Old 12-25-2006, 08:42 AM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Where does the fixed-address entry come from. It there an /etc/dhclient.conf file that it is being copied from?
 
Old 12-25-2006, 09:03 AM   #7
groovie1971
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschiwal
Where does the fixed-address entry come from. It there an /etc/dhclient.conf file that it is being copied from?
I found a dhclient-eth0.conf file

Quote:
[root@ANACONDA etc]# cat dhclient-eth0.conf
send host-name "ANACONDA.localdomain"; # temporary RHL ifup addition
this morning i formatted the hdd and did a fresh install of centos "minimal".

i did not change any settings during/after setup.

my ANACONDA looks like a little worm right now

JJ

Last edited by groovie1971; 12-25-2006 at 09:05 AM.
 
  


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
How To know if a host configured with DHCP has obtained IP address from DHCP server? Prassanta Suse/Novell 1 06-29-2006 09:48 AM
eth0 ip assigned by dhcp , how would i know the ip address of the dhcp server where.. kublador Linux - Networking 14 05-16-2006 06:33 AM
dhcp no ip address and netmask dont match route address pengy666 Linux - Wireless Networking 1 05-08-2005 09:33 AM
Wrong Hostname in the DNS and DHCP Address Leases of Windows 2000 saneax Linux - Networking 1 03-03-2005 03:14 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM


All times are GMT -5. The time now is 07:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration