Re: HTB and BOND Interface

Linux Advanced Routing and Traffic Control

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

 



Hi!

Is it HTB fully compatible with BOND interface?

I have this setup (mode= fault tolerance) :

BOND0 -> ETH0 + ETH1
BOND1 -> ETH2 + ETH3

( http://www.kernel.org/pub/linux/kernel/people/marcelo/linux-2.4/Documentation/networking/bonding.txt
)

HTB work very well with Class over BOND0.
If I add Class for BOND1 it generate balance errors.

Also with HTB.init (http://sourceforge.net/projects/htbinit) I have
the some problem

bond0                     (upload)
bond0-10
bond0-10:15
bond0-10:20
bond0-10:20:25
bond1-10                 (download)
bond1-10:15
bond1-10:20
bond1-10:20:25

( File bond0* and bond1* are identical )

Thanks for eventual answers!


Can I create something about " tc qdisc add dev $DEV handle ffff:
ingress  " for use only BOND0 interface ?


Here my actual script:

/sbin/tc qdisc del dev bond0 root
/sbin/tc qdisc add dev bond0 root handle 1 htb default 15 r2q 100

/sbin/tc class add dev bond0 parent 1: classid 1:10 htb rate 7.6Mbit burst 15k

/sbin/tc class add dev bond0 parent 1:10 classid 1:15 htb rate 100Kbit
ceil 1Mbit burst 15k
/sbin/tc qdisc add dev bond0 parent 1:15 handle 15 sfq perturb 10

/sbin/tc class add dev bond0 parent 1:10 classid 1:20 htb rate 1.5Mbit
ceil 6Mbit burst 15k
/sbin/tc qdisc add dev bond0 parent 1:20 handle 20 sfq perturb 10
/sbin/tc filter add dev bond0 parent 1:0 protocol ip prio 100 u32
match ip src 192.168.2.0/24 classid 1:20
/sbin/tc filter add dev bond0 parent 1:0 protocol ip prio 100 u32
match ip src 192.168.3.0/24 classid 1:20
/sbin/tc filter add dev bond0 parent 1:0 protocol ip prio 100 u32
match ip src 192.168.6.0/24 classid 1:20

/sbin/tc class add dev bond0 parent 1:10 classid 1:30 htb rate 1.5Mbit
ceil 6Mbit burst 15k
/sbin/tc qdisc add dev bond0 parent 1:30 handle 30 sfq perturb 10
/sbin/tc filter add dev bond0 parent 1:0 protocol ip prio 100 u32
match ip src 192.168.4.0/24 classid 1:30
/sbin/tc filter add dev bond0 parent 1:0 protocol ip prio 100 u32
match ip src 192.168.5.0/24 classid 1:30
/sbin/tc filter add dev bond0 parent 1:0 protocol ip prio 100 u32
match ip dst 192.168.7.0/24 classid 1:30

/sbin/tc class add dev bond0 parent 1:10 classid 1:38 htb rate 2Mbit
ceil 3Mbit burst 15k
/sbin/tc qdisc add dev bond0 parent 1:38 handle 38 sfq perturb 10
/sbin/tc filter add dev bond0 parent 1:0 protocol ip prio 100 u32
match ip src 192.168.8.0/24 classid 1:38

/sbin/tc class add dev bond0 parent 1:10 classid 1:39 htb rate 1Mbit
ceil 4Mbit burst 15k
/sbin/tc qdisc add dev bond0 parent 1:39 handle 39 sfq perturb 10

/sbin/tc class add dev bond0 parent 1:39 classid 1:3956 htb rate
256Kbit ceil 1Mbit burst 15k
/sbin/tc qdisc add dev bond0 parent 1:3956 handle 3956 sfq perturb 10
/sbin/tc filter add dev bond0 parent 1:0 protocol ip prio 100 u32
match ip src 192.168.9.15/32 classid 1:3956
/sbin/tc filter add dev bond0 parent 1:0 protocol ip prio 100 u32
match ip src 192.168.9.35/32 classid 1:3956

/sbin/tc class add dev bond0 parent 1:39 classid 1:3999 htb rate
768Kbit ceil 4Mbit burst 15k
/sbin/tc qdisc add dev bond0 parent 1:3999 handle 3999 sfq perturb 10
/sbin/tc filter add dev bond0 parent 1:0 protocol ip prio 100 u32
match ip src 192.168.9.0/24 classid 1:3999


Thanks!
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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