Click to See Complete Forum and Search --> : DHCP problems in RedHat 6.2 with RoadRunner


WakeBDr
11-01-2000, 03:27 PM
I've got a problem with DHCP. I cannot get my cable service to give me an IP via DHCP on my RedHat 6.2. I have tried using pump also to no avail. It will work if I get the IP from a Windows box and then set my linux box to the IP, but I want to get DHCP working so that if the cable service changes my IP I won't be without service. When I try to run pump, it always says "Operation failed" and when I try to start the network with DHCP it always says that it couldn't get an IP from the network (or something like that). Please help!!!

------------------
Your mouse has moved. Windows must reboot for the changes to take effect.

Iceman
11-01-2000, 03:34 PM
Hi:

Check etc/resolv.conf

It should have the following:

domain yourisp@blabla.com
nameserver xx.xxx.xx.xx
nameserver xx.xxx.xx.xxx
search yourisp@blabla.com

Edit and input the appropriate values for your isp.


Also run netconf and be sure you have dhcp enabled.

WakeBDr
11-01-2000, 03:41 PM
for my domain and search do i put xxx@domain or do i just put my domain which is atl.mediaone.net

------------------
Your mouse has moved. Windows must reboot for the changes to take effect.

Iceman
11-01-2000, 06:25 PM
Hi:

Sorry...I typoed or wasn't thinking clearly..

I have roadrunner, so it's this:
domain twnyc.rr.com

So yours will be:

domain atl.mediaone.net

Iceman
11-01-2000, 06:30 PM
Hi:

Sorry...I typoed or wasn't thinking clearly..

I have roadrunner, so it's this:
domain twnyc.rr.com

So yours will be:

domain atl.mediaone.net

posterboy
11-01-2000, 06:38 PM
Wait a minute, here. I have atl.mediaone.net as my provider also. The /etc/resolv.conf is overwritten at every boot. Until you can talk to the bootpc box, it's not going to matter what's in your DNS lookup. And, that box is found by means of broadcast on the network. My boot process includes this: pump -i eth0
as the default. This can be done manually, of course. Try that. Make sure you have a late-model pump, also, as there was a buggy one shipped with RH6.2 that had trouble getting the bootpc box. Don't fool around with dhcpd it's all a waste of time, in the end it's going to use pump. Try to find a new one at www.rpmfind.net (http://www.rpmfind.net) and do rpm -Uvvh on it. Read the man page for pump, it's a very capable utility, and i use pump -s and pump -Rd here in cron jobs. RR Atlanta has cut back their lease time to 8 hours (SHEESH!) used to be 7 DAYS, so after that, I started running a cron job every hour to renew my lease. I look for them to start forcing IP changes, soon.
Good Luck!
Ray


------------------
newbie@raymondjones.net
HTTP://www.raymondjones.net

WakeBDr
11-01-2000, 07:26 PM
Can you tell me what version of pump you run? I can't get the one newest one to install. RPM says something about number being <= 3.

WakeBDr
11-01-2000, 08:02 PM
I got the new pump installed and it still wont work. It says "Operation failed" everytime I try.

posterboy
11-02-2000, 05:31 AM
Hmmm, really?? I dunno. Can you ping the bootpc box? It's 24.88.1.101 on my part of the network. What does pump -s show, both ways, after you you force an IP and after it fails. That's gotten over my head, i fear. That stuff "just works" from the experience we have had here. You're certain that the driver module is loading during boot? an lsmod will show it. There must be a line in /atc/conf.modules like
alias eth0 3c905 or whatever the driver is.
Ray


------------------
newbie@raymondjones.net
HTTP://www.raymondjones.net

WakeBDr
11-02-2000, 08:54 AM
The driver loads fine. I cannot get anything to work when I try to get an IP dynamicly, but when I set it staticly everything works fine.

posterboy
11-02-2000, 11:26 AM
Uh-oh, now it's gotten over MY head. I have no idea even how to trblshoot it from here, I mean, what do we do next to find it. HEY FELLAS, HELP US HERE!!!!!!!!!!!!!!
Ray

------------------
newbie@raymondjones.net
HTTP://www.raymondjones.net

The King Ant
11-02-2000, 06:27 PM
Is the Linux computer a different computer than the windows one (IE: not a dual boot)? With some DHCP configurations (my bellsouth.net ADSL, for example), the ISP only gives an IP address to ethernet cards whoose MAC addresses are in their database. Each ethernet card has it's own permanate MAC address.


If you're using a different ethernet card, you might want to try moving the card that works into the Linux computer (I know it's a pain).


It _is_ possible in Linux to have the kernel alias a fake MAC address to the actual MAC address of the card. I've heard there is a tad bit of overhead in this. There was a tip on linux.com a while ago, I think. Er, so if you got it figured out, you could look up the MAC address of the Windows ethernet card with winipcfg and then use that as the fake MAC address for the Linux card. Bad things could happen if those two computers were on the same network though (nuclear disaster, lots of radiation and what not).

[This message has been edited by The King Ant (edited 02 November 2000).]

WakeBDr
11-02-2000, 07:16 PM
I have gotten an ip from two different windows boxes via DHCP. I've read that when you power off the modem, it releases the mac address.

snowgod
11-02-2000, 08:27 PM
Pump is a very bad program (at least the one with redhat 6.2) I had this problem so I changed no dhcpd. The only problem was that pump was in a couple of scripts during boot so I had to set the dhclient to run in my rc.local so it would run this after, it is pretty makeshift, but it works.

------------------
"Black holes are where God divided by zero."
- Steven Wright

compunuts
11-02-2000, 09:27 PM
I thought RR use PPPoE. I"m not really sure though since I'm not anywhere close to being RR customer. Lucky me. http://www.linuxnewbie.org/ubb/smile.gif
Find out whether they use PPPoE as their protocol. I remember some LNOers mentioned before and they have no problem after using Roaring Penguin software. http://www.roaringpenguin.com

Iceman
11-02-2000, 10:29 PM
Hi:

Roadrunner does NOT use PPPoE--that's for DSL. They use DHCP, plain and simple.

With Roadrunner you are simply one more box on a LAN. In my area there are approx 500 users per segment.


I have had bad experiences with pump. What you might try is uninstalling pump and dhcp.

Then grab the dhcpcd rpm and install it.

This worked for me on MDK 6.5 (which was essentially the same as RH 6.1.)

Good Luck, and hang in there--we'll get you going. BTW...what kernel are you running?

WakeBDr
11-02-2000, 10:33 PM
I haven't done anything to the kernel so I'm guessing it is whatever version ships with 6.2. I'll try uninstalling/reinstalling dhcp and pump and see what that does.

compunuts
11-02-2000, 10:44 PM
RH 6.2 use kernel 2.2.14.

WakeBDr
11-02-2000, 10:54 PM
I keep getting failed dependencies on everything I try to do now.

Iceman
11-02-2000, 11:17 PM
Hi:

Compu...2.2.14-?

Wake...see if you can force it past the dependencies....or try a different rpm.

What sort of box are you running? 586 or 686?

I know this will work when you get the right rpm.

I'm actually running 2.2.15 (IIRC)

I'll check back every few minutes to see how it's going.

Keep us posted.

WakeBDr
11-03-2000, 12:10 PM
I'm at work right now, so I'll get to work on it when I get home around 4:30 EST.

WakeBDr
11-03-2000, 06:06 PM
OK, I installed pump and dhcp rpm's. I couldn't get dhcp to run and pump still said "Operation failed." Please help

Iceman
11-03-2000, 09:20 PM
Hi:

First of all...you can't have more than one DHCP client installed. More on that later.

- Double-check to make sure you have pump, dhcpcd, dhcp-client, or dhcpxd installed. The network config scripts die without any errors or even a warning if you don't have those installed.

- Double-check to make sure you don't have MULTIPLE dhcp clients installed. /sbin/ifup searches for them in this
order:
1. dhcpcd
2. dhclient
3. dhcpxd
4. pump
...and uses the first one it finds, which may not be what you want.

- Check to make sure you don't have ipchains killing packets it shouldn't.

Second, the /sbin/ifup script has a typo, in my Mandrake 7.1 install. Yours might as well. Check out lines 110-114.

Mandrake 7.1's default install looks like this:

110: pump|dhcpcd)
114: dhcpxd)

Configured like that, it will die on a machine with multiple ethernet interfaces. (Like my router box. Took me
3 days to find this the first time!) Fix it by changing the lines to look like this:

110: pump)
114: dhcpcd|dhcpxd)

Third. I don't use pump anymore. I haven't for quite some time. I found it to be unreliable, but that's my experience

But I know these things to be true:

- I used to have similar problems logging onto roadrunner.
- I no longer use pump. Now I use dhcpxd.
- I no longer have problems.

Give an alternate dhcp client, just execute it on its own with a verbose switch or two, and see if it can grab the
dhcp info properly.

If it's still broken after all that, post back. But do pay attention to the advice about multiple clients.

Most of the info above I c&p'd from a reply a friend of mine gave to someone. As it's the same advice I'd have given at this point, I saw fit to make only a few changes.

WakeBDr
11-04-2000, 12:10 AM
OK, I configured my firewall for DHCP...and when i ran it, it said "DHCP not configured." When I tried to ifup eth0, it said error determining IP address.

Also, I didn't find either one of thos lines in my ifup.