To create a static route script, create a file in /etc/init.d/ with the routes included.
Below is an example,
#!/bin/bash
/sbin/route add -host 192.168.1.25 gateway 10.1.1.25
/sbin/route add -host 192.168.1.19 gateway 10.1.1.19
exit 0
Then link this to the startup script, by running,
ln -s /etc/init.d/staticroutes /etc/rc3.d/S68Staticroutes
You can then do the same for the static arp entries.
Please Note : that this is the none standard way of adding routes to a SPLAT device. A much easier way is to add your routes via the command line (SSH) using the `/sbin/route add` command and then use the command `route –save` to make the routes permenant post reboot.
- NETCONF & YANG: Automate Network Configs via Python - April 2, 2026
- Palo Alto – How to Configure Your Next-Generation Firewall - April 2, 2026
- How to Harden Linux SSH: Keys, Fail2ban & Ciphers - March 1, 2026
Want to become an IT Security expert ?
Here is our hand-picked selection of the best courses you can find online:
Internet Security Deep Dive course
Complete Cyber Security Course – Hackers Exposed
CompTIA Security+ (SY0-601) Certification Complete course
and our recommended certification practice exams:
Delta Practice Tests