I have following list of route addresses which I need to add in /etc/sysconfig/network-scripts/route-eth0 file in order to make it permanent add.

route add -net netmask gw
route add -net netmask gw
route add -net netmask gw
route add -net netmask gw
route add -net netmask gw

In Windows it is simple to add. It can be achieved by adding just -p option with route command and it makes it permanent. What will be the file format for Linux.


ifconfig command does not list eth0 interface.

ip route show gives following output:

default via dev enp0s25  proto static  metric 100 
default via dev wlp4s0  proto static  metric 600 dev enp0s25  proto kernel  scope link  src  metric 100 dev wlp4s0  proto kernel  scope link  src  metric 600 dev virbr0  proto kernel  scope link  src linkdown 
  • 1
    As you add them to route-eth0 they are permanent. The will exist every time network interface is started/restarted. But why you add host as network? And why you do not use proper syntax for networks? Apr 26, 2017 at 10:10
  • I many not be able to understand your question but I tried docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/… with no luck.
    – snoop
    Apr 26, 2017 at 10:12
  • What is the output of ip route show ?
    – GAD3R
    Apr 26, 2017 at 13:30
  • @GAD3R question updated.
    – snoop
    Apr 27, 2017 at 4:50


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.