cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a route hpux 11V3

WilliamSmith11
Super Advisor

Adding a route hpux 11V3

Hi
I have have two rx6600 running hpux 11v3 in different sites.
Server 1 have the following information
IPaddress 172.16.188.23
netmask 255.255.252.0
gateway 172.16.188.2

The Server2 (alternate site) have the following information

IPaddresss 172.16.180.90
netmask 255.255.252.0
Gateway 172.16.180.2

Question
>How will I do to get access to the machine Server2 (172.16.180.90) from the Server1

Manually will be in this way?
route add net 172.16.180.0 netmask 255.255.252.0 172.16.188.2 1

>How will I do to get access to the machine Server1 (172.16.188.23) from the Server2

Manually will be in this way?
route add net 172.16.188.0 netmask 255.255.252.0 172.16.180.2 1

In the /etc/rc.config.d/netconf file if there are other routes configured , how will be my entry in this file?

# vi /etc/rc.config.d/netconf
in the Server1

ROUTE_DESTINATION[1]="172.16.180.0"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="172.16.188.2"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""


I am little confuse.

Regards
rperez
3 REPLIES
Steven Schweda
Honored Contributor

Re: Adding a route hpux 11V3

Looks ok to me, except:

> ROUTE_MASK[1]=""

Wouldn't that be a good place to specify the
"255.255.252.0" netmask?

I'm too lazy to start up an HP-UX system to
look, but I'd assume that some start-up
script reads "/etc/rc.config.d/netconf", and
then inserts its "ROUTE_*[n]" parameters into
one or more "route add" commands. I'd also
expect that the "netmask 255.255.252.0" part
of those commands must come from somewhere.
If you can find out where all this happens,
then you should be able to see who does what,
and what goes where to make it happen.

Or, you could just trust my guess. Or, you
could wait for advice from someone who knows
something. (I'd look at the start-up
scripts.)
Ganesan R
Honored Contributor

Re: Adding a route hpux 11V3

Hi William,

Manual route add command and netconf entries are ok. it will work.

regarding netmask field in netconf file, This is an optional field. A IP address, subnet mask pair uniquely identifies a subnet to be reached. If a subnet mask is not given, then the system will assign the longest subnet mask of the configured network interfaces to this route. If there is no matching subnet mask, then the system will assign the default network mask as the route's subnet mask.


Best wishes,

Ganesh.
Andrey Chipalyuk
Frequent Advisor

Re: Adding a route hpux 11V3

Change the ROUTE_DESTINATION and ROUTE_MASK:

ROUTE_DESTINATION[1]="net 172.16.180.0"
ROUTE_GATEWAY[1]=172.16.188.2
ROUTE_COUNT[1]=1
ROUTE_MASK[1]=255.255.252.0
ROUTE_ARGS[1]=

Easy way of change the network routes settings is using of smh or sam text user interface. For example, for smh you must try next steps:
SMH-> Networking and Communications-> Network Services Configuration-> Routes