Avatar of abilash_praveen
abilash_praveenFlag for India

asked on 

How to save ip route?

Hello,
I have used ip route/rule as below:
ip route add table 4 default via 61.257.142.1
ip rule add from 61.257.142.233 lookup 4
ip rule addfwmark 4 table 4

Now all requests to 61.257.142.233 are being routed via 61.257.142.1 and not the default gateway which is just fine. However, when i restart the server these changes seems to be lost. Can someone tell me how i'd save these so it is there forever? or is there any conf file (such as for ipconfig /etc/sysconig/iptables) where i can manually type in these commands?

Thanks
aP
Linux Networking

Avatar of undefined
Last Comment
abilash_praveen
ASKER CERTIFIED SOLUTION
Avatar of Pablo Allietti
Pablo Allietti
Flag of Uruguay image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of abilash_praveen

ASKER

oh no! how cruel on me :)

that works the magic, thannks pap
Linux Networking
Linux Networking

The variety of Linux distributions creates myriad issues relating to configuration and operations when computers are networked, not the least of which is the use of various network management applications, some of which are included with specific distributions, while others are standalone applications.

19K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo