Hi, I managed to fix 128kbit for an IP address of 192.168.200.3 as below: - tc qdisc add dev eth3 root handle 1: cbq avpkt 1000 bandwidth 100mbit tc class add dev eth3 parent 1: classid 1:1 cbq rate 128kbit allot 1500 prio 5 bounded isolated tc filter add dev eth3 parent 1: protocol ip prio 16 u32 match ip dst 192.168.200.3 flowid 1:1 tc qdisc add dev eth3 parent 1:1 sfq perturb 10 How can I make it burstable to 256kbit? What command I need to add in? Regards, ro0ot _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I applied this to following Network +--------------+ eth1 +---------+ eth0 +--------+ | 192.168.3.31 |------------------| |------------------|internet| +--------------+ 192.168.3.32 +---------+ 192.168.2.198 +---|----+ V gateway and modified the rate and IP to look it this way tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth 100mbit tc class add dev eth1 parent 1: classid 1:1 cbq rate 1kbit allot 1500 prio 5 bounded isolated tc filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip dst 192.168.3.31 flowid 1:1 tc qdisc add dev eth1 parent 1:1 sfq perturb 10 This limit packets from 192.168.3.31 to 1kbit How can it modify it to not to limit it for local IP addresses. Ie Only the traffic for internet is limited to 1kbps :wq Amit ro0ot wrote:> Hi, > > I managed to fix 128kbit for an IP address of 192.168.200.3 as below: - > > tc qdisc add dev eth3 root handle 1: cbq avpkt 1000 bandwidth 100mbit > tc class add dev eth3 parent 1: classid 1:1 cbq rate 128kbit allot > 1500 prio 5 bounded isolated > tc filter add dev eth3 parent 1: protocol ip prio 16 u32 match ip dst > 192.168.200.3 flowid 1:1 > tc qdisc add dev eth3 parent 1:1 sfq perturb 10 > > How can I make it burstable to 256kbit? What command I need to add in? > > Regards, > ro0ot > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I applied this to following Network +------------------+ eth1 +----------------+ eth0 +-----------+ | 192.168.3.31 |------------------- | Linux Box |------------------------------- | Internet | +------------------+ 192.168.3.32 +----------------+ 192.168.2.198 +-----------+ gateway and modified the rate and IP and dev to look it this way tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth 100mbit tc class add dev eth1 parent 1: classid 1:1 cbq rate 1kbit allot 1500 prio 5 bounded isolated tc filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip dst 192.168.3.31 flowid 1:1 tc qdisc add dev eth1 parent 1:1 sfq perturb 10 This limit packets from 192.168.3.31 to 1kbit How can it modify it to not to limit it for local IP addresses. Ie Only the traffic for internet is limited to 1kbps Amit ro0ot wrote:> Hi, > > I managed to fix 128kbit for an IP address of 192.168.200.3 as below: - > > tc qdisc add dev eth3 root handle 1: cbq avpkt 1000 bandwidth 100mbit > tc class add dev eth3 parent 1: classid 1:1 cbq rate 128kbit allot > 1500 prio 5 bounded isolated > tc filter add dev eth3 parent 1: protocol ip prio 16 u32 match ip dst > 192.168.200.3 flowid 1:1 > tc qdisc add dev eth3 parent 1:1 sfq perturb 10 > > How can I make it burstable to 256kbit? What command I need to add in? > > Regards, > ro0ot > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I applied this to following Network +------------------+ eth1 +----------------+ eth0 +-----------+ | 192.168.3.31 |------------------- | Linux Box |------------------------------- | Internet | +------------------+ 192.168.3.32 +----------------+ 192.168.2.198 +-----------+ gateway and modified the rate and IP and dev to look it this way tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth 100mbit tc class add dev eth1 parent 1: classid 1:1 cbq rate 1kbit allot 1500 prio 5 bounded isolated tc filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip dst 192.168.3.31 flowid 1:1 tc qdisc add dev eth1 parent 1:1 sfq perturb 10 This limit packets from 192.168.3.31 to 1kbit How can it modify it to not to limit it for local IP addresses. Ie Only the traffic for internet is limited to 1kbps Amit I am sending it third time but not echoed on list. Are my mails reaching ? ro0ot wrote:> Hi, > > I managed to fix 128kbit for an IP address of 192.168.200.3 as below: - > > tc qdisc add dev eth3 root handle 1: cbq avpkt 1000 bandwidth 100mbit > tc class add dev eth3 parent 1: classid 1:1 cbq rate 128kbit allot > 1500 prio 5 bounded isolated > tc filter add dev eth3 parent 1: protocol ip prio 16 u32 match ip dst > 192.168.200.3 flowid 1:1 > tc qdisc add dev eth3 parent 1:1 sfq perturb 10 > > How can I make it burstable to 256kbit? What command I need to add in? > > Regards, > ro0ot > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I applied this to following Network +------------------+ eth1 +----------------+ eth0 +-----------+ | 192.168.3.31 |------------------- | Linux Box |------------------------------- | Internet | +------------------+ 192.168.3.32 +----------------+ 192.168.2.198 +-----------+ gateway and modified the rate and IP and dev to look it this way tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth 100mbit tc class add dev eth1 parent 1: classid 1:1 cbq rate 1kbit allot 1500 prio 5 bounded isolated tc filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip dst 192.168.3.31 flowid 1:1 tc qdisc add dev eth1 parent 1:1 sfq perturb 10 This limit packets from 192.168.3.31 to 1kbit How can it modify it to not to limit it for local IP addresses. Ie Only the traffic for internet is limited to 1kbps Amit I am sending it third time but not echoed on list. Are my mails reaching ? ro0ot wrote:> Hi, > > I managed to fix 128kbit for an IP address of 192.168.200.3 as below: - > > tc qdisc add dev eth3 root handle 1: cbq avpkt 1000 bandwidth 100mbit > tc class add dev eth3 parent 1: classid 1:1 cbq rate 128kbit allot > 1500 prio 5 bounded isolated > tc filter add dev eth3 parent 1: protocol ip prio 16 u32 match ip dst > 192.168.200.3 flowid 1:1 > tc qdisc add dev eth3 parent 1:1 sfq perturb 10 > > How can I make it burstable to 256kbit? What command I need to add in? > > Regards, > ro0ot > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/