System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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
Bhadresh
Trusted Contributor
Solution

Re: Route to be added permanently inHPUX server

* Steps to Configure routes:
http://docs.hp.com/en/B2355-90685/ch02s03.html#bcfdebbg

* Discussion on a similar topic:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1277190718560+28353475&threadId=998591

After edit netconf file you have to restart the network.

# /sbin/init.d/net stop

# /sbin/init.d/net start

Regards,
Bhadresh
AnthonySN
Respected Contributor

Re: Route to be added permanently inHPUX server

the entries should be as below.

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

also the command is
/sbin/init.d/net start as mentioned in my previos post.
AnthonySN
Respected Contributor

Re: Route to be added permanently inHPUX server

are you able to configure the route?
jeevanandham
Frequent Advisor

Re: Route to be added permanently inHPUX server

i have made the changes accordingly as you stated , but i have not given the /shin/init.d/net start .. means why we need to start the net services.. as that is already is in running state...?

i have used this cmd for adding the route.

#route add net 172.31.10.0 netmask 255.255.255.0 10.85.65.200

which throws error as

network and gateway is unreachable..

as i checked with network team

they suggested to add the matric on the same



can you please give me the command where to add the matric and how ?

will be helpful for me ....
Steven Schweda
Honored Contributor

Re: Route to be added permanently inHPUX server

> #route add net 172.31.10.0 netmask 255.255.255.0 10.85.65.200

> network and gateway is unreachable..

What is the IP address (and netmask) of every
interface on this system?

You have told your system that it should use
10.85.65.200 as a gateway, but, apparently,
it does not know how to get to 10.85.65.200.

"route add" does not add any new wires to
your network.

> [...] i checked with network team [...]

If you have a "network team", then someone on
it should be able to explain what's wrong
here.
AnthonySN
Respected Contributor

Re: Route to be added permanently inHPUX server

route add net 172.31.10.0 netmask 255.255.255.0 10.85.65.200 1
Steven Schweda
Honored Contributor

Re: Route to be added permanently inHPUX server

> If you have a "network team", then someone on
> it should be able to explain what's wrong
> here.

Of course, I could be wrong.

> they suggested to add the matric on the same

It's not obvious to me how adding a metric
would make the unreachable reachable, but
"man route" should explain how to specify one.
jeevanandham
Frequent Advisor

Re: Route to be added permanently inHPUX server

DEAR SASJ,

Thanks for your valuable help, i have added the following route by the above command,

now can see the route details in netstat -rn

# 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
172.31.10.0 10.85.65.200 UG 0 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 4136
default 10.85.65.125 UG 0 lan0 1500


can please help me how to make this as permanent, as because when server reboot this config may loose..

is my previous /netconfile editing is ok ?
AnthonySN
Respected Contributor

Re: Route to be added permanently inHPUX server

add these lines in your netconf file

ROUTE_DESTINATION[1]="172.31.10.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="10.85.65.200"
ROUTE_COUNT[1]=""
ROUTE_ARGS[1]=""
jeevanandham
Frequent Advisor

Re: Route to be added permanently inHPUX server

I have already added those details, in netconfile .. is there anything need to be done ?
i have executed
#inetd -c -- for reading the configuration.

how to check wether it added permanently or not ?
jeevanandham
Frequent Advisor

Re: Route to be added permanently inHPUX server

Dear SASJ,

can you please help me out to complete the same...
AnthonySN
Respected Contributor

Re: Route to be added permanently inHPUX server

>>how to check wether it added permanently or not ?

if the command /sbin/init.d/net start doesnt error means you are right.
other way is to restart the server and
check the output of netstat -rn
jeevanandham
Frequent Advisor

Re: Route to be added permanently inHPUX server

Dear SASJ,
please find my 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
172.31.10.0 10.85.65.200 UG 0 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 4136
default 10.85.65.125 UG 0 lan0 1500


it is showing my newly added route details

/sbin/init/net start will do any impact ?
jeevanandham
Frequent Advisor

Re: Route to be added permanently inHPUX server

DEAR SASJ,

My Change Completed successfully,

Thanks for your valuable inputs and helping me.. in completing the change..

my everything is working fine
jeevanandham
Frequent Advisor

Re: Route to be added permanently inHPUX server

i have completed the Rote add successfully. now it is working fine

Thanks a lot SASJ.............