LinuxQuestions.org
Visit Jeremy's Blog.
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 06-28-2004, 04:35 AM   #1
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Help me clear ALL dhcp (client) cache!


Hi!

I need to clean up all dhcp stuff (cache, info whatever ) that I received from dhcp server.
 
Old 06-28-2004, 05:14 AM   #2
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
Depends on what client you are using. The Slackware default is dhcpcd and writes cache information in the /etc/dhcpc directory. Stop the client from running , wipe all files exept dhcpcd-eth[n].exe and your cache will be empty.
 
Old 06-28-2004, 05:17 AM   #3
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
I am on a campus network. My Slackware can't ping to anybody or access the Internet. This has happen before. But that time I just format and reinstall my Slackware 10 rc to Slackware 10.0.

I get dhcp IP add from the dhcp server.

THe same machine can get into the Internet and all other things on WindowsXP.

So, I know that the dhcp server has changed the configuration on my Slackware which causes me to not able to use the Internet. I am not going to reinstall again.

when I ping I get this responds:
Code:
PING 10.5.0.79 (10.5.0.79) 56(84) bytes of data
From 10.5.0.163 icmp_seq=1 Destination Port Unreachable
From 10.5.0.163 icmp_seq=1 Destination Port Unreachable
From 10.5.0.163 icmp_seq=1 Destination Port Unreachable
From 10.5.0.163 icmp_seq=1 Destination Port Unreachable
From 10.5.0.163 icmp_seq=1 Destination Port Unreachable
From 10.5.0.163 icmp_seq=1 Destination Port Unreachable
ping: sendmsg: Operation not permitted
From 10.5.0.163 icmp_seq=2 Destination Port Unreachable
ping: sendmsg: Operation not permitted
I can use netwatch and ethereal to watch the network.
Argh! I am angry.
 
Old 06-28-2004, 05:21 AM   #4
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
Quote:
Originally posted by rotvogel
Depends on what client you are using. The Slackware default is dhcpcd and writes cache information in the /etc/dhcpc directory. Stop the client from running , wipe all files exept dhcpcd-eth[n].exe and your cache will be empty.
Tried it, but still can't solve my network problem.
 
Old 06-28-2004, 08:42 AM   #5
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
All right, I managed to solved the problem. The problem is with my rc.firewall script. I can't remember what have I changed, but it is not working anymore. Will write my own script this time.

Sorry for the false alarm. Anyhow, it was an opportunity to learn about Linux dhcpcd (client) capabilities. Do you know you can "change" your MAC address? Will not exactly change, but we can report a different CLIENTID to the dhcpd server.

By the way, dhcpcd -k will SIGHUP dhcpc and also clear the cache.

man dhcpcd to learn more.
 
  


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
clear or disable file cache acristescu Linux - General 3 11-04-2005 10:25 AM
clear cache remotely [mozilla] dereko Linux - Software 2 10-11-2005 05:56 AM
Help! Clear web.cache and log files on server DogByte Linux - Newbie 1 09-20-2005 06:51 PM
How do I clear the memory cache on my linux server? robgo777 Linux - Software 2 01-09-2005 01:30 AM
Clear cache raysr Linux - Newbie 2 03-26-2004 01:34 AM

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

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