LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 10-02-2008, 03:53 PM   #1
gondo
LQ Newbie
 
Registered: Oct 2008
Posts: 5

Rep: Reputation: 0
'no ip route cache' linux equivalent (ignore: wrong forum)


Hi all,

Is there a linux equivalent to cisco's 'no ip route cache' command?

I think I need this because I use sourcerouting with multiple default gateways.

I use the following config:
ip rule add from 1.1.1.1 table 1
ip route add 1.1.1.1 via 3.3.3.3 dev eth2
ip route add 2.2.2.2 via 3.3.3.3 dev eth2
ip route add default via 4.4.4.4 dev eth1
ip route add default via 5.5.5.5 table 1 dev eth0
remark: 1.1.1.1 and 2.2.2.2 belong to the same multihomed machine.

This works: I can ping & use tcp sessions to both ipnumbers. However, sometimes tcpdump sees packages sent using the wrong interface.

I think this is caused by the ip route cache for machines on the internet connecting to both ipnumbers. If this is the case, I'd like to turn it off. It might be a bug in tcpdump or libpcap aswell.

Your comments are welcome.

Regards,

Gondo

Last edited by gondo; 10-02-2008 at 04:04 PM. Reason: wrong forum
 
Old 10-03-2008, 02:46 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



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
openSUSE 10: Samba failed to create the cache directory in /var/cache mianmajidali Linux - Server 0 05-09-2008 02:00 AM
cache folder like /var/cache/apt/packages on Debian Shaddy SUSE / openSUSE 0 08-13-2006 10:02 AM
clearing cache, web cache on linux varunbihani Linux - General 2 12-08-2005 12:02 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
Error: Caching enabled and local cache: //var/cache/yum/base/primary.xml.gz does... dr_zayus69 Linux - Software 2 07-06-2005 04:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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