12-07-2004 07:55 AM - edited 03-09-2019 09:41 AM
Does anyone know how to add a static route, other then default, on a sensor running 4.1.x?
Thanks
Tom
12-07-2004 10:41 AM
This is not officially supported by Cisco.
If this is something you would like to see officially supported, then contact the TAC and ask them to create an enhancement request for this.
In the meantime, there is an unsupported method for doing this, but it requires going through the service account. Once you use the service account, you will not be supported by the TAC, because they have no way of tracking changes that happen through the service account and will not be able to tell if a problem is because of changes you may have made through the service account.
With that said here is the method:
Login to the service account.
Switch to user root (same password as the service account)
Use the standard Linux route command to add the static route. (Use the man pages on a RedHat Linux box if you need help to create the route command).
Once you've figured out the route command you can paste it into a file.
You will now want to have that file called everytime the system reboots.
You will need to put a link to the file in either the /etc/rc2.d or /etc/rc3.d (don't remember which at the moment) so that it will be called on reboot.
It will need to be called after the S99local file that starts the cids programs so it will need a name like S99myRoute so it will come alphabetically after S99local.
12-07-2004 11:56 AM
Great! Thanks much.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide