Problem with routes in Solaris 10

Hello All,

I have a Solaris 10 machine with 4 physical network interfaces configured viz. igb0, e1000g0, igb2 and e1000g2.

Out of these interfaces, I am routing all my normal monitoring and O&M activities via. igb0 and e1000g0 interfaces.

However, I am facing an issue on one of the servers, wherein every-time i reboot the server, it adds a route to a destination IP 10.0.0.0 using interface e1000g2. This leads to all my O&M traffic being directed via. this interface, which is creating issues.

I tried deleting this route and defining another default route for e1000g2 interface using

route -p delete 10.0.0.0 -netmask 255.255.255.x -interface <e1000g2-IP> 
&&
route -p add 10.x.x.x -netmask 255.255.255.x -interface <e1000g2-IP> 

This resolves the issue only temporarily, as after reboot the old route is added back again.

I have checked the file /etc/inet/netmasks and found that an application was adding some static routes of series 0.0.0.x to this file. I have disabled changes via that application but the issue persists.

Please suggest apart from /etc/inet/netmasks and /etc/inet/static_routes, which other files are used by Solaris 10 for defining the routes seen in "netstat -nrv".???
:wall:

What is e1000g2 IP address and netmask ?

Hi Jlliagre

e1000g2 IP address is 10.50.3.6 and netmask is 255.255.255.224

---------- Post updated 07-11-12 at 10:47 AM ---------- Previous update was 07-10-12 at 01:39 PM ----------

Hi,

I have also checked my /etc/defaultroute and the file is ok with the correct gateway.

However, for the wrong route that is being added, i have checked in the system installation logs and found the following:

File name: /var/sadm/system/logs/sysidtool.log

stat /var/yp/binding/
name service found = NIS
get_net_name_num
get_net_if_name
get_net_if_name: skipping "lo0" loopback interface
get_net_if_name: igb0
get_net_ipaddr: igb0
get_net_ipaddr: got 10.50.14.21
get_net_name_num: netnum=10.0.0.0
Won't configure netmask - already done
prompt_timezone

What is get_net_name_num: netnum=10.0.0.0 ???
Can this value be updated or deleted without re-installation???
If so, from which file?
:wall:

what is the output of /etc/hostname.interface ?

Looks like NIS is being used to configure your network. What is the contents of your /etc/nsswitch.conf?