Beginning with Junos 12.2, the statement validation-state: unverified is sometimes encountered during BGP configuration when validating show route. This condition is harmless, and can either be ignored, or controlled by a policy statement.
validation-state: unverified
The statement validation-state: unverified is encountered when executing the command run show route .
run show route
ab@cheese# run show routeinet.0: 8 destinations, 10 routes (8 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both192.168.0.0/30 *[Direct/0] 00:02:58> via xe-0/0/0.0[BGP/170] 00:02:27, localpref 100AS path: 200 I, validation-state: unverified >>>>>>>>>>>>>> to 192.168.0.2 via xe-0/0/0.0192.168.0.1/32 *[Local/0] 00:02:58Local via xe-0/0/0.010.0.0.0/8 *[Static/5] 5d 00:48:59> to 172.16.116.1 via fxp0.010.10.10.10/32 *[Direct/0] 00:02:58> via lo0.010.20.20.20/32 *[BGP/170] 00:02:27, localpref 100AS path: 200 I, validation-state: unverified >>>>>>>>>>>>>> to 192.168.0.2 via xe-0/0/0.0172.16.0.0/12 *[Static/5] 5d 00:48:59> to 172.16.116.1 via fxp0.0172.16.116.0/23 *[Direct/0] 5d 00:48:59> via fxp0.0[BGP/170] 00:02:27, localpref 100AS path: 200 I, validation-state: unverified > to 192.168.0.2 via xe-0/0/0.0172.16.116.23/32 *[Local/0] 5d 00:48:59Local via fxp0.0
This statement does not indicate an invalid path, but warns that this path has not been validated by Origin validation configuration.
Origin validation for BGP enables BGP to recognize when an autonomous system (AS) begins advertising all or part of another company's assigned network. BGP recognizes the error and responds in a way that avoids service interruptions.
To configure, include the validation statement (and associated child statements) at the [edit routing-options] hierarchy level. Also configure a policy with the from validation-database match condition, the then validation-state action, and the extended community (origin validation state).
As this display is harmless, you can ignore it or control it by policy-statement, as follows:
validation-state
(BGP-learned routes) Validation status of the route:
set interfaces xe-0/0/0 unit 0 family inet address 192.168.0.1/30set interfaces lo0 unit 0 family inet address 10.10.10.10/32set routing-options autonomous-system 100set protocols bgp group eBGP type externalset protocols bgp group eBGP import rvset protocols bgp group eBGP export Rrt-Exportset protocols bgp group eBGP neighbor 192.168.0.2 peer-as 200set policy-options policy-statement PF term 1 then load-balance per-packetset policy-options policy-statement Rrt-Export from protocol directset policy-options policy-statement Rrt-Export then acceptset policy-options policy-statement rv term a from protocol bgpset policy-options policy-statement rv term a from validation-database validset policy-options policy-statement rv term a then local-preference 110set policy-options policy-statement rv term a then validation-state validset policy-options policy-statement rv term a then acceptset policy-options policy-statement rv term b from protocol bgpset policy-options policy-statement rv term b from validation-database invalidset policy-options policy-statement rv term b then local-preference 9set policy-options policy-statement rv term b then validation-state invalidset policy-options policy-statement rv term b then acceptset policy-options policy-statement rv term c from protocol bgpset policy-options policy-statement rv term c from validation-database unknown >>>>>>>>>>>>set policy-options policy-statement rv term c then validation-state unknown >>>>>>>>>>>>>>>set policy-options policy-statement rv term c then accept >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
lab@cheese# run show routeinet.0: 8 destinations, 10 routes (8 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both192.168.0.0/30 *[Direct/0] 00:12:52> via xe-0/0/0.0[BGP/170] 00:12:21, localpref 100AS path: 200 I, validation-state: unknown >>>>>>>>>>>>>>>>>>>> to 192.168.0.2 via xe-0/0/0.0192.168.0.1/32 *[Local/0] 00:12:52Local via xe-0/0/0.010.0.0.0/8 *[Static/5] 5d 00:58:53> to 172.16.116.1 via fxp0.010.10.10.10/32 *[Direct/0] 00:12:52> via lo0.010.20.20.20/32 *[BGP/170] 00:12:21, localpref 100AS path: 200 I, validation-state: unknown >>>>>>>>>>>>>>>>>>>> to 192.168.0.2 via xe-0/0/0.0172.16.0.0/12 *[Static/5] 5d 00:58:53> to 172.16.116.1 via fxp0.0172.16.116.0/23 *[Direct/0] 5d 00:58:53> via fxp0.0[BGP/170] 00:12:21, localpref 100AS path: 200 I, validation-state: unknown >>>>>>>>>>>>>>>>>>> to 192.168.0.2 via xe-0/0/0.0172.16.116.23/32 *[Local/0] 5d 00:58:53Local via fxp0.0
2024-10-17: minor non tech changes
2022-11-17: Updated non-compliant IP addresses to RFC standards