How to permanently add "route add -host 10.20.30.10 reject" to a system
Issue
- How can the equivalent of
route add -host 10.20.30.10 rejectbe 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
