1827791 Members
2663 Online
109969 Solutions
New Discussion

Routing

 
SOLVED
Go to solution
Daniel Fourie
Frequent Advisor

Routing

Hi

Is there a file in linux where I can add staic routing entry's to so that if the server reboots the entry's will no tbe lost.

Regards
Knowlage is Power
3 REPLIES 3
U.SivaKumar_2
Honored Contributor
Solution

Re: Routing

Hi,

If the router is in eth0's network.

edit /etc/sysconfig/network-scripts/route-eth0

10.1.0.0/16 via 10.2.0.10

where 10.1.0.0/16 is the destination network and 10.2.0.10 is your router to reach it.

regards,

U.SivaKumar.
Innovations are made when conventions are broken
Roberto Polli
Trusted Contributor

Re: Routing


Hi, for redhat:
/etc/sysconfig/networking/static-routes

Alexander Chuzhoy
Honored Contributor

Re: Routing

Actually in RedHat it's
/etc/sysconfig/static-routes