Red Hat This forum is for the discussion of Red Hat Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-24-2006, 10:05 AM
|
#1
|
LQ Newbie
Registered: Dec 2006
Posts: 5
Rep:
|
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
|
|
|
12-24-2006, 06:16 PM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
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 06:18 PM.
|
|
|
12-25-2006, 08:45 AM
|
#3
|
LQ Newbie
Registered: Dec 2006
Posts: 5
Original Poster
Rep:
|
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
|
|
|
12-25-2006, 08:52 AM
|
#4
|
LQ Newbie
Registered: Dec 2006
Posts: 2
Rep:
|
Please update result of the following command in this thread
netstat -nr
|
|
|
12-25-2006, 09:15 AM
|
#5
|
LQ Newbie
Registered: Dec 2006
Posts: 5
Original Poster
Rep:
|
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
|
|
|
12-25-2006, 09:42 AM
|
#6
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Where does the fixed-address entry come from. It there an /etc/dhclient.conf file that it is being copied from?
|
|
|
12-25-2006, 10:03 AM
|
#7
|
LQ Newbie
Registered: Dec 2006
Posts: 5
Original Poster
Rep:
|
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 10:05 AM.
|
|
|
All times are GMT -5. The time now is 07:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|