Phùng Quang Phi
New member
How do I permanently add a route in Linux?
Answer
Adding permanent static routes
On RHEL or CentOS, you need to
modify the interface file in ‘/etc/sysconfig/network-scripts’. For example, here, we have to add routes on network interface ens192. Hence, the file we need to modify will be ‘/etc/sysconfig/network-scripts/route-ens192’.
Answer
Adding permanent static routes
On RHEL or CentOS, you need to
modify the interface file in ‘/etc/sysconfig/network-scripts’. For example, here, we have to add routes on network interface ens192. Hence, the file we need to modify will be ‘/etc/sysconfig/network-scripts/route-ens192’.