Operating System - HP-UX
1753373 Members
4956 Online
108792 Solutions
New Discussion юеВ

Route to be added permanently inHPUX server

 
SOLVED
Go to solution
jeevanandham
Frequent Advisor

Route to be added permanently inHPUX server

Dear all, i had a request to add route in my hpux servers

details given below
Destination Network : 172.31.10.0 Mask 255.255.255.0 Gateway : 10.85.65.200 HOP : 1

can anyone help me to do the same

Thanks in Advance
24 REPLIES 24
Steven Schweda
Honored Contributor

Re: Route to be added permanently inHPUX server

> can anyone help me to do the same

Perhaps some of the people who have already
answered questions like this for other
people? A Forum search for keywords like,
say,

add route

should find many previous discussions.
Bill Hassell
Honored Contributor

Re: Route to be added permanently inHPUX server

Edit the file /etc/rc.config.d/netconf. Read the comments, especially about the use of shell arrays to configure each LAN.


Bill Hassell, sysadmin
Redhat
Trusted Contributor

Re: Route to be added permanently inHPUX server

edit /etc/rc.config.d/netconf and add infomation similar to following:

ROUTE_DESTINATION[1]="172.31.10.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="10.85.65.200"

Take care of your instance no.

Hope this will help
P Muralidhar Kini
Honored Contributor

Re: Route to be added permanently inHPUX server

jeevanandham,

* Steps to create/configure Route
http://www.cyberciti.biz/tips/hp-ux-how-do-i-configure-routing-or-add-route.html

* Discussion on a similar topic
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1435356

Hope this helps.

Regards,
Murali
Let There Be Rock - AC/DC
jeevanandham
Frequent Advisor

Re: Route to be added permanently inHPUX server

Dear all thanks for all your valuable comments..

i have added in netconfile as above said..

but in netstat -nr it not showing the route details

when i try to add the same in cmd line

it throwing error as follows

172.31.10.0 Gateway : 10.85.65.200 host is unreachable
AnthonySN
Respected Contributor

Re: Route to be added permanently inHPUX server

post the output of
/sbin/init.d/net start
and the route details from netconf file
jeevanandham
Frequent Advisor

Re: Route to be added permanently inHPUX server

Please let me know. once i have edited the netconf file, with given details ,

wether i need to restart the network services ?
or inetd -c will work..
# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.80.10.91 10.80.10.91 UH 0 lan0 4136
10.0.0.0 10.80.10.91 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 4136
default 10.85.65.125 UG 0 lan0 1500
#
AnthonySN
Respected Contributor

Re: Route to be added permanently inHPUX server

/sbin/init.d/net reads the netconf file
and
so post the error you get by the above command.
jeevanandham
Frequent Advisor

Re: Route to be added permanently inHPUX server

# /sbin/init.d/net
USAGE: /sbin/init.d/net {start_msg | stop_msg | start | stop}

i belive need to give stop /start for restarting the services..

Inetd -c will read the configuration

i have attached my current change details

please find the same in attachment