Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have set up 4 VLANs with ids 100,200,300,400 on raw interface eth0.Now i wanted to prioritise the traffic that will be flowing on these interfaces.I think so,i can use iptables to add QoS rules to set up the priorities based on source IP address of the VLAN interfaces using MANGLE target. Is this a valid solution ? Requesting to shed some light on this.


share|improve this question

1 Answer 1

While iptables can mark packets for control purposes, it is actually tc that is used for QoS rules.

share|improve this answer
Thanks for the reply.Can u point me to the right text or tutorials for this,as i was searching and got confused.. –  user1273627 Aug 6 '12 at 8:44
take a look at lartc.org –  pQd Aug 6 '12 at 9:16
Hi,This is the understanding i have using the iptables and tc for traffic prioritisation for my above stated situation.I want to verify that is that the right one. Firstly,using iptables we can mark the packets coming from the particular vlan interface with an integer.(I think so this is just a number that is added in the IP header to segregate the packets based on IP address.Secondly we need to create classes and assign priority, then add filter rules to classify the packets into different classes.So packets of particular interface will belong to particular class and particular priority. –  user1273627 Aug 7 '12 at 6:20
Is my above understanding right? If not can anyone please explain on this.thanks –  user1273627 Aug 7 '12 at 6:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.