Stefano Mainardi
2006-Jun-09 17:04 UTC
TC on virtual NIC, and how to manage the incoming traffic
Hello list, i thank you for the precious info you gave me, they were really useful in my work. I need to work with TC on a virtual interface. Is it possible ? How ? There is any doc on this topic ? And foremost, is my idea of working with TC on a virtual interface viable ? I am wondering if to control the traffic which comes in on a specific inferface is better to use TC''s filter or mark the packets with the MANGLE TABLE of IProute ? Or something different at all ? Thanks to anyone will respond! -- Stefano Mainardi _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Stefano Mainardi
2006-Jun-20 17:50 UTC
TC on virtual NIC, and how to manage the incoming traffic
Hello list, i thank you for the precious info you gave me, they were really useful in my work. I need to work with TC on a virtual interface. Is it possible ? How ? There is any doc on this topic ? And foremost, is my idea of working with TC on a virtual interface viable ? I am wondering if to control the traffic which comes in on a specific inferface is better to use TC''s filter or mark the packets with the MANGLE TABLE of IProute ? Or something different at all ? Thanks to anyone will respond! -- Stefano Mainardi Presidente Associazione ILDN - Italian Linux Distro Network Mobile: 349/3917212 Skype: mainardistefano IM (ICQ): 250-292-408 Blog: http://www.mainardistefano.org _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Torsten Luettgert
2006-Jun-20 19:37 UTC
Re: TC on virtual NIC, and how to manage the incoming traffic
On Di, 2006-06-20 at 19:50 +0200, Stefano Mainardi wrote:> I need to work with TC on a virtual interface. Is it possible ?I guess you mean the "eth0:1" and alike that ifconfig generates. If so, no, it is not possible (at least directly), since those are just additional addresses bound to an existing interface. There are other "virtual" interfaces where it works (loopback, VLANs, tunnel interfaces etc.) You can see which ones work by using "ip link ls". That being said, your problem can be solved, of course (this is linux, after all!) If you need to shape traffic differently based on IP addresses (or just about anything else), you can use iptables to mark the packets or classify them directly to tc classes. Look into the CLASSIFY and MARK targets for that. Hth, Torsten