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

Re: /etc/iproute/* ...



On Wed, Nov 06, 2002 at 08:41:59PM +0100, Marcin wrote:
> Witam,

Witam.

> > $ man iproute
> > [...]
> > You  can start reading the very good documents available in the /usr/share/doc/iproute/ direc-
> > tory, in .ps, .dvi and .tex formats.
> > [...]
> 
> ok, ale to jest to samo co po wrzuceniu "ip-cref" do googlarki.
> Malo i bardzo niedokladnie.

Czy ja wiem...

> Chocby w sprawach w jakiej kolejnosci przetwarzane sa regulki w 
> ip rule show
> od gory, dolu, od najbardziej szczgolowego do ogolnego ? odwrotnie ?
> Ja odpowiedz znam ale myslalem ze ja tam uzyskam.
> Nic s tego.

Nie do końca rozumiem i nie wiem czy o to Ci chodzi, ale w ,,IP Command
Reference'', rozdziale 8 --- ,,ip rule --- routing policy database
management'' na stronie 35 można przeczytać, że:

  ,,(...) The rules may have lots of keys of different natures and therefore
  they have no natural ordering, but one imposed by the administrator.
  Linux-2.2 RPDB [Routing Policy DataBase] is a linear list of rules ordered
  by numeric priority value. (...)''

oraz, na stronie 36;

  ,,Each policy routing rule consists of a selector and an action predicate.
  The RPDB is scanned in the order of increasing priority. The selector of
  each rule is applied to {source address, destination address, incoming
  interface, tos, fwmark} and, if the selector matches the packet, the
  action is performed. The action predicate may return with success. In this
  case, it will either give a route or failure indication and the RPDB
  lookup is terminated. Otherwise, the RPDB program continues on the next
  rule.''

> > > Masz cos innego ? bo tam nic nie ma :(
> > http://www.lartc.org/
> > http://www.lartc.org/howto/lartc.rpdb.html
> 
> Fragment: Linux Advanced Routing & Traffic Control HOWTO
> Czyli tez wszystko o niczym.

Ekhm. Mocne słowa :) Ale jest tam jednak przykład użycia jednego z plików, o
które pytałeś --- /etc/iproute2/rt_tables, wraz z prostym przykładem, jak do
utworzonej w ten sposób tablicy, dodawać regułki.

> Ps. Lacze do dwoch providerow juz mi dziala przeslicznie :)

I to, o ile sobie przypominam, właśnie dzięki LARTC, a Ty tak się brzydko o
tym dokumencie wyrażasz ;)) Jest tam
(http://mailman.ds9a.nl/pipermail/lartc/) też archiwum listy, ale niestety
,,nieprzeszukiwalne''.

Pozdrawiam,
Grzesiek

-- 
Grzegorz R. Gryczka <grg@tg.onet.pl>



Reply to: