Operating System - HP-UX
1834137 Members
2388 Online
110064 Solutions
New Discussion

add a routing 11.00 by using route and netconf file

 
JI HUI
Frequent Advisor

add a routing 11.00 by using route and netconf file

Try to add following route :
"route add net 172.16.1.0 netmask 255.255.255.0 10.1.1.20"
In a HP-UX 11.0 machine, following information is shown: "add net 172.16.1.0: gateway 10.1.1.20: Network is unreachable "
What does it means? How it correct it?

thank you
Nothing is everything
11 REPLIES 11
Laurent Paumier
Trusted Contributor

Re: add a routing 11.00 by using route and netconf file

Did you configure a route to your gateway ?
What is the output of 'netstat -nr' ?
Robin Wakefield
Honored Contributor

Re: add a routing 11.00 by using route and netconf file

Your machine doesn't know how to get to the 10.1.1.20 gateway. You need to define default route or a router that knows about you 10.1.1 subnet.

Robin
Herve BRANGIER
Respected Contributor

Re: add a routing 11.00 by using route and netconf file

Hi

To add a route your system need to know how to
access your gateway. I think this message
signified you have no route to access the
gateway (10.1.1.20). You can test with ping :

ping 10.1.1.20

If you have no results you have to add a route
to access your gateway and after add your new
route. If this gateway is on you local physical
network add a route for lan0 or if you can
access it by your default gw verify you have
a default route on your system.

I think the better way to resolve your problem
si to join the result of your netstat -rn (ie
previous reply from Laurent)

Regards,

Herv?



JI HUI
Frequent Advisor

Re: add a routing 11.00 by using route and netconf file

Hi Thank you for the advices.
1. 10.1.1.20 is residing at the same physical lan segment where is the server is (server ip 10.1.1.10) and it is reachable by server
2. netstat -rn:
Dest/Network Gateway Flags
Nothing is everything
JI HUI
Frequent Advisor

Re: add a routing 11.00 by using route and netconf file

Sorry, wrong bottom clicked.
the result of "netstat -rn result"
was attached
Nothing is everything
Robin Wakefield
Honored Contributor

Re: add a routing 11.00 by using route and netconf file

Your "use" count is zero, confirming that nothing is connecting to that gateway. It's also zero for your local interface.

What does "ifconfig lan0" show?

Robin.
JI HUI
Frequent Advisor

Re: add a routing 11.00 by using route and netconf file

The result of ifconfig lan0:
lan0: flags=843
inet 10.1.1.10 netmask ffffff00 broadcast 10.1.1.255

Thank you
Nothing is everything
Laurent Paumier
Trusted Contributor

Re: add a routing 11.00 by using route and netconf file

Try this one :

# route add net 172.16.1.0 netmask 255.255.255.0 10.1.1.20 1

If the gateway is not localhost, you have to add a "count" value greater than 0 (see route command man page).
JI HUI
Frequent Advisor

Re: add a routing 11.00 by using route and netconf file

Thank you Laurent, it works!
Nothing is everything
Herve BRANGIER
Respected Contributor

Re: add a routing 11.00 by using route and netconf file

Hi

Just have a look at your profile : you never
assigned points to reply ?
Laurent and other forumers solve problems, in
this forum the way to be grateful is assign points....

see http://europe-support.external.hp.com/estaff/bin/doc.pl/forward/screen=estaffAssistance/sid=dece065a181a2baddf?Page=file0002#forpoints

Regards

Herv?


Chang_6
Regular Advisor

Re: add a routing 11.00 by using route and netconf file

Hi,

Laurent in this thread suggested this:

Try this one :

# route add net 172.16.1.0 netmask 255.255.255.0 10.1.1.20 1

--------------

I was wondering what 172.16.1.0 is? Is it a host? I believe 10.1.1.20 is the gateway

If I have to contact hotmail.com(64.4.32.7) Can I do this then?

# route add net 64.4.32.7 netmask 255.255.255.255 1 ?

I am trying to add a new route to my system. I already have a default gateway.