netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [iproute2] iproute2 question
@ 2010-03-18  9:02 thomas yang
  2010-03-18 15:59 ` Stephen Hemminger
  0 siblings, 1 reply; 5+ messages in thread
From: thomas yang @ 2010-03-18  9:02 UTC (permalink / raw)
  To: shemminger; +Cc: hadi, netdev

Hi,

Linux router R (has some interfaces)  use the table "main" as default
routing table to route packets.  If  some link connected to R failed,
I want to use another table "backup_tbl" to route packets; if the
broken link repaired , go back to use table "main"  .  How to do this?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [iproute2] iproute2 question
  2010-03-18  9:02 [iproute2] iproute2 question thomas yang
@ 2010-03-18 15:59 ` Stephen Hemminger
  2010-03-19  5:53   ` thomas yang
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Hemminger @ 2010-03-18 15:59 UTC (permalink / raw)
  To: thomas yang; +Cc: hadi, netdev

On Thu, 18 Mar 2010 17:02:16 +0800
thomas yang <lampsu@gmail.com> wrote:

> Hi,
> 
> Linux router R (has some interfaces)  use the table "main" as default
> routing table to route packets.  If  some link connected to R failed,
> I want to use another table "backup_tbl" to route packets; if the
> broken link repaired , go back to use table "main"  .  How to do this?

That's now it works. Use a real routing daemon.

-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [iproute2] iproute2 question
  2010-03-18 15:59 ` Stephen Hemminger
@ 2010-03-19  5:53   ` thomas yang
  2010-03-19  6:27     ` Stephen Hemminger
  0 siblings, 1 reply; 5+ messages in thread
From: thomas yang @ 2010-03-19  5:53 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: hadi, netdev

2010/3/18 Stephen Hemminger <shemminger@vyatta.com>:
> On Thu, 18 Mar 2010 17:02:16 +0800
> thomas yang <lampsu@gmail.com> wrote:
>
>> Hi,
>>
>> Linux router R (has some interfaces)  use the table "main" as default
>> routing table to route packets.  If  some link connected to R failed,
>> I want to use another table "backup_tbl" to route packets; if the
>> broken link repaired , go back to use table "main"  .  How to do this?
>
> That's now it works. Use a real routing daemon.
>

I want to reduce the packet loss that happens while routers converge
after a topology change due to a failure, use precalculated backup
table to do rapid failure repair  (repair faster than routing daemon,
fast reroute).
I do static routing on my linux routers.  When  some link  failed,
 I want to  use backup tables to route packets.  Can iproute2 do this?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [iproute2] iproute2 question
  2010-03-19  5:53   ` thomas yang
@ 2010-03-19  6:27     ` Stephen Hemminger
       [not found]       ` <f4f837ab1003221011v6657bebx3a741df5c781adf3@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Hemminger @ 2010-03-19  6:27 UTC (permalink / raw)
  To: thomas yang; +Cc: hadi, netdev

On Fri, 19 Mar 2010 13:53:23 +0800
thomas yang <lampsu@gmail.com> wrote:

> 2010/3/18 Stephen Hemminger <shemminger@vyatta.com>:
> > On Thu, 18 Mar 2010 17:02:16 +0800
> > thomas yang <lampsu@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> Linux router R (has some interfaces)  use the table "main" as default
> >> routing table to route packets.  If  some link connected to R failed,
> >> I want to use another table "backup_tbl" to route packets; if the
> >> broken link repaired , go back to use table "main"  .  How to do this?
> >
> > That's now it works. Use a real routing daemon.
> >
> 
> I want to reduce the packet loss that happens while routers converge
> after a topology change due to a failure, use precalculated backup
> table to do rapid failure repair  (repair faster than routing daemon,
> fast reroute).
> I do static routing on my linux routers.  When  some link  failed,
>  I want to  use backup tables to route packets.  Can iproute2 do this?

You could probably kludge something with multiple route tables
and modifying a single 'ip rule'.
Something like:
   http://www.linuxhorizon.ro/iproute2.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [iproute2] iproute2 question
       [not found]       ` <f4f837ab1003221011v6657bebx3a741df5c781adf3@mail.gmail.com>
@ 2010-03-22 17:12         ` thomas yang
  0 siblings, 0 replies; 5+ messages in thread
From: thomas yang @ 2010-03-22 17:12 UTC (permalink / raw)
  To: netdev

>>
>> I want to reduce the packet loss that happens while routers converge
>> after a topology change due to a failure, use precalculated backup
>> table to do rapid failure repair  (repair faster than routing daemon,
>> fast reroute).
>> I do static routing on my linux routers.  When  some link  failed,
>>  I want to  use backup tables to route packets.  Can iproute2 do this?
>
> You could probably kludge something with multiple route tables
> and modifying a single 'ip rule'.
> Something like:
>   http://www.linuxhorizon.ro/iproute2.html
>

I want to use different routing tables  with different  TOS (or DSCP)
e.g.
iptables -t mangle -A PREROUTING -j TOS --set-tos 0x10
...
then,
ip rule add tos 0x10 table 100
ip rule add tos 0x08 table 200
...
but there are only five TOS values  0x00,0x02,0x04,0x08,0x10. I need
more TOS values.

Does cmd 'ip rule' support DSCP ? (e.g. 'ip rule add dscp 0x11 tables 10')

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-22 17:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18  9:02 [iproute2] iproute2 question thomas yang
2010-03-18 15:59 ` Stephen Hemminger
2010-03-19  5:53   ` thomas yang
2010-03-19  6:27     ` Stephen Hemminger
     [not found]       ` <f4f837ab1003221011v6657bebx3a741df5c781adf3@mail.gmail.com>
2010-03-22 17:12         ` thomas yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).