LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-29-2007, 02:29 PM   #1
shadowdancer
Member
 
Registered: Jan 2007
Location: Indonesia
Distribution: openSUSE, Slackware, Now Debian, and now again: Ubuntu
Posts: 61

Rep: Reputation: 15
clearing arp-cache - stop being fooled


Here is my story.

I have 2 computer, one 192.168.1.1, one laptop 192.168.1.2, and one wireless router at 192.168.1.254

The wireless router have a administration web.
I can access it trough http://192.168.1.254

Then, I changed my laptop to 192.168.1.254 and my PC is fooled not accessing the web of wireless router but the laptop's website.

After i changed laptop to 192.168.1.2, then the PC(192.168.1.1) is still fooled. Instead of accessing the access-point web, it go to laptop's web, when I ask it to go to http://192.168.1.254

Then, I do this at PC(192.168.1.1):
Code:
arp -d 192.168.1.2
arp -d 192.168.1.254
^^sorry if I'm mistaken here, but surely I have read the man page and the parameter I give is the parameter to delete host.

but the PC is still fooled.

How to really clear the arp-cache?

Thank you very much...
 
Old 05-29-2007, 03:56 PM   #2
troybtj
LQ Newbie
 
Registered: May 2007
Location: South Dakota
Distribution: Debian Etch (8), XP (1), FreeBSD (1), HP-UX (1)
Posts: 23

Rep: Reputation: 15
sudo arp -s 192.168.1.254 00:20:78:xx:xx:xx

drop the sudo part if you are root, use MAC Address of router for 2nd param

that will force the right MAC addr.

If you can ping from router to 192.168.1.1, that should update the arp cache with the correct entry as well. Also ping 192.168.1.1 from 192.168.1.2, that should update the cache to correct information without forcing entries.
 
Old 05-29-2007, 03:57 PM   #3
robrecc
Member
 
Registered: Feb 2002
Posts: 50

Rep: Reputation: 15
Are these IP assigned through DHCP or are they static IP addresses. Also what type of router do you use.
 
Old 05-30-2007, 02:25 AM   #4
shadowdancer
Member
 
Registered: Jan 2007
Location: Indonesia
Distribution: openSUSE, Slackware, Now Debian, and now again: Ubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
Ah! Thanky you very much.

Forcing the arp to the correct MAC-Address is really make sense. Why didn't I think about that?

All is static IP Address, though my ASUS Router have DHCP Server.

My router is ASUS WL-500g(WLAN Router)

Thank you very much again....
 
  


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
clearing squid cache not working yawe_frek Linux - Server 11 05-08-2007 08:42 AM
clearing CD cache grayFalcon Programming 1 09-21-2006 04:55 PM
clearing cache, web cache on linux varunbihani Linux - General 2 12-08-2005 12:02 PM
DNS cache clearing n.antonio Linux - Software 0 05-11-2003 08:44 PM
clearing cache waxiem Linux - General 1 03-02-2003 09:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:55 AM.

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