1753795 Members
7137 Online
108799 Solutions
New Discussion

Route Issue

 
SOLVED
Go to solution
Indrajit Bhagat
Regular Advisor

Route Issue

Customer has requested to add the following route on xyz houst:

 

 

Route to                     System            add/delete     Netmask                     Gateway

195.233.141.105         xyz         add                  255.255.255.255         195.233.141.1    

 

 

xyz:/root#netstat -nr|grep 195.233.141.105
195.233.141.105       195.233.141.105    UH        0  lan5       4136
195.233.141.0         195.233.141.105    U         2  lan5       1500

 

xyz:/root#netstat -nr|grep 195.233.141.1
195.233.141.105       195.233.141.105    UH        0  lan5       4136
195.233.120.144       195.233.141.1      UGH       0  lan5       1500
195.233.120.146       195.233.141.1      UGH       0  lan5       1500
195.233.120.187       195.233.141.1      UGH       0  lan5       1500
195.233.120.170       195.233.141.1      UGH       0  lan5       1500
195.233.236.182       195.233.141.1      UGH       0  lan5       1500
195.233.236.213       195.233.141.1      UGH       0  lan5       1500
195.233.141.0         195.233.141.105    U         2  lan5       1500
195.233.120.142       195.233.141.1      UGH       0  lan5       1500
195.233.120.143       195.233.141.1      UGH       0  lan5       1500
default               195.233.141.1      UG        0  lan5       1500

 

While Adding the route, I am getting the following error:

 

anldeabh:/root#route add host 195.233.141.105 195.233.141.1 1
add host 195.233.141.105: gateway 195.233.141.1: entry in use

 

 

Please suggest where is the mistake

5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: Route Issue

Look at the first line of your netstat output.  The host 195.233.141.105 is already there. 

 

195.233.141.105       195.233.141.105    UH        0  lan5       4136

 

This probably needs to be removed before you try to add it again.

Indrajit Bhagat
Regular Advisor

Re: Route Issue

Hi Patrick

 

Would there be any issue in removing the route:

195.233.141.105       195.233.141.105    UH        0  lan5       4136

 

 

Patrick Wallek
Honored Contributor

Re: Route Issue

Is 195.233.141.105 the IP address of the local host?  If so, you don't really need a route  to 195.233.141.1 to get to it.

Indrajit Bhagat
Regular Advisor

Re: Route Issue

Hi Patrick

 

 

The Ip address 195.233.141.105  belongs to lan5

 

anldeabh:/etc#  ifconfig lan5
lan5: flags=1843<UP,BROADCAST,RUNNING,MULTICAST,CKO>
        inet 195.233.141.105 netmask ffffff00 broadcast 195.233.141.255

 

Also I tried to delete this route, but not able to delete it

anldeabh:/etc#route delete 195.233.141.105 195.233.141.105
delete host 195.233.141.105: gateway 195.233.141.105: no such route
anldeabh:/etc#route delete host 195.233.141.105 netmask 255.255.255.255 195.233.141.105
netmask: bad value
anldeabh:/etc#route delete net 195.233.141.105 netmask 255.255.255.255 195.233.141.105
delete net 195.233.141.105: gateway 195.233.141.105: no such route

Patrick Wallek
Honored Contributor
Solution

Re: Route Issue

OK, I am now confused.  What exactly are you trying to accomplish?

 

You said:

Customer has requested to add the following route on xyz houst:

Route to          System     add/delete     Netmask                  Gateway

195.233.141.105     xyz         add         255.255.255.255         195.233.141.1

 

If 195.233.141.105 is on lan5, why do you need to get to it via 195.233.141.1?