Re: SV: [LARTC] Bandwidth limiting problem

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel Bergqvist wrote:
> 
> Hi!
> 
> Please post the other tc commands too, so I may test it.
> 
> Regards,
> Daniel

Okay

tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000

tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 10Mbit \
  rate 100Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000

tc class add dev eth0 parent 10:1 classid 10:100 cbq bandwidth 100Mbit \
  rate 128kbit allot 1514 weight 80Kbit prio 5 maxburst 20 avpkt 1000 \
  bounded

tc qdisc add dev eth0 parent 10:100 sfq quantum 1514b perturb 15

tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32 match ip \
  dst 192.168.3.0/24 flowid 10:100



> > -----Ursprungligt meddelande-----
> > Från: lartc-admin@xxxxxxxxxxxxxxx
> > [mailto:lartc-admin@xxxxxxxxxxxxxxx]För Fredrik Rambris
> > Skickat: Tuesday, October 17, 2000 2:04 PM
> > Till: lartc@xxxxxxxxxxxxxxx
> > Ämne: [LARTC] Bandwidth limiting problem
> >
> >
> > Hi!
> >
> > I'm trying to limit the access to and from a 2MBit leased line to a
> > total of 128kbit (up+down must not exceed 128kbit).
> >
> > eth0 is connected to our lan with 100MBit
> > eth1 is connected to Internet via a router
> >
> > I've tried modifying the examples in the howto and it succeeds up to the
> > filter definition where I get an error.
> >
> > tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32 match ip \
> > dst 192.168.3.0/24 flowid 10:100
> >
> > gives
> >
> > RTNETLINK answers: Ogiltigt argument
> >
> > (Ogiltigt argument == Invalid argument)
> >
> > This should be a real easy one. Only one class (the whole local network)
> > should only get access to 128kbit of the 2Mbit.
> >
> > Anyone have some idea of what I could be doing wrong?
> >
> > / Fredrik Rambris
> > --
> > Admera Solution Provider AB
> > Tel: 0733-850 814
> > Position: 55°36´13N  13°03´36E
> 
> _______________________________________________
> LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

-- 
Admera Solution Provider AB
Tel: 0733-850 814
Position: 55°36´13N  13°03´36E
begin:vcard 
n:Rambris;Fredrik
tel;work:0733-850814
x-mozilla-html:FALSE
org:Admera Solution Provider AB;Teknik
adr:;;Höjdroderg. 5;Malmö;;212 39;Sweden
version:2.1
email;internet:fredrik.rambris@xxxxxxxxx
note:Position: 55°36´13N  13°03´36E
x-mozilla-cpt:;-27936
fn:Fredrik Rambris
end:vcard

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux