* [LARTC] multiple defaults
@ 2005-02-01 14:42 richard lucassen
2005-02-08 0:35 ` Andy Furniss
0 siblings, 1 reply; 2+ messages in thread
From: richard lucassen @ 2005-02-01 14:42 UTC (permalink / raw)
To: lartc
I have 1 100MB NIC with two 2MB-subnets trough a router behind it. I'd
like to create multiple default classes:
1: +
|\_ 1:10 default, ceiling 100000kbit, rate 96000kbit
|
|\_ 1:11 ceiling 2048kbit, rate 2048kbit
| |
| |\_1:110 ceiling 2048kbit, rate 1536kbit
| \_1:111 ceiling 2048kbit, rate 512kbit (default subnet1)
|
\_ 1:12 ceiling 2048kbit, rate 2048kbit
|
|\_1:120 ceiling 2048kbit, rate 1536kbit
\_1:121 ceiling 2048kbit, rate 512kbit (default subnet2)
I want to use 1:110 for subnet1 sport 3389
I want to use 1:111 for subnet1 (the rest)
I want to use 1:120 for subnet2 sport 3389
I want to use 1:121 for subnet2 (the rest)
When selecting
u32 match ip dst 10.106.18.0/24 \
match ip protocol 6 0xff \
match ip sport 3389 0xffff \
flowid 1:120
u32 match ip dst 10.106.18.0/24 \
flowid 1:121
All traffic goes to 1:121. The first filter for port 3389 is ok and
works. What am I doing wrong? I'd rather do not use fw selectors. Or
should I solve this problem another way?
Richard.
--
___________________________________________________________________
Recursion: see recursion
+------------------------------------------------------------------+
| Richard Lucassen, Utrecht |
| Public key and email address: |
| http://www.lucassen.org/mail-pubkey.html |
+------------------------------------------------------------------+
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [LARTC] multiple defaults
2005-02-01 14:42 [LARTC] multiple defaults richard lucassen
@ 2005-02-08 0:35 ` Andy Furniss
0 siblings, 0 replies; 2+ messages in thread
From: Andy Furniss @ 2005-02-08 0:35 UTC (permalink / raw)
To: lartc
richard lucassen wrote:
> I have 1 100MB NIC with two 2MB-subnets trough a router behind it. I'd
> like to create multiple default classes:
>
> 1: +
> |\_ 1:10 default, ceiling 100000kbit, rate 96000kbit
> |
> |\_ 1:11 ceiling 2048kbit, rate 2048kbit
> | |
> | |\_1:110 ceiling 2048kbit, rate 1536kbit
> | \_1:111 ceiling 2048kbit, rate 512kbit (default subnet1)
> |
> \_ 1:12 ceiling 2048kbit, rate 2048kbit
> |
> |\_1:120 ceiling 2048kbit, rate 1536kbit
> \_1:121 ceiling 2048kbit, rate 512kbit (default subnet2)
>
> I want to use 1:110 for subnet1 sport 3389
> I want to use 1:111 for subnet1 (the rest)
> I want to use 1:120 for subnet2 sport 3389
> I want to use 1:121 for subnet2 (the rest)
>
> When selecting
>
> u32 match ip dst 10.106.18.0/24 \
> match ip protocol 6 0xff \
> match ip sport 3389 0xffff \
> flowid 1:120
>
> u32 match ip dst 10.106.18.0/24 \
> flowid 1:121
>
> All traffic goes to 1:121. The first filter for port 3389 is ok and
> works. What am I doing wrong? I'd rather do not use fw selectors. Or
> should I solve this problem another way?
>
> Richard.
>
Does it work if you use the prio parameter on the tc filters with 1 for
1:120 rule and 2 for 1.121?
Andy.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-08 0:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-01 14:42 [LARTC] multiple defaults richard lucassen
2005-02-08 0:35 ` Andy Furniss
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.