LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dhcp to new dhcp (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-to-new-dhcp-82022/)

bjojoi 08-14-2003 03:07 PM

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?

tyler0123 08-14-2003 07:41 PM

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.

bjojoi 08-14-2003 07:52 PM

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

Looking_Lost 08-14-2003 08:49 PM

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?

tyler0123 08-14-2003 10:49 PM

i9 am assuning you have dhcp only serving your local net when i responded to this thread

bjojoi 08-15-2003 08:06 AM

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)

tyler0123 08-15-2003 02:56 PM

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.


All times are GMT -5. The time now is 04:15 AM.