[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with the filters
On Thu, 17 Jun 1999, Carlos Macian wrote:
>
>
> Hi Linux-DiffServers,
> The question I'd like to ask is not explicitly about DiffServ, because
> I haven't been able to make my easy script for tc work, let alone implement
> DiffServ (which is my goal).
> My problem is that I get the structure all right (qdiscs, classes...),
> but the packets are not "delivered" to their corresponding classes. I guess I
> am missing something about the filters...
Thats the most suspect thing. Below is one way to do it.
$TC filter add dev eth0 parent 1:0 protocol ip prio 4 handle 1: \
u32 divisor 1
$TC filter add dev eth0 parent 1:0 prio 4 u32 \
match ip dst 129.69.172.12/32\
flowid 1:2
$TC filter add dev eth0 parent 1:0 prio 4 u32 \
match ip dst 129.69.172.11/32\
flowid 1:3
Note: As Larry Wall says "There is more than one way to do it " ;->
cheers,
jamal