LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-14-2003, 03:07 PM   #1
bjojoi
Member
 
Registered: Jan 2003
Location: Oslo
Distribution: Debian, Mandrake 9.0
Posts: 40

Rep: Reputation: 15
dhcp to new dhcp


I used to get dhcp request from my isp, but have installed a dhcp server on an old computer. the problem is that it won't get a new ip adress from the new dhcp server. the dhcp server works fine on a xbox and two w2k computers. I'm running debian on the computer where i can't get a new ip adress. can anyone help me please?
 
Old 08-14-2003, 07:41 PM   #2
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
well, i would try this.

if you don't have a locate database created, type:

slocate -u

at command prompt of course

after it finishes, and it may take a little while, type

locate eth0

it should bring up list of files with eth0 in the name

find one that says something like dhcpcd.eth0 or something like that.

look at that file. i believe this is stored dhcp info for that pc. then delete that file and restart the network. since no file is there it will look for dhcp server and should get new ip. if this won't work i have a few other ideas. so please let me know.

also, look at, if debian has same stuff, the /etc/sysconfig/network-scripts/ifcfg-eth0 file.

if not found

locate eth0 again. should find something with eth0 that looks similar to what i typed above, ifcfg-eth0

first make backup of the file before editing. good practice with any file you edit.

cp /blah/blah/blah/ifcfg-eth0 /blah/blah/blah/ifcfg-eth0.backup

anyway, in there it may have info

delete what is there and leave just line that says dhcp. or change the dhcpserver line if there to the new dhcp server ip address.

not sure how debian works, so let me know if anything i said makes sense or is found or whatever.

or can give eth0 static ip if need be.

can help with that too, if need be.
 
Old 08-14-2003, 07:52 PM   #3
bjojoi
Member
 
Registered: Jan 2003
Location: Oslo
Distribution: Debian, Mandrake 9.0
Posts: 40

Original Poster
Rep: Reputation: 15
didn't work

could not locate any files with eth0 in it. i have tried static ip, but can't get any ping replies. any debian experts out there?
thanks anyway
 
Old 08-14-2003, 08:49 PM   #4
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
It's going to sound like a dumb question but what exactly are you trying to achieve? Bomb out your ISP's dhcp or what?
 
Old 08-14-2003, 10:49 PM   #5
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
i9 am assuning you have dhcp only serving your local net when i responded to this thread
 
Old 08-15-2003, 08:06 AM   #6
bjojoi
Member
 
Registered: Jan 2003
Location: Oslo
Distribution: Debian, Mandrake 9.0
Posts: 40

Original Poster
Rep: Reputation: 15
i get access to internet by requesting a ip from my isp by dhcp. they only give me on ip adress so i needed something to get more computers online. therefore i installed BBIagent on an old computer and uses this as a dhcp router.

I managed to fix the problem. i found a file named dhclient."something" in /var/lib/dhcp/ i belive it was. I renamed this and rebooted the computer. Now everything works great. (almost)
 
Old 08-15-2003, 02:56 PM   #7
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
oh sorry about that dude. i forgot. it used to be dhcpd and dhcpcd, then they started calling the dhcpcd program dhclient. thanks for reminding me.
 
  


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
DHCP problems - multiple DHCP servers sat86 Linux - Networking 4 10-02-2005 05:43 AM
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 client not getting IP from dhcp server jkmartha Linux - Networking 2 06-17-2005 08:12 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

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

All times are GMT -5. The time now is 06:01 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