Why "ip route" command is not validating the ip address used for gateway.
Issue
ip routecommand not throwing any error for adding/replacing gateway ip asnetwork addressin priority table.- Why
ip routeallowing to useinvalid ipaddress as gateway ip inip route addcommand? - Why
ip routecommand allowingnetwork addressto be used as gateway ip address while adding/replacing theroute?
Environment
- Red Hat Enterprise Linux 7.7 and newer
kernel-3.10.0-1039.el7and newerip routePolicy Based Routing
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.