Popular
Latest Articles
- How to Secure your Cisco Router
- Creating CLI Views on a Cisco Router
- Configuring TACACS+ on a Cisco Router
- How to enable SDM on your router
- Build a Samba Server on Redhat / CentOS
- How to set the Time / Date and Timezone in CentOS
- How to install SSH on Solaris 10 x86
- ESX4 - How do I turn on/off a Virtual Machine from the command line ?
SPLAT - Route / Static ARP startup Script
Monday, 15 September 2008 16:18
Firewalls - Checkpoint - SPLAT
To create a static route script, create a file in /etc/init.d/ with the routes included,
it should look something like this,
#!/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.