1 Answer
- Newest
- Most votes
- Most comments
1
As root, create a file /etc/sysconfig/network-scripts/route-[network_interface] whose contents are either:
-
10.0.0.0/8 via 10.1.0.1 dev [network_interface]
ADDRESS0=10.0.0.0
NETMASK0=255.0.0.0
GATEWAY0=10.1.0.1
Full details are in https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-configuring_static_routes_with_ip_commands
Relevant content
- asked 7 years ago
- asked 3 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago
The content of /etc/sysconfig/network-scripts/route-[network_interface] is automatically replaced at reboot so my route disappear from this file