- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
08-20-2015 10:00 PM - edited 03-08-2019 06:58 PM
When we add static route from Sourcefire CLI, chances are they may disappear when we reboot the SFR module. There is another way, we can add static routes permanently.
Steps to Add Static Routes:
Step 1: Login to the Command Line Interface (CLI) of the appliance.
Step 2: Access the network-device directory as root user.
--> sudo su – (become root)
--> cd /etc/sysconfig/network-devices
Step 3: Execute the following command to create the necessary configuration file:
touch ifcfg-static-routes ( in case ifcfg-static-routes is missing inside network-devices directory)
Step 4: Execute the following command to add a static route:
echo '<device> <type> <network> <subnet_prefix> <gateway>'
>> /etc/sysconfig/network-devices/ifcfg-static-routes
Step 5: Execute the following command to load the new static routes:
/etc/rc.d/init.d/routes restart
-------------------------------------------------------------------------------------------------------
Eg: echo 'eth0 ipv4 10.10.10.0 255.255.255.0 10.10.10.1’ >> /etc/sysconfig/network-devices/ifcfg-static-routes
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
The alternate way to add the static route.
configure network static-routes ipv4 add <interface> <destination> <netmask> <gateway>
Example:
configure network static-routes ipv4 add eth0 192.168.10.0 255.255.255.0 192.168.1.1
Regards,
Sunil Kumar
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I have still the same problem. Every time when I rebbot the ASA my static routes from the SFR module are gone. I use the statement: configure network static-routes ipv4 add eth0
Is there a solution available?

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content