Operating System - HP-UX
1762917 Members
1796 Online
108909 Solutions
New Discussion юеВ

route add: netwok unreachable

 
SOLVED
Go to solution
leonardo_20
Valued Contributor

route add: netwok unreachable

Hi to all!

I'm try to additing route in netconf file so as explained below:

ROUTE_DESTINATION[52]="net 10.173.54.240"
ROUTE_MASK[52]="255.255.255.240"
ROUTE_GATEWAY[52]=10.173.54.241
ROUTE_COUNT[52]=1
ROUTE_ARGS[52]=""

After, I ran the command
/sbin/init.d/net start

Below the error:

ERROR: Failed to add route entry because its interface is not yet initialized. May need to add this route entry with a route commad after the interface is up :
add net 10.173.54.240: gateway 10.173.54.241: Network is unreachable

What about it?
In my system does not response rnetstat -I command.

thanks in advance
8 REPLIES 8
Alex Lavrov.
Honored Contributor

Re: route add: netwok unreachable

This network is unreachale from your server. Can you ping it from another serve in the same network segment? You should consult with your network administrator so they can give you all the settings in order to reach that network.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
harry d brown jr
Honored Contributor

Re: route add: netwok unreachable

Try: ROUTE_DESTINATION[52]="net 10.173.54.0"

Of course try it at the command line first before messing with /etc/rc.config.d/netconf

live free or die
harry d brown jr
Live Free or Die
Mobeen_1
Esteemed Contributor

Re: route add: netwok unreachable

Leonardo,
It could be one of the following

1. Either the information you have got for the route is wrong

2. The interface for 10.173.54.240 is down

As mentioned in the previous post, try to ping 10.173.54.240 from another host in your network segment, if it fails then i would conclude that something is wrong with the 10.173.54.240 and escalate this to your n/w group

If the ping doesn't fail, then the information you have at your disposal is probably wrong, i would talk to the n/w guys and ascertain if that information is right

regards
Mobeen
RolandH
Honored Contributor

Re: route add: netwok unreachable

Your

ROUTE_GATEWAY[52]=10.173.54.24

is wrong !!

You must set there the ip adress of your Gateway over which your can reach this network.

Or is this a direct attached network to your system( interface card) ? Then you just forget to initialize the network card in your system.

Roland
Sometimes you lose and sometimes the others win
Alexander M. Ermes
Honored Contributor

Re: route add: netwok unreachable

Hi there.
Pls check the status of your network interface with lanadmin.
You have an operational status and an administrative status. I think, the ops status may be down. And pls check the cables.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
leonardo_20
Valued Contributor

Re: route add: netwok unreachable

so,
I correct my gateway to 10.173.226.1.
I put the following lines into netconf file:

ROUTE_DESTINATION[52]="net 10.170.54.240"
ROUTE_MASK[52]="255.255.255.240"
ROUTE_GATEWAY[52]=10.173.226.1
ROUTE_COUNT[52]=1
ROUTE_ARGS[52]=""

I restarted the service, no errors gives.

Now I tried to ping 10.170.54.242 but no response arrived.

I add route manually:
route add 10.170.54.242 10.173.226.1 1

Now ping run correctly.

Why I cannot ping alla IP address?
Why I have to add route manually?

There are something files to configure or other sevices to restart?

Leonardo
RolandH
Honored Contributor
Solution

Re: route add: netwok unreachable

Which netmask is set on your destination system?

Take this netmask and set in ROUTE_MASK[52]="255.xxx.xxx.xxx"

Roland
Sometimes you lose and sometimes the others win
leonardo_20
Valued Contributor

Re: route add: netwok unreachable

thanks
it's run