Traffic routing through wrong interface

Solaris-9 server is having one primary IP 10.41.161.14 on qfe0 and 10.41.116.0 on qfe3:1. Traffic is going through virtual interface instead of physical interface. How should I force traffic to go with primary interface.

root@smtsrvn01:/# netstat -nr
Routing Table: IPv4
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
10.41.116.0          10.41.116.7          U         1  11219  qfe3:1
10.41.116.0          10.41.116.9          U         1      0  qfe3:2
10.41.116.0          10.41.116.11         U         1      0  qfe3:3
10.41.116.0          10.41.116.14         U         1      0  qfe3:4
10.41.116.0          10.41.116.2          U         1      0  qfe3
10.41.160.0          10.41.161.14         U         1 132730  qfe0
224.0.0.0            10.41.116.2          U         1      0  qfe3
default              10.41.119.254        UG        1 865873
127.0.0.1            127.0.0.1            UH       18250500212  lo0

Solaris is not my strong side, but some things are common in every OS which adheres to the standards. In this case that means: routing tables are read from top to bottom and the first matching rule is used. You have several interfaces all pointing to net "10.41.116.0". Because one of them (10.41.116.7) is mentioned first in this list of rules it is used. Would any other interface be on top there than this would be used instead.

I hope this helps.

bakunin

1 Like

Thanks bakunin.
You are correct. After deleting virtual IP route, it worked fine.
Thanks