How to add a "blackhole" or "unreachable" or "prohibit" route to NetworkManager?

Solution Verified - Updated -

Issue

  • How to add a "blackhole" or "unreachable" or "prohibit" route to NetworkManager?
  • In initscripts we used route type unreachable, how to add this to a NetworkManager connection so it persists?
  • Unable to configure blackhole routing in RHEL 8
  • Our RHEL boxes are configured as routers and require blackhole routing type to ensure full functionality. NetworkManager does not support this routing type, even though the kernel and iproute2 do.

Environment

  • Red Hat Enterprise Linux 7 or later
  • NetworkManager
  • Black hole, unrechable, or prohibited IP routing

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content