Default route ( netstat -nrv ) is removed/missing after platform patch


 
Thread Tools Search this Thread
Operating Systems Solaris Default route ( netstat -nrv ) is removed/missing after platform patch
# 1  
Old 07-11-2012
Question Default route ( netstat -nrv ) is removed/missing after platform patch

After running a script for Platform Patch, the default route is removed from netstat -nrv.

The machine does not reboot after Platform Patch.

The script does not have any command to remove default route as shown below...
route del default gw <IP>

I am wondering, how is the defaut route is getting removed. Is the script using some other command. But I could not find anything ...what should Is search forSmilie
# 2  
Old 07-11-2012
There are a number of ways for Solaris to be configured for a default router but by far the most common is (by creating) the file:

Code:
 
/etc/defaultrouter

This file contains just the ip address of the defaultrouter (and nothing else) eg. file contents

Code:
 
10.146.3.126

(If you reboot the system then Solaris will set that as the default route. Note also though that this will stop other config methods eg. inetd from starting.)

It is possible that patching has somehow removed /etc/defaultrouter. It is not unheard of for patching to blow out the default route. All you can do is put it back.

You should also check that /etc/resolv.conf contains details of the DNS server(s).
# 3  
Old 07-11-2012
Actually I'm really confused by what you are seeing. I am guessing that the process ran some compiled code or a shell script and the default gateway was was cleared.

The gateway itself can be updated by the sysadmin and as you say:
Code:
route delete .. .. ..
# or
route add .. .. ..
# or
/etc/defaultrouter (file added or changed)

If you are sure the script "did it"
Code:
grep route [shell script name]

and also look for invocations of other scripts. If there is an executable file called, try
Code:
strings [executable filename] | grep route

# 4  
Old 07-11-2012
It's not unheard of to blow out the default router and other network items during patching......................

Can't ping default router in Solaris 10
# 5  
Old 07-11-2012
Default route is added manually. After reboot again it disappears.......
# 6  
Old 07-11-2012
So you create a /etc/defaultrouter file and after a reboot it is gone?
# 7  
Old 07-11-2012
what changed in the init.d and rc[0-5].d directories? Are you using /etc/defaultrouter?
That should not get blown away.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Default route in system

Hi All Recently we have faced issue in SUN server after reboot of node 2 default routs has been added to system as below IRE Table: IPv4 **Destination*************Mask***********Gateway**********Device Mxfrg Rtt***Ref Flg**Out**In/Fwd* -------------------- ---------------... (2 Replies)
Discussion started by: aaysa123
2 Replies

2. AIX

Default Route add fails

AIX version 5.3 when I try to add default gateway # route add 0 192.168.100.254 Or # route add default 192.168.100.254 I get the error 0821-275 route: socket: The file access permissions do not allow the specified action. searching on google i came across similar... (5 Replies)
Discussion started by: filosophizer
5 Replies

3. Solaris

Default route is configured, but seem to not work

Hiya, I got the default gateway set in /etc/defaultrouter file, however "netstat -nr" doesn't show anything like "default" in the routing table. As far as I know "netstat" on Solaris 10 u7 should show something like : Routing Table: IPv4 Destination Gateway Flags Ref ... (8 Replies)
Discussion started by: TomSu
8 Replies

4. AIX

Default route question

Hello I have a question regarding default route on AIX servers. (I am using a p5 5.3 TL9 machine). in my output of "lsattr -El inet0" I can see there are two routes like below. route net,-hopcount,0,,0,x.x.207.7 Route True route net,-hopcount,0,,0,x.x.202.129 Route True But... (9 Replies)
Discussion started by: gsabarinath
9 Replies

5. UNIX for Advanced & Expert Users

Multi-platform Centralized Patch Management

We have a mix of AIX, HP-UX, Linux (RHEL and SLES), and Solaris in our environment. Currently we have seperate patch management systems for each platform (NIM, SD, Spacewalk, etc), but have started looking for a centralized patch management solution that would work for most, if not all, of our... (0 Replies)
Discussion started by: kknigga
0 Replies

6. Solaris

solaris 10 u5 what happens if no default route configured

Hi, I am new to solaris 10. What is the procedure the os takes if a default route is not configured? I am using a multihomed server with 4 interfaces. It looked strange to me this morning, because i had not defined a default route it defaulted to making one up, with the ip address of another... (9 Replies)
Discussion started by: borderblaster
9 Replies

7. AIX

Default route removed - what to do ?

Hi, After accidental default route removal serial connection doesn't work. What should I do to connect to my machine ? thanks Vilius (7 Replies)
Discussion started by: vilius
7 Replies

8. UNIX for Advanced & Expert Users

netstat -p, missing PID/program name

I have a netstat command set up with awk to show which ports my box is listening on. The -p switch shows the PID/program name, too, which ordinarily would be very handy. However, several entries show up as just "-" for the program name which makes it hard to identify what is keeping the port open.... (2 Replies)
Discussion started by: Bilge
2 Replies

9. IP Networking

Patch-o-matic (patch for iptable) for linux2.4.08 & iptable1.2.7a

Hello friends I'm running Redhat 9.0 with linux kernel 2.4.20-8 & have iptables version 1.2.7a & encountering a problem that I narrate down. I need to apply patch to my iptable and netfilter for connection tracking and load balancing that are available in patch-o-matic distribution by netfilter.... (0 Replies)
Discussion started by: Rakesh Ranjan
0 Replies

10. AIX

Permanent Default Route

Hi, We are running AIX 5.2. Our default gateway used to be IP Address A. Our new default gateway is IP Address B. A netstat revealed that our default route was IP address A. We manually added default route with IP address B and removed the default route with IP address A. However,... (3 Replies)
Discussion started by: DenD
3 Replies
Login or Register to Ask a Question