Hey everyone, I tried to mark traffic based on per subnet as to the usual per ip. Example: Tc class add dev eth0 parent 1:11 htb rate 400kbit ceil 500kbit prio4 Tc filter add dev eth0 parent 1:0 protocol ip prio 7 u32 dst 192.168.0.0/24 classid 1:11 After I enter this command, I did not get any errors. Does this mean that EACH IP belonging to that subnet will have a maximum rate of 400kbit? Or does it mean that ALL the IPs in that subnet have a total of 400kbit? Thanks in advance. Regards edmund _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Thursday 30 October 2003 06:51, Edmund Turner wrote:> Hey everyone, > > I tried to mark traffic based on per subnet as to the usual per ip. > Example: > Tc class add dev eth0 parent 1:11 htb rate 400kbit ceil 500kbit prio4 > Tc filter add dev eth0 parent 1:0 protocol ip prio 7 u32 dst > 192.168.0.0/24 classid 1:11 > > After I enter this command, I did not get any errors. > Does this mean that EACH IP belonging to that subnet will have a maximum > rate of 400kbit?No.> Or does it mean that ALL the IPs in that subnet have a total of 400kbit?Yes. 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/
Thanks Stef!!! Regards edmund -----Original Message----- From: Stef Coene [mailto:stef.coene@docum.org] Sent: Thursday, October 30, 2003 6:12 PM To: eturner@monash.edu.my; lartc@mailman.ds9a.nl Subject: Re: [LARTC] (no subject) On Thursday 30 October 2003 06:51, Edmund Turner wrote:> Hey everyone, > > I tried to mark traffic based on per subnet as to the usual per ip. > Example: > Tc class add dev eth0 parent 1:11 htb rate 400kbit ceil 500kbit prio4 > Tc filter add dev eth0 parent 1:0 protocol ip prio 7 u32 dst > 192.168.0.0/24 classid 1:11 > > After I enter this command, I did not get any errors. > Does this mean that EACH IP belonging to that subnet will have amaximum> rate of 400kbit?No.> Or does it mean that ALL the IPs in that subnet have a total of400kbit? Yes. 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/