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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.