[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

netstat -r: unwanted destinations binding to my routing table

Posted on 2004-10-27
9
Medium Priority
?
1,126 Views
Last Modified: 2013-12-27
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
0
Comment
Question by:ROCK1972
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 38

Expert Comment

by:wesly_chen
ID: 12424844
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
 
LVL 1

Author Comment

by:ROCK1972
ID: 12426784
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
 
LVL 38

Expert Comment

by:wesly_chen
ID: 12426961
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:ROCK1972
ID: 12427054
#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
 
LVL 38

Expert Comment

by:wesly_chen
ID: 12427122
You need to reboot.

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

Wesly
0
 
LVL 1

Author Comment

by:ROCK1972
ID: 12427149
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
 
LVL 1

Author Comment

by:ROCK1972
ID: 12427169
I guess my question would be how come I see these address with netstat -r and not with netstat -nr....
0
 
LVL 38

Accepted Solution

by:
wesly_chen earned 1500 total points
ID: 12427313
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
 
LVL 1

Author Comment

by:ROCK1972
ID: 12427358
Ok. I think I know what's going on here.. .  I know how to fix my problem, but thanks for your help.    
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question