LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-10-2009, 02:17 PM   #1
WhiskeyTangoFoxtrot
Member
 
Registered: Oct 2005
Location: Windsor, Ontario, Canada
Distribution: Fedora Core 5,4,3 & Ubuntu 6.06, 8.10
Posts: 403
Blog Entries: 1

Rep: Reputation: 30
Question How to route using my own custom routing tables and not the Kernel's table


Hi,

im trying out a mesh-networking protocol called BATMAN. the protocol scans for other nodes and saves the nodes in an i.p table #66 ( the kernel uses #254 I think )

you see the protocol saves the nodes in ip table 66 and then makes an "ip rule"which states that everything destined for the nodes should go through that table.

Code:
~# ip rule
0:	from all lookup local 
6600:	from all to 192.168.10.0/24 lookup 66 
6699:	from all lookup 65 
6700:	from all to 192.168.10.0/24 lookup 67 
32766:	from all lookup main 
32767:	from all lookup default
the rule 6600 tells to lookup table 66 right ? now my table 66 contains the nodes:

Code:
~# ip route ls table 66
192.168.10.10 dev wlan0  proto static  scope link  src 192.168.10.11 
192.168.10.12 via 192.168.10.10 dev wlan0  proto static  scope link  src 192.168.10.11
this means my pc ( .10.11 ) cannot see node12 ( .10.12 ) but the BATMAN routing protocol sees it and says its accessible through node10 ( .10.10 ).

now for the issue at hand. despite this rule being in place the kernel's table is used all the time and any attempts to ping out of range computers means i get the "destination host is unreachable" message. what must i do such that my network hardware uses table 66 only when these specific nodes need to be contacted ?

thanks.
 
Old 03-17-2009, 10:03 AM   #2
WhiskeyTangoFoxtrot
Member
 
Registered: Oct 2005
Location: Windsor, Ontario, Canada
Distribution: Fedora Core 5,4,3 & Ubuntu 6.06, 8.10
Posts: 403
Blog Entries: 1

Original Poster
Rep: Reputation: 30
anyone?
 
  


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
Routing table problem - can't route over ppp link ocgltd Linux - Networking 1 01-12-2007 01:07 AM
Default route disappears from kernel routing table second after adding it eli_pack Linux - Networking 2 03-13-2006 03:39 AM
IP Route/IP Tables depam Linux - Networking 2 10-12-2005 02:10 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
Does ftp have a routing table on where to route users? digital bots Linux - Networking 1 04-06-2004 05:26 PM


All times are GMT -5. The time now is 02:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration