I have 2 NIC on server one is for internal communication with 10.10.10.X IP and other is 172.X.X.X IP for external communication.
I have route table like this
[root@hadoopslave1 ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.10.0 * 255.255.255.0 U 0 0 0 em1
172.X.X.0 * 255.255.255.0 U 0 0 0 em3
link-local * 255.255.0.0 U 1002 0 0 em1
link-local * 255.255.0.0 U 1004 0 0 em3
default 10.10.10.1 0.0.0.0 UG 0 0 0 em1
here the default route is through 10.10.10.1 gateway. i removed the default route and added new route for 172.X.X.1 Gateway but on reboot this is getting restored.
What changes are need to be made to make sure these changes will stay even after reboot.