Issues in packet mark

Dear all,
here is the configuration for packet mark and in this way i wants to allow 50mbit of band with CDN google
and 10mbit for others , but it has error so, please help me to resolve this issues
my configuration as bellow

all-ping enable
broadcast-ping disable
config-trap disable
group {
network-group PEERING {
network 43.228.195.0/25
network 103.94.252.192/26
network 103.94.254.192/26
network 43.228.192.192/26
network 43.228.195.128/26
network 103.94.252.128/26
network 103.94.254.128/26
network 103.155.68.0/24
}
}
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
receive-redirects disable
send-redirects enable
source-validation disable
syn-cookies enable
twa-hazards-protection disable
[edit]
vyos@vyos#

policy route
vyos@vyos# sh policy route
route CDN-PAIRING {
rule 100 {
set {
mark 20000
}
source {
group {
network-group PEERING
}
}
}
}
[edit]
vyos@vyos#

traffice policy
vyos@vyos# sh traffic-policy
shaper DN-LINK {
bandwidth auto
class 100 {
bandwidth 10mbit
match office-traffic {
ip {
destination {
address 172.18.0.2/32
}
}
}
priority 1
queue-type fair-queue
}
class 101 {
bandwidth 50mbit
match GGC {
mark 20000
}
match Office-cdn {
ip {
destination {
address 172.18.0.2/32
}
}
}
priority 0
queue-type fair-queue
}
default {
bandwidth 512kbit
}
}
[edit]
vyos@vyos#

eth2 is wan and eth4 is lan
[edit]
vyos@vyos# sh interfaces ethernet eth2
address 192.168.15.2/30
duplex auto
hw-id 90:e2:ba:8b:48:28
policy {
route CDN-PAIRING
}
smp-affinity auto
speed auto
[edit]

vyos@vyos# sh interfaces ethernet eth4
address 172.18.0.1/24
duplex auto
hw-id 00:e0:4c:84:d3:8f
smp-affinity auto
speed auto
traffic-policy {
out DN-LINK
}
[edit]

best regards
arun Tamrakar

resolved it , did it myself !

1 Like

Hi @linuxpkr,

Great job taking the initiative and solving the issue independently! :raised_hands: :tada:

Write your solution. It will help someone else.

1 Like

thanks ,

Here is my config

policy route
set firewall group network-group PPPOE-100M network 172.30.0.0/20
set firewall group network-group PPPOE-150M network 172.30.16.0/20
set firewall group network-group PPPOE-200M network 172.30.32.0/20

POLICY ROUTE GGC

set policy route CDNPARING rule 110 description PPOE-CDN-100M-DN
set policy route CDNPARING rule 110 destination group network-group PPPOE-100M
set policy route CDNPARING rule 110 source group network-group GGC-ADDRESS
set policy route CDNPARING rule 110 set mark 110

set policy route CDNPARING rule 111 description PPOE-CDN-150M-DN
set policy route CDNPARING rule 111 destination group network-group PPPOE-150M
set policy route CDNPARING rule 111 source group network-group GGC-ADDRESS
set policy route CDNPARING rule 111 set mark 11

set policy route CDNPARING rule 112 description PPOE-CDN-200M-DN
set policy route CDNPARING rule 112 destination group network-group PPPOE-200M
set policy route CDNPARING rule 112 source group network-group GGC-ADDRESS
set policy route CDNPARING rule 112 set mark 112

set policy route CDNPARING rule 113 description PPOE-CDN-100M-UP
set policy route CDNPARING rule 113 destination group network-group GGC-ADDRESS
set policy route CDNPARING rule 113 source group network-group PPPOE-100M
set policy route CDNPARING rule 113 set mark 113

set policy route CDNPARING rule 114 description PPOE-CDN-150M-UP
set policy route CDNPARING rule 114 destination group network-group GGC-ADDRESS
set policy route CDNPARING rule 114 source group network-group PPPOE-150M
set policy route CDNPARING rule 114 set mark 114

set policy route CDNPARING rule 115 description PPOE-CDN-200M-UP
set policy route CDNPARING rule 115 destination group network-group GGC-ADDRESS
set policy route CDNPARING rule 115 source group network-group PPPOE-200M
set policy route CDNPARING rule 115 set mark 115

POLICY ROUTE INTL

set policy route CDNPARING rule 116 description INTL-PPOE-100M-DN
set policy route CDNPARING rule 116 destination group network-group PPPOE-100M
set policy route CDNPARING rule 116 set mark 116

set policy route CDNPARING rule 117 description INTL-PPOE-150M-DN
set policy route CDNPARING rule 117 destination group network-group PPPOE-150M
set policy route CDNPARING rule 117 set mark 117

set policy route CDNPARING rule 118 description INTL-PPOE-200M-DN
set policy route CDNPARING rule 118 destination group network-group PPPOE-200M
set policy route CDNPARING rule 118 set mark 118

set policy route CDNPARING rule 119 description INTL-PPOE-100M-UP
set policy route CDNPARING rule 119 source group network-group PPPOE-100M
set policy route CDNPARING rule 119 set mark 119

set policy route CDNPARING rule 120 description INTL-PPOE-150M-UP
set policy route CDNPARING rule 120 source group network-group PPPOE-150M
set policy route CDNPARING rule 120 set mark 120

set policy route CDNPARING rule 121 description INTL-PPOE-200M-UP
set policy route CDNPARING rule 121 source group network-group PPPOE-200M
set policy route CDNPARING rule 121 set mark 121

QOS POLICY GGC

set qos policy shaper DN-LINK class 110 description PPOE-GGC-100M-DN
set qos policy shaper DN-LINK class 110 queue-type fq-codel
set qos policy shaper DN-LINK class 110 priority 0
set qos policy shaper DN-LINK class 110 ceiling 100mbit
set qos policy shaper DN-LINK class 110 match GGC-PPOE-100M mark 110

set qos policy shaper DN-LINK class 111 description PPOE-GGC-150M-DN
set qos policy shaper DN-LINK class 111 queue-type fq-codel
set qos policy shaper DN-LINK class 111 priority 0
set qos policy shaper DN-LINK class 111 ceiling 150mbit
set qos policy shaper DN-LINK class 111 match GGC-PPOE-150M mark 111

set qos policy shaper DN-LINK class 112 description PPOE-GGC-100M-DN
set qos policy shaper DN-LINK class 112 queue-type fq-codel
set qos policy shaper DN-LINK class 112 priority 0
set qos policy shaper DN-LINK class 112 ceiling 100mbit
set qos policy shaper DN-LINK class 112 match GGC-PPOE-200M mark 112

set qos policy shaper UP-LINK class 113 description PPOE-GGC-100M-UP
set qos policy shaper UP-LINK class 113 queue-type fq-codel
set qos policy shaper UP-LINK class 113 priority 0
set qos policy shaper UP-LINK class 113 ceiling 100mbit
set qos policy shaper UP-LINK class 113 match GGC-PPOE-100M mark 113

set qos policy shaper UP-LINK class 114 description PPOE-GGC-150M-UP
set qos policy shaper UP-LINK class 114 queue-type fq-codel
set qos policy shaper UP-LINK class 114 priority 0
set qos policy shaper UP-LINK class 114 ceiling 150mbit
set qos policy shaper UP-LINK class 114 match GGC-PPOE-150M mark 114

set qos policy shaper UP-LINK class 115 description PPOE-GGC-200M-UP
set qos policy shaper UP-LINK class 115 queue-type fq-codel
set qos policy shaper UP-LINK class 115 priority 0
set qos policy shaper UP-LINK class 115 ceiling 200mbit
set qos policy shaper UP-LINK class 115 match GGC-PPOE-200M mark 115

QOS POLICY INTL

set qos policy shaper DN-LINK class 116 description PPOE-INTL-100M-DN
set qos policy shaper DN-LINK class 116 queue-type fq-codel
set qos policy shaper DN-LINK class 116 priority 0
set qos policy shaper DN-LINK class 116 ceiling 34mbit
set qos policy shaper DN-LINK class 116 match INTL-PPOE-100M mark 116

set qos policy shaper DN-LINK class 117 description PPOE-INTL-150M-DN
set qos policy shaper DN-LINK class 117 queue-type fq-codel
set qos policy shaper DN-LINK class 117 priority 0
set qos policy shaper DN-LINK class 117 ceiling 50mbit
set qos policy shaper DN-LINK class 117 match INTL-PPOE-150M mark 116

set qos policy shaper DN-LINK class 118 description PPOE-INTL-200M-DN
set qos policy shaper DN-LINK class 118 queue-type fq-codel
set qos policy shaper DN-LINK class 118 priority 0
set qos policy shaper DN-LINK class 118 ceiling 67mbit
set qos policy shaper DN-LINK class 118 match INTL-PPOE-200M mark 118

set qos policy shaper DN-LINK class 119 description PPOE-INTL-100M-UP
set qos policy shaper DN-LINK class 119 queue-type fq-codel
set qos policy shaper DN-LINK class 119 priority 0
set qos policy shaper DN-LINK class 119 ceiling 34mbit
set qos policy shaper DN-LINK class 119 match INTL-PPOE-100M mark 119

set qos policy shaper DN-LINK class 120 description PPOE-INTL-100M-UP
set qos policy shaper DN-LINK class 120 queue-type fq-codel
set qos policy shaper DN-LINK class 120 priority 0
set qos policy shaper DN-LINK class 120 ceiling 50mbit
set qos policy shaper DN-LINK class 120 match INTL-PPOE-150M mark 120

set qos policy shaper DN-LINK class 121 description PPOE-INTL-100M-UP
set qos policy shaper DN-LINK class 121 queue-type fq-codel
set qos policy shaper DN-LINK class 121 priority 0
set qos policy shaper DN-LINK class 121 ceiling 67mbit
set qos policy shaper DN-LINK class 121 match INTL-PPOE-200M mark 121

2 Likes

thanks sir … thank you very much !

1 Like