lc shaping in- and outbound traffic on same box
I'm looking for a way to shape all traffic on a virtual vlan interface, say eth1.100 to a max of 100mbit. The box is a quagga router with eth0 on the inside and vlan interfaces on the eth1 card to our upstream partners. Each partner has his own vlan on eth1.
I tried shaping but was only able to shape outbound traffic on the eth1.100 interface. Inbound shaping was also possible, but only on the eth0 interface. As I cannot see on the eth0 interface through which eth1 interface traffic came in, I can't use shaping on that interface this way.
Does anyone have a solution for me? Could this be done using tc's routing filter and route realms?
Hello beere,
Quoted 11 lines · you
I’m looking for a way to shape all traffic on a virtual vlan interface, say eth1.100 to a max of 100mbit. The box is a quagga router with eth0 on the inside and vlan interfaces on the eth1 card to our upstream partners. Each partner has his own vlan on eth1.
I tried shaping but was only able to shape outbound traffic on the eth1.100 interface. Inbound shaping was also possible, but only on
the eth0 interface. As I cannot see on the eth0 interface through
which eth1 interface traffic came in, I can’t use shaping on that interface this way.Does anyone have a solution for me? Could this be done using tc’s routing filter and route realms?
If I understand you correct http://www.linuximq.net/ is what you need to make shaping on different interfaces.
Signature · 7 lines
Best regards, Konstantin _______________________________________________ LARTC mailing list [email protected] http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Thanks! This is very interesting, but I need to patch the kernel for this to work. Would it be possible to mark all traffic that comes in through the eth1.100 interface using iptables and use that mark to shape that traffic leaving the eth0 interface?
How would I go about doing this?
Erwin
-----Original Message-----
From: Konstantin Astafjev [mailto:[email protected]]
Sent: dinsdag 22 mei 2007 16:44
To: Beer, Erwin de
Cc: [email protected]
Subject: Re: [LARTC] lc shaping in- and outbound traffic on same box
Hello beere,
Quoted 9 lines · you
I'm looking for a way to shape all traffic on a virtual vlan interface, say eth1.100 to a max of 100mbit. The box is a quagga router with eth0 on the inside and vlan interfaces on the eth1 card to our upstream partners. Each partner has his own vlan on eth1.
I tried shaping but was only able to shape outbound traffic on the eth1.100 interface. Inbound shaping was also possible, but only on the eth0 interface. As I cannot see on the eth0 interface through which eth1 interface traffic came in, I can't use shaping on that
interface this way.
Quoted 2 lines
Does anyone have a solution for me? Could this be done using tc's
routing filter and route realms?
If I understand you correct http://www.linuximq.net/ is what you need to make shaping on different interfaces.
Signature · 9 lines
Best regards, Konstantin _______________________________________________ LARTC mailing list [email protected] http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Hi there!
I believe it is possible, you can use the mark option in iptables to assign a mark to each packet and then set filters on tc using these marks. Be aware that this mark only exists within the kernel, so the packet is not modificated.
Although I have not read throughly the IMQ stuff I'm wondering if you cant solve your problem with DSCP.
Quoted 43 lines · On 5/23/07, [email protected] <[email protected]> wrote:
Thanks! This is very interesting, but I need to patch the kernel for this to work. Would it be possible to mark all traffic that comes in through the eth1.100 interface using iptables and use that mark to shape that traffic leaving the eth0 interface?
How would I go about doing this?
Erwin
-----Original Message-----
From: Konstantin Astafjev [mailto:[email protected]]
Sent: dinsdag 22 mei 2007 16:44
To: Beer, Erwin de
Cc: [email protected]
Subject: Re: [LARTC] lc shaping in- and outbound traffic on same boxHello beere,
Quoted 9 lines · you
I'm looking for a way to shape all traffic on a virtual vlan interface, say eth1.100 to a max of 100mbit. The box is a quagga router with eth0 on the inside and vlan interfaces on the eth1 card to our upstream partners. Each partner has his own vlan on eth1.
I tried shaping but was only able to shape outbound traffic on the eth1.100 interface. Inbound shaping was also possible, but only on the eth0 interface. As I cannot see on the eth0 interface through which eth1 interface traffic came in, I can't use shaping on that
interface this way.
Quoted 2 lines
Does anyone have a solution for me? Could this be done using tc's
routing filter and route realms?
If I understand you correct http://www.linuximq.net/ is what you need to make shaping on different interfaces.
--
Best regards,
Konstantin
Quoted 5 lines
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc