Today i was told to add some static route on a Linux server, something to do with vmware. anyway, so here i am adding a line to the file /etc/rc.local to add that route
route add -net 10.0.0.0/24 gw 192.168.1.1 eth0
now my manager says no, i want it to survive a network service restart not just a server restart
now that's something i never did, but turns out to be as simple as that
* create a new file called static-routes under /etc/sysconfig/
* add a line per route as follows
# - any net 10.0.0.0/24 gw 192.168.1.1 eth0
* /etc/init.d/network restart and tada it's done
Recent comments
6 weeks 6 hours ago
9 weeks 6 days ago
12 weeks 2 days ago
12 weeks 6 days ago
21 weeks 12 hours ago
2 years 9 weeks ago
2 years 9 weeks ago
2 years 9 weeks ago
2 years 22 weeks ago
3 years 29 weeks ago