š» Software
Significance of priority in "ip rule" command
Fresh5 days ago
Mar 15, 202610440 viewsConfidence Score0%
0%
Problem
What is the significance of the prio option in ip rule add/del command? Does a higher priority for a rule give it preference over other rules in the table? I saw this piece of code online, without any comments to it. I'm curious to know what it does:
Error Output
ip rule del prio 32766 from "" dev "" fwmark 0 table main ip rule del prio 32767 from "" dev "" fwmark 0 table default ip rule add prio 4294967293Uā¦
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix ā Awaiting Verification
Fix for: Significance of priority in "ip rule" command
Low Risk
The priority determines the order in which the rules are checked (from lowest number to highest). The first rule which matches the packet is used. The maximum priority is 32767 though, so those big priority numbers don't make sense.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix