netstat -r: unwanted destinations binding to my routing table

Hello.

One of my Solaris machines is binding to weird desination address when I do netstat -r

Here's a printout.   I just have renamed some of the names from XX.XX to foo.bar for to sanitize my info, but everything is as is
How can I REMOVE this remote binding to those address that have nothing to do with my machine.  Everything I have is on an intranet

# netstat -r

Routing Table:
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
000-001.innovationteam.extern.sw.foo.bar io1-2                 U        2 771400  fciprb2
172.16.1.0           io1-1                 U        3 993412  fciprb1
XXX.XXX.48.0         io1-3                 U        2 330192  hme0
172.18.0.0           172.16.1.254          UG       0     64  
172.19.0.0           254-001.not-in-use.extern.sw.foo.bar  UG       0     64  
BASE-ADDRESS.MCAST.NET io1-1                 U        3      0  fciprb1
default              XXX.XXX.48.1          UG       0    101  
localhost            localhost             UH       04748294  lo0
LVL 1
ROCK1972Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wesly_chenCommented:
Hi,

   Use the following command (as root) to remove the route:
   route del -net <IP the destination> <the gateway IP>

   And check /etc/init.d/inetinit and /etc/init.d/inetsvc for some suspecious "routes" then comment them out.

If you still have issue, please provide the output of "ifconfig -a" (as root) and "netstat -rn", /etc/hosts, /etc/defaultrouter.

Wesly
0
ROCK1972Author Commented:
Your command worked on one of the address :
The : BASE-ADDRESS.MCAST.NET  was removed, but the 2 others are still there (000-001.innovationteam.extern.sw.foo.bar)

How can I disable dynamic routing.  I  don't want and kind of routes to bind without my permission.  
What parameters I need to change in /etc/init.d/inetinit and inetscv so only the routes I add manually, say in a /etc/rc3.d script are added

I will give points if you can tell me how to disable dynamic binding. Please advise.
0
wesly_chenCommented:
Please provide the output of "ifconfig -a" (as root) and "netstat -rn", /etc/hosts, /etc/defaultrouter.

By the way, RIP is the protocol for dynamic routing. Touch an empty file "/etc/norouter" will disable routed running on the boot-up.

Wesly
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

ROCK1972Author Commented:
#ifconfig -a
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
        inet 127.0.0.1 netmask ff000000
fciprb1: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
        inet 172.16.1.1 netmask ffffff00 broadcast 172.16.1.255
        ether 0:80:42:f:e0:a4
fciprb2: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
        inet 172.17.1.1 netmask ffffff00 broadcast 172.17.1.255
        ether 0:80:42:f:e0:a2
hme0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
        inet 146.132.60.33 netmask fffff000 broadcast 146.132.63.255
        ether 0:80:42:10:6b:58

#netstat -rn

Routing Table:
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
172.17.1.0           172.17.1.1            U        2 774021  fciprb2
172.16.1.0           172.16.1.1            U        2 996122  fciprb1
146.132.48.0         146.132.60.33         U        2 331128  hme0
172.18.0.0           172.16.1.254          UG       0    736  
172.19.0.0           172.17.1.254          UG       0    736  
default              146.132.48.1          UG       0   1161  
127.0.0.1            127.0.0.1             UH       04761670  lo0

# cat /etc/hosts

127.0.0.1       localhost loghost       # Loopback
172.16.1.1      io1-1   io1             # fciprb0 Gateway to Switch 1
172.17.1.1      io1-2                   # hme0 Gateway to Switch 2
172.16.1.2      io2-1   io2             # fciprb0 Gateway to Switch 1
172.17.1.2      io2-2                   # hme0 Gateway to Switch 2
172.16.1.3      io3-1   io3             # fciprb0 Gateway to Switch 1
172.17.1.3      io3-2                   # hme0 Gateway to Switch 2
172.16.1.4      io4-1   io4             # fciprb0 Gateway to Switch 1
172.17.1.4      io4-2                   # hme0 Gateway to Switch 2

146.132.60.33   io1-3  
146.132.60.34   io2-3  
146.132.60.35   io3-3  
146.132.60.36   io4-3  

# cat /etc/defaultrouter
146.132.48.1

Ok.  I'll put /etc/norouter, see if it works.  
0
wesly_chenCommented:
You need to reboot.

By the way, which 2 routes in the "netstat -rn" you don't want?

Wesly
0
ROCK1972Author Commented:
Its not with netstat -nr, its with netstat -r that I get the routes I dont want

netstat -r

Routing Table:
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
000-001.innovationteam.extern.sw.foo.bar io1-2                 U        2 774085  fciprb2    <---- This one!  What's
172.16.1.0           io1-1                 U        2 996199  fciprb1
142.133.48.0         io1-3                 U        2 331152  hme0
172.18.0.0           172.16.1.254          UG       0    756  
172.19.0.0           254-001.not-in-use.extern.sw.foo.bar  UG       0    756                    <---- and this one.
default              142.133.48.1          UG       0   1195  
localhost            localhost             UH       04762024  lo0

I want to know how come, and where from, I got this IP address of : 000-001.innovationteam.extern.sw.foo.bar and  254-001.not-in-use.extern.sw.foo.bar  
0
ROCK1972Author Commented:
I guess my question would be how come I see these address with netstat -r and not with netstat -nr....
0
wesly_chenCommented:
000-001.innovationteam.extern.sw.foo.bar io1-2                 U        2 774085  fciprb2    
equal to
172.17.1.0           172.17.1.1            U        2 774021  fciprb2
It's from the fibre channel card. Are you sure you don't want it?

172.19.0.0           254-001.not-in-use.extern.sw.foo.bar  UG       0    756                    
equal to
172.19.0.0           172.17.1.254          UG       0    736  
It is from the router "172.17.1.254". It tell you if you want to go to 172.19.0.0 network then you need to go through 172.17.1.254 (fciprb2 interface), not through your default gateway.

Those are ok to me since you have 3 interface cards.

Wesly
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ROCK1972Author Commented:
Ok. I think I know what's going on here.. .  I know how to fix my problem, but thanks for your help.    
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.