Setting DSCP


#1

I recently started using VyOS, was previously on Vyatta 6.3.

Vyatta had a modify firewall that allowed you to set DSCP. This seems to now be gone, or am I missing something? If so, is there a new way to set DSCP? I’m not seeing any commands to do this.


#2

Can you give an example of the syntax you are used to ?

there was a syntax change after vc6.3, so we just might need to find the new syntax.

I found an example in vc6.5 that might be helpful:

http://www.five-ten-sg.com/mapper/bufferbloat


#3

Yes, here is an example from 6.3:

set firewall modify eth5-out default-action ‘accept’
set firewall modify eth5-out rule 5 action ‘modify’
set firewall modify eth5-out rule 5 modify dscp ‘8’
set firewall modify eth5-out rule 5 source group address-group ‘setdscp8’

I’ve searched through the newer command structure and can’t find anything equivalent . . . or I am blind . . . thanks for any help!


#4

In the last link I gave you, there is a clear example

[quote]vyos@vyos:~$ show version

Version: VyOS 1.0.2
Description: VyOS 1.0.2 (hydrogen)
Copyright: 2014 SO3 Group
Built by: maintainers@vyos.net
Built on: Sun Feb 2 15:49:43 UTC 2014
Build ID: 1402021549-59dba31
System type: Intel 64bit
Boot via: image
Hypervisor: KVM
HW model: Bochs
HW S/N: Not Specified
HW UUID: Not Settable
Uptime: 00:50:26 up 20:41, 2 users, load average: 0.00, 0.01, 0.05

vyos@vyos:~$ show configuration commands |grep traffic-policy

set traffic-policy shaper voip bandwidth ‘500kbit’
set traffic-policy shaper voip class 10 bandwidth ‘15%’
set traffic-policy shaper voip class 10 burst ‘15k’
set traffic-policy shaper voip class 10 ceiling ‘100%’
set traffic-policy shaper voip class 10 match voip-rtp ip dscp ‘46’
set traffic-policy shaper voip class 10 queue-limit ‘4’
set traffic-policy shaper voip class 10 queue-type ‘fair-queue’
set traffic-policy shaper voip default bandwidth ‘50%’
set traffic-policy shaper voip default burst ‘15k’
set traffic-policy shaper voip default ceiling ‘100%’
set traffic-policy shaper voip default queue-limit ‘4’
set traffic-policy shaper voip default queue-type ‘fair-queue’
[/quote]

When you add a Vyos Image to a running vc6.3, the commands in the running config should be converted to new syntax :wink:


#5

Thanks, but that example is a traffic-shaper matching traffic by DSCP.

I am looking to set DSCP on packets destined for particular IPs/networks (to later be used for traffic shaper matching, similar to that example)

The scenario is that I have a router with a 1Gbps port to the Internet, and need to shape traffic destined for particular IPs that route out a 100Mbps link on the same router. The 100Mbps link is a gig port, but is shaped to 100Mbps.


#6

Have you tried what I suggested ?

add vyos image to your current vyatta setup ?
It should convert the config automagically


#7

Hi, I think firewall modify was replaced by policy routing. set policy route setdscp8 rule 5 set dscp 8 may possibly be part of what you are trying to do. See Vyatta-PolicyBasedRouting_6.5R1_v01.pdf

http://docs.huihoo.com/vyatta/6.5/Vyatta-PolicyBasedRouting_6.5R1_v01.pdf

I hope this is what you are looking for.

SteveP


#8

I did not, we no longer have the old Vyatta setup. Worst case, I suppose I can re-create it and try.

Thanks! That looks promising, I will take a closer look!!


#9

Just a small non-update. I haven’t gotten around to testing PBR, but I will report back when I have.