Delete route so it does not persist after reboot | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Delete route so it does not persist after reboot

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-12-2013
jastanle84 jastanle84 is offline
Registered User
 
Join Date: Jul 2010
Last Activity: 17 June 2013, 8:04 AM EDT
Posts: 59
Thanks: 16
Thanked 0 Times in 0 Posts
Delete route so it does not persist after reboot

Solaris 10
I am trying to delete a route using the command:


Code:
 
route -p delete 192.0.0.0 192.1.3.254

The route gets delete but for some reason the route pops back up in the routing table after reboot. I also deleted the /etc/inet/static_routes file and the route still persists after reboot. The /etc/netmasks files also does not have this route in it. Am I missing something? What is the correct way to delete a route and not have it come back after reboot?
Sponsored Links
    #2  
Old 06-12-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 30 July 2014, 2:28 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,383
Thanks: 8
Thanked 535 Times in 514 Posts
Are you running a router protocol?
Sponsored Links
    #3  
Old 06-12-2013
jastanle84 jastanle84 is offline
Registered User
 
Join Date: Jul 2010
Last Activity: 17 June 2013, 8:04 AM EDT
Posts: 59
Thanks: 16
Thanked 0 Times in 0 Posts
I never thought of that. The server is not being used as a router. There is an Big-IP F5 load balancer on the incoming side of the server. Can the F5 use a routing protocol to exchange route info with the server? Is there a simply way to check for a routing protocol on the server?
Another thought I have, but have not confirmed it though, is am I using the right command to add a route. This may be a reason why the static route of 192.0.0.0 keeps popping up. Here is the command I used to add the persistent route:

Code:
route -p add -net 192.1.3.4 192.1.3.254 -ifp bnx2

Let me know if this could be the issue also and what the correct command should be.

Last edited by jastanle84; 06-12-2013 at 11:49 PM.. Reason: Came up with more detail of the routing command I have been using
    #4  
Old 06-13-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 30 July 2014, 2:28 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,383
Thanks: 8
Thanked 535 Times in 514 Posts
Regardless of the apparent function of a box, any box with 2 IP interfaces can be a router if it has ip forwarding turned on.

Any box could run a routing daemon to extract routes from adjacent routers, especially if it has multiple IP interfaces. For instance, OSPF might decide which IPs are served from each IP interface for local traffic, even without ip forwarding, by adjusting the routing table dynamically.

It is possible for routers to tell your machine to use a different path using ICMP, but as that is insecure, it is usually turned off. https://en.wikipedia.org/wiki/Intern...tocol#Redirect
Sponsored Links
    #5  
Old 06-15-2013
Shrogg Shrogg is offline
Registered User
 
Join Date: May 2013
Last Activity: 28 October 2013, 6:52 PM EDT
Posts: 5
Thanks: 0
Thanked 2 Times in 2 Posts
try removing the contents of /etc/defaultrouter
Sponsored Links
    #6  
Old 06-17-2013
jastanle84 jastanle84 is offline
Registered User
 
Join Date: Jul 2010
Last Activity: 17 June 2013, 8:04 AM EDT
Posts: 59
Thanks: 16
Thanked 0 Times in 0 Posts
Yeah, that did not work. Routes still persist.
Sponsored Links
    #7  
Old 06-18-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 30 July 2014, 2:28 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,383
Thanks: 8
Thanked 535 Times in 514 Posts
Anything in the manual: Packet Forwarding and Routing on IPv4 Networks - System Administration Guide: IP Services ?
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Not able to delete the route on one of the server bapu1981 Solaris 5 05-24-2012 08:19 AM
PATH settings don't seem to persist across sessions TR5 UNIX for Dummies Questions & Answers 5 09-29-2011 04:15 AM
Exceed - Session Persist after shutdown dvd7e UNIX for Dummies Questions & Answers 0 06-14-2011 11:53 AM
tuning network parameters : parameters not persist after reboot dantares AIX 0 12-08-2009 12:35 PM
route after reboot upengan78 Solaris 11 12-17-2008 12:01 PM



All times are GMT -4. The time now is 05:26 AM.