Operating System - HP-UX
1752650 Members
5507 Online
108788 Solutions
New Discussion юеВ

Route disappear after restart HP-Unix

 
Doantien
Occasional Contributor

Route disappear after restart HP-Unix

Hi all!!
Now, I have just installed HP-Unix on rp3440, and I add route for it by:
route add net 192.168.1.0 netmask 255.255.255.0 10.1.254.248 1

And I is running very good, but after I restart HP-Unix, Route disappear.
Plz give me your solutions for permanence route, dont disappear route after restarting HP-Unix.
3 REPLIES 3
Enrico P.
Honored Contributor

Re: Route disappear after restart HP-Unix

Hi,
you need to add the follow lines in the /etc/rc.config.d/netconf file:

ROUTE_DESTINATION[1]="net 192.168.1.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="10.1.254.248"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""

then restart the net services:

/sbin/init.d/net stop
/sbin/init.d/net start

Enrico
nishith
Frequent Advisor

Re: Route disappear after restart HP-Unix

hi Doantien!!

Inorder to make the routes permanent, you have to add/ change the entry in /etc/rc.config.d/netconf file as mentioned below.

ROUTE_DESTINATION[0]=
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=""
ROUTE_COUNT[0]=""

Values:

ROUTE_DESTINATION: Destination hostname (in /etc/hosts) or host or network IP address in decimal-dot notation, preceded by the word "host" or "net"; or simply the word "default".


regds,

nishith
Steven E. Protter
Exalted Contributor

Re: Route disappear after restart HP-Unix

Shalom,

Check permanent settings in /etc/rc.config.d/netconf

I bet something is missing.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com