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!
Signature · 1 line
Stefano Mainardi
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
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!
Signature · 6 lines
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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 1 line · Stefano Mainardi
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
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc