On Tue, 6 Apr 2004 ionut@topall.ro wrote:
> Hi i have 2 class C 80.97.103.0/24 and 81.180.12.0/24 but i dont konw how
> to set hashing tables for HTB
> tc add dev eth0 parent 1: prio 0 handle 1: protocol ip u32 divisor 256
> tc add dev eth0 parent 1: prio 0 protocol ip u32 match src 80.97.103.0/24
> hashkey mask 0x000000FF at 12 link 1:
>
> but i want 2 hashkey for 80.97.103.0/24 and for 81.180.12.0/24 can
> somebody help me ?
tc filter add dev eth0 parent 1: prio 0 handle 1: protocol ip u32 divisor 256
tc finlter add dev eth0 parent 1: prio 0 protocol ip u32 match src
80.97.103.0/24
hashkey mask 0x000000FF at 12 link 103:
tc filter add dev eth0 parent 1: prio 0 protocol ip u32 match src 81.180.12.0/24
hashkey mask 0x000000FF at 12 link 12:
# Create filters for every ip
# for 80.97.103.0/24
tc filter add dev eth0 parent 1: protocol ip u32 ht 103:2: flowid 1:2
tc filter add dev eth0 parent 1: protocol ip u32 ht 103:3: flowid 1:3
...
tc filter add dev eth0 parent 1: protocol ip u32 ht 103:fe: flowid 1:254
# now for 81.180.12.0/24
tc filter add dev eth0 parent 1: protocol ip u32 ht 12:2: flowid 1:402
tc filter add dev eth0 parent 1: protocol ip u32 ht 12:3: flowid 1:403
...
tc filter add dev eth0 parent 1: protocol ip u32 ht 12:fe: flowid 1:654
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/