LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-07-2004, 01:31 AM   #1
distantlyyours
LQ Newbie
 
Registered: Oct 2003
Location: Bloomington, IN
Distribution: Ubuntu 5.10
Posts: 23

Rep: Reputation: 15
renew ip address


I've been running Slackware 9.1 on my laptop for the past few months without any problems, but just a couple of days ago it stopped getting an IP address from the DHCP server in our router.

I think I got an IP address from the DHCP at school a few days ago(10.196.65.123), and now my machine assumes that address at home.

I can ping the router (192.168.0.1)
I cannot get any access to the Internet.
I have tried "ifconfig eth0 up" and "ifconfig eth0 down" and it still does not renew the IP address.

How do I tell it to stop assuming the address I got from school and to take an address from the DHCP server that is in our router?

(again, this has all worked fine for months; my machine has been to school and back before and everything was fine, so none of this makes any sense to me)
 
Old 02-07-2004, 02:30 AM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Maybe /etc/dhcpc/dhcpcd-eth0.info has become corrupt?
 
Old 02-07-2004, 02:45 AM   #3
Justin_Time
Member
 
Registered: Feb 2004
Posts: 53

Rep: Reputation: 15
Proberly was your lease time up. So remove /etc/hdcpc/*.pid and do a
dhcpcd eth0

Cheers
 
Old 02-07-2004, 03:13 AM   #4
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
to renew ip on dhcp setting
just
ifconfig eth0 down
cd /etc/rc.d
./rc.inet1
 
Old 02-08-2004, 12:54 PM   #5
distantlyyours
LQ Newbie
 
Registered: Oct 2003
Location: Bloomington, IN
Distribution: Ubuntu 5.10
Posts: 23

Original Poster
Rep: Reputation: 15
Thank you very much, everybody!

I'm on my laptop now and it seems to be fine. I haven't been back to school yet, though, so we'll see how it behaves Monday.

What I ended up doing was deleting most of the files in etc/dhcpc/ including:

dhcpcd-eth0.pid
dhcpcd-eth0.info
dhcpcd-eth0.cache

And then running #dhcpcd eth0

Thanks again to all who helped!
 
  


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
Slackware release/renew of IP address Ishkabibble Linux - Networking 8 09-28-2005 09:30 AM
Renew IP in linux? iccanui Linux - Software 7 09-05-2005 10:31 AM
renew ip address distantlyyours Slackware 2 02-08-2004 01:08 PM
dhcp renew? murray_linux Mandriva 1 11-06-2003 02:59 PM
renew/refreshing ip??? jcabral3 Linux - Newbie 1 12-09-2002 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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