Re: one dude about rt_tables

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 : >/etc/iproute2/rt_tables contains a mapping of human names to routing table
 : >numbers.  I call them table identifiers to table ids.  This file does not
 : >contain routes.
 : So, if I understand all correctly, I don't need that file to use multiple 
 : route tables, do I?

You are correct.  It simply maps names to numbers so that you can use
something like this if you want:

# ip route add default via 10.0.0.1 table dsl-link
# ip route add default via 10.0.0.2 table t1-link

Where the rt_tables file contains:

1       dsl-link
2       t1-link

If you do not have the file /etc/iproute2/rt_tables, you can use the 
following syntax .

# ip route add default via 10.0.0.1 table 1
# ip route add default via 10.0.0.2 table 2

 : I found a solution here:
 : http://www.samag.com/documents/s=1824/sam0201h/0201h.htm

I've not seen this before and will have to read this article.  Thanks for
the link.

I do have some general documentation on the use of "ip route" and "ip 
rule" in the appendices of my documentation available here: 

  http://plorf.net/linux-ip/

Let me know if you find any flaws, areas for improvement, or missing 
content.

-Martin

-- 
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux