> > >Hi > The setup : Internet eth0 |---------| eth1 /--- 10.10.10.0/28 (intranet-PRIVATE addresses) --------------------| LINUX |-----<HUB> |---------| eth1:0 \--- 63.121.156.184/29 (intranet-PUBLIC ADDRESSES) (Virtual Interface) > > > > > > I need configure the next for incoming and outgoing traffic: > > > > > > ip 63.121.156.186 ===> a maximum of 16Kbit per second > > > ip 63.121.156.187 ===> a maximum of 16Kbit per second > > > The rest of 63.121.156.184/28 ips and 10.10.10.0/28 use a maximum of > > > 32Kbit per second > > > > > > Can somebody confirm to me if the next configuration is OK please? > > > > > > #eth1 > > > > > > tc qdisc add dev eth1 root handle 10: cbq bandwidth 100Mbit avpkt 1000 > > > > > > tc class add dev eth1 parent 10:0 classid 10:1 cbq bandwidth 100Mbit > > > rate 100Mbit allot 1514 weight 10Mbit prio 8 maxburst 20 avpkt 1000 > > > > > > tc class add dev eth1 parent 10:1 classid 10:100 cbq bandwidth 100Mbit > > > rate 16Kbit allot 1514 weight 1Kbit prio 5 maxburst 20 avpkt 1000 > > > isolated bounded > > > tc class add dev eth1 parent 10:1 classid 10:200 cbq bandwidth 100Mbit > > > rate 16Kbit allot 1514 weight 1Kbit prio 5 maxburst 20 avpkt 1000 > > > isolated bounded > > > tc class add dev eth1 parent 10:1 classid 10:300 cbq bandwidth 100Mbit > > > rate 32Kbit allot 1514 weight 3Kbit prio 5 maxburst 20 avpkt 1000 > > > isolated bounded > > > > > > tc qdisc add dev eth1 parent 10:100 tbf rate 16kbit buffer 20Kb/8 limit > > > 15Kb > > > tc qdisc add dev eth1 parent 10:200 tbf rate 16kbit buffer 20Kb/8 limit > > > 15Kb > > > tc qdisc add dev eth1 parent 10:300 tbf rate 32kbit buffer 20Kb/8 limit > > > 15Kb > > > > > > tc filter add dev eth1 parent 10:0 protocol ip prio 100 u32 match ip dst > > > 63.121.156.186 flowid 10:100 > > > tc filter add dev eth1 parent 10:0 protocol ip prio 100 u32 match ip dst > > > 63.121.156.187 flowid 10:200 > > > tc filter add dev eth1 parent 10:0 protocol ip prio 25 u32 match ip dst > > > 10.10.10.0/28 flowid 10:300 > > > tc filter add dev eth1 parent 10:0 protocol ip prio 25 u32 match ip dst > > > 63.121.156.184/30 flowid 10:300 > > > > > > #eth0 > > > > > > tc qdisc add dev eth0 root handle 20: cbq bandwidth 100Mbit avpkt 1000 > > > > > > tc class add dev eth0 parent 20:0 classid 20:1 cbq bandwidth 100Mbit > > > rate 100Mbit allot 1514 weight 10Mbit prio 8 maxburst 20 avpkt 1000 > > > > > > tc class add dev eth0 parent 20:1 classid 20:100 cbq bandwidth 100Mbit > > > rate 16Kbit allot 1514 weight 1Kbit prio 5 maxburst 20 avpkt 1000 > > > isolated bounded > > > tc class add dev eth0 parent 20:1 classid 20:200 cbq bandwidth 100Mbit > > > rate 16Kbit allot 1514 weight 1Kbit prio 5 maxburst 20 avpkt 1000 > > > isolated bounded > > > tc class add dev eth0 parent 20:1 classid 20:300 cbq bandwidth 100Mbit > > > rate 32Kbit allot 1514 weight 3Kbit prio 5 maxburst 20 avpkt 1000 > > > isolated bounded > > > > > > tc qdisc add dev eth0 parent 20:100 tbf rate 16kbit buffer 20Kb/8 limit > > > 15Kb > > > tc qdisc add dev eth0 parent 20:200 tbf rate 16kbit buffer 20Kb/8 limit > > > 15Kb > > > tc qdisc add dev eth0 parent 20:300 tbf rate 32kbit buffer 20Kb/8 limit > > > 15Kb > > > > > > tc filter add dev eth0 parent 20:0 protocol ip prio 100 u32 match ip src > > > 63.121.156.186 flowid 10:100 > > > tc filter add dev eth0 parent 20:0 protocol ip prio 100 u32 match ip src > > > 63.121.156.187 flowid 10:200 > > > tc filter add dev eth0 parent 20:0 protocol ip prio 25 u32 match ip src > > > 10.10.10.0/28 flowid 10:300 > > > tc filter add dev eth0 parent 20:0 protocol ip prio 25 u32 match ip src > > > 63.121.156.184/30 flowid 10:300 > > > > > > Thanks > > > > > > Alexandra