Skip to contentSkip to conversation

How to specify bandwidth

LARTC Jaco van der Schyff 2 participants 3 messages May 21, 2001

lore
Share & tools
lore
#0 lore raw

Greetings,

I have a quick question as how to specify bandwith on my eth0 device.

I have a cisco router connected to eth0, and the cisco router is connected to our ISP via a 320Kbps link.

When I specify the bandwith in tc, do I specify it as 320Kbps (the bandwidth of the internet link) or as 100Mbps (the bandwidth available on eth0)

And the same question as to the bandwidth on eth1 (link to lan). Should that also be 320kbps or 100mbps?

Any help would be greatly appreciated.

- Jaco van der Schyff
[email protected]

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

#1 lore raw

Solution :
- add CBQ root qdisc with bandwidth 100mbps
- add BOUNDED class with bandwidth 100mbps, rate 320kbps
- add CBQ qdisc with bandwidth 320kbps, rate 320Kbps
- add al the other classes to second qdisc

For LAN : I suggest to do the same.

Stef

Quoted 24 lines · Jaco van der Schyff

Greetings,

I have a quick question as how to specify bandwith on my eth0 device.

I have a cisco router connected to eth0, and the cisco router is connected to our ISP via a 320Kbps link.

When I specify the bandwith in tc, do I specify it as 320Kbps (the bandwidth of the internet link) or as 100Mbps (the bandwidth available on eth0)

And the same question as to the bandwidth on eth1 (link to lan). Should that also be 320kbps or 100mbps?

Any help would be greatly appreciated.

- Jaco van der Schyff
[email protected]

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

Signature · 7 lines
Stef

More QOS info : http://users.belgacom.net/staf/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
#2 lore raw
In reply to Jaco van der Schyff

Solution :
- add CBQ root qdisc with bandwidth 100mbps
- add BOUNDED class with bandwidth 100mbps, rate 320kbps
- add CBQ qdisc with bandwidth 320kbps, rate 320Kbps
- add al the other classes to second qdisc

For LAN : I suggest to do the same.

Stef

Quoted 24 lines · Jaco van der Schyff

Greetings,

I have a quick question as how to specify bandwith on my eth0 device.

I have a cisco router connected to eth0, and the cisco router is connected to our ISP via a 320Kbps link.

When I specify the bandwith in tc, do I specify it as 320Kbps (the bandwidth of the internet link) or as 100Mbps (the bandwidth available on eth0)

And the same question as to the bandwidth on eth1 (link to lan). Should that also be 320kbps or 100mbps?

Any help would be greatly appreciated.

- Jaco van der Schyff
[email protected]

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

Signature · 8 lines
Stef

More QOS info : http://users.belgacom.net/staf/


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