LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-21-2010, 03:52 AM   #1
mic.sed
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
Problem with DSCP tagging of DHCP Discovery packets


Hi all,
can you please help me to solve my problem?
I need to tag outgoing dhcp packets with certain dscp value. I use following iptables command:

iptables -t mangle -A POSTROUTING -p udp -o eth0 -j DSCP --set-dscp 13

This rule is working perfectly if I have common udp traffic (etc with iperf). But if my pc sends DHCP Discovery, the packet has still dscp=0x04 (tos=0x10) - is it a default value?
During DCHP renew, when pc sends DHCP Request, outgoing packet has correct dscp value (13 with this case). It's a problem for broadcast packets only, like DCHP Discovery, but I don't know why it happens and what's wrong.

I tried to put also very simple rule to FORWARD, OUTPUT and POSTROUTING chains of mangle table but DHCP Discovery packet has still dscp = 0x04

itpables -t mangle -A OUTPUT -p udp -j DSCP --set-dscp 13
itpables -t mangle -A FORWARD -p udp -j DSCP --set-dscp 13
itpables -t mangle -A POSTROUTING -p udp -j DSCP --set-dscp 13

I'm using Lenny 2.6.26-2-686 (standard distribution) with iptables v1.4.2 and my pc has only one wan interface (eth0).

Thank you for any help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is DSCP tagging (for QoS) honored on the loopback? gburtenshaw Linux - Networking 0 03-13-2009 11:18 AM
iptables+DSCP abakali Linux - Networking 2 10-12-2007 07:03 AM
opennms and dhcp discovery svenwinkle Linux - Software 3 04-25-2007 11:47 AM
bad dns packets from netgear router - dhcp client fc4 rhoffman Linux - Networking 0 01-12-2006 10:14 AM
iptables - dscp not matches brabard Linux - Networking 9 10-16-2003 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration