Skip to contentSkip to conversation

htb class!!! attaching

LARTC Nickola Kolev 2 participants 2 messages Oct 9, 2002

lore
Share & tools
lore
#0 lore raw

Of course, the example given was my mistake. Anyway, consider these two:

Number 1
# Level 2 - Servers Class

	$tc class add dev $dev parent $ROOT_CLASS classid $SERVER_CLASS htb \
	rate $SERVER_GARAN ceil $SERVER_MAX
	$tc filter add dev $dev protocol ip parent $SERVER_CLASS prio $SERVER_PRIO u32 \
	match ip dst 192.168.1.0/26 flowid $SERVER_CLASS

# Level 2 - End Servers Class

And number 2:

# Level 2 - Servers Class

	$tc class add dev $dev parent $ROOT_CLASS classid $SERVER_CLASS htb \
	rate $SERVER_GARAN ceil $SERVER_MAX
	$tc filter add dev $dev protocol ip parent $ROOT_CLASS prio $SERVER_PRIO u32 \
	match ip dst 192.168.1.0/26 flowid $SERVER_CLASS

# Level 2 - End Servers Class
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 14 lines · Nickola Kolev

Of course, the example given was my mistake. Anyway, consider these two:

Number 1
# Level 2 - Servers Class
$tc class add dev $dev parent $ROOT_CLASS classid $SERVER_CLASS htb \
rate $SERVER_GARAN ceil $SERVER_MAX
$tc filter add dev $dev protocol ip parent $SERVER_CLASS prio $SERVER_PRIO
u32 \ match ip dst 192.168.1.0/26 flowid $SERVER_CLASS
# Level 2 - End Servers Class

And number 2:

Quoted 6 lines

# Level 2 - Servers Class
$tc class add dev $dev parent $ROOT_CLASS classid $SERVER_CLASS htb \
rate $SERVER_GARAN ceil $SERVER_MAX
$tc filter add dev $dev protocol ip parent $ROOT_CLASS prio $SERVER_PRIO
u32 \ match ip dst 192.168.1.0/26 flowid $SERVER_CLASS
# Level 2 - End Servers Class

You have to add the filter to the class where you want to split the traffic, so number 2.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/