How to permanently add "route add -host 10.20.30.10 reject" to a system

Solution In Progress - Updated -

Issue

  • How can the equivalent of route add -host 10.20.30.10 reject be permanently added to a system?

Desired effect:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.20.30.10 -               255.255.255.255 !H        - -          - -

Environment

  • Red Hat Enterprise Linux 6 without NetworkManager
  • Red Hat Enterprise Linux 7 without NetworkManager

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