Hi, Can anybody confirm please the correct syntax to use ''tc'' with IPv6 packets? Through trial-and-error, I''ve got it down to: tc filter add dev eth0 parent 1:0 protocol ipv6 prio 30 u32 match ip6 src \ <IPv6-ADDRESS> flowid 1:84 But this is giving a: RTNETLINK answers: Invalid argument Does anybody know what the syntax should be? For individual filtering and also filtering on firewall marks? Thanks, -- Alan Ford * alan@whirlnet.co.uk _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hi, I have a situation where the queue to interface eth0 is full all the time. I want my scheduler to send 4 packets to destination 1.2.3.4 followed by 2 packets to destination 5.6.7.8 ( I assume sufficient packets are available all the time) Is this method of configuring correct Assuming my *MTU* is 1514 tc qdisc add dev eth0 root handle 1: prio tc filter add dev eth0 parent 1:0 prio 1 protocol ip u32 match ip dst 1.2.3.4/32 flowid 1:1 tc filter add dev eth0 parent 1:0 prio 2 protocol ip u32 match ip dst 5.6.7.8/32 flowid 1:2 tc qdisc add dev eth0 parent 1:1 handle 10: sfq quantum 6056 tc qdisc add dev eth0 parent 1:2 handle 20: sfq quantum 3028 Will this work ?? Nandini _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Tuesday 24 February 2004 06:12, Nandini wrote:> Hi, > I have a situation where the queue to interface eth0 is full all the > time. > I want my scheduler to send 4 packets to destination 1.2.3.4 followed > by 2 packets to destination 5.6.7.8 ( I assume sufficient packets are > available all the time) > > Is this method of configuring correct > Assuming my *MTU* is 1514 > > tc qdisc add dev eth0 root handle 1: prio > tc filter add dev eth0 parent 1:0 prio 1 protocol ip u32 match ip dst > 1.2.3.4/32 flowid 1:1 > tc filter add dev eth0 parent 1:0 prio 2 protocol ip u32 match ip dst > 5.6.7.8/32 flowid 1:2 > tc qdisc add dev eth0 parent 1:1 handle 10: sfq quantum 6056 > tc qdisc add dev eth0 parent 1:2 handle 20: sfq quantum 3028 > > Will this work ??Yes, but quantum is for htb classes, not for qdiscs. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/