LinuxQuestions.org
Review your favorite Linux distribution.
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 05-30-2002, 07:54 AM   #1
anarchsoul
LQ Newbie
 
Registered: May 2002
Location: Chesapeake, Va
Posts: 7

Rep: Reputation: 0
Angry dhcp problem


i have a problem where dhcp work when i boot but not if i try to renew the ip after booting.

i am using redhat 6.2 as a router with the latest version of pump. does anyone have any idea's?
 
Old 05-30-2002, 08:28 AM   #2
shoot2kill
Member
 
Registered: Jan 2002
Location: California
Distribution: Red Hat
Posts: 402

Rep: Reputation: 30
i am not too sure, check your /etc/sysconfig/network-scripts/ifcfg-eth? if the parameter bootproto=dhcp
 
Old 05-30-2002, 08:47 AM   #3
anarchsoul
LQ Newbie
 
Registered: May 2002
Location: Chesapeake, Va
Posts: 7

Original Poster
Rep: Reputation: 0
this is what it says.. shouldnt userctl be be yes?

DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=dhcp
BROADCAST=
NETWORK=
NETMASK=
IPADDR=
 
Old 05-30-2002, 10:36 AM   #4
Silly22
LQ Newbie
 
Registered: Mar 2002
Location: Edmonton, AB
Distribution: Mandrake 10.2, Ubuntu 6.10
Posts: 26

Rep: Reputation: 15
Try "service network restart" or "ifdown eth0" and then "ifup eth0"

Of course, be in root.

Or if you really want to see what's going on, dissect all the scripts related to network-functions. Try grepping for everything in your /etc directory for the string "dhcp". That'll take a while but if you dissect every file that has the word "dhcp" in it, you'll figure it out.
 
Old 05-30-2002, 10:57 AM   #5
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
if you have dhcpclient you don't need to do anything but starting pump or dhcpcd (which isn't as good as pump)
so don't bother with startup scripts
do
pump -i ethx
or pump -k to kill it

and ifcfg-eth0
should only have entry for
BOOTOROTO=dhcp
and ONBOOT=yes
 
Old 05-30-2002, 11:33 AM   #6
anarchsoul
LQ Newbie
 
Registered: May 2002
Location: Chesapeake, Va
Posts: 7

Original Poster
Rep: Reputation: 0
i dont use any startup scripts for pump, i tried ifdown eth0 then ifup eth0 lastnight and it just droped the ip i had and failed so i had to do a full restart. i also tried the other stuff.. it's like it cant find the dhcp server but yet it does after doing a full reboot. i edited the ifcfg-eth0 and took out the other stuff but i doubt thats what it was.. so does anyone have any idea?
oh.. and when i run top pump is loaded but i dont start it. i guess it's saposed to load. i dont know much about this dhcp stuff sence this is the first time i have ever had to use it. stupid cox.
 
Old 05-30-2002, 11:35 AM   #7
anarchsoul
LQ Newbie
 
Registered: May 2002
Location: Chesapeake, Va
Posts: 7

Original Poster
Rep: Reputation: 0
oh.. and i have not installed anything but pump, so dhcpclient is not installed. didnt know i needed it, i was going by something i was reading. tho it didnt seem to be much help..
 
Old 06-01-2002, 03:46 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I am wondering too, just to compare, in Windows I used to do a "release all, renew all" in winipcfg. If anyone knows what that means, and knows how to do the same thing linux, please tell us.
 
Old 06-01-2002, 04:01 AM   #9
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
man pump
pump -i eth0 (startup dhcpclient)
pump -k Kill daemon (and disable all interfaces)
pump -R -i eth0 (Force immediate lease renewal)
pump -r -i eth0 (Release interface)

but if you include line
BOOTOROTO=dhcp
and ONBOOT=yes
in /etc/sysconfig/network-scripts/ifcfg-eth0
it would do it for ya
 
Old 06-03-2002, 04:31 PM   #10
anarchsoul
LQ Newbie
 
Registered: May 2002
Location: Chesapeake, Va
Posts: 7

Original Poster
Rep: Reputation: 0
pump -R -i eth0 worked i thingk. it didnt fail but it didnt say what it was doing.. but the ifcfg-eth0 is like that but it's only for bootup right?
 
  


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
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 09:34 AM
dhcp problem re2 Linux - Networking 7 02-14-2005 10:35 AM
dhcp problem bruj3w Linux - Networking 1 07-19-2004 10:45 PM
dhcp problem pudhiyavan Linux - Networking 3 03-10-2004 10:28 AM
dhcp problem ava Slackware 3 03-19-2003 04:11 PM

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

All times are GMT -5. The time now is 08:12 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
Open Source Consulting | Domain Registration