- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- default gateway lost after each reboot.. how can i...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 09:21 AM
02-14-2006 09:21 AM
i just rebuilt a b132l+ hpux workstation.
after coming up i could only ping what was on this host's subnet. did add route default gatewayipaddy 1 and could ping all we have and could be pinged. after each reboot i have to do the add route command again.. all is set up in the netconf file just fine.. any ideas anyone?
thanks,
mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 09:24 AM
02-14-2006 09:24 AM
SolutionModify the line like this:
ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=192.192.1.1
Where ROUTE_GATEWAY is the ip address of your gateway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 09:26 AM
02-14-2006 09:26 AM
Re: default gateway lost after each reboot.. how can i correct
The file is an exact copy from the old system and all was ok there... It's got me stumped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 09:34 AM
02-14-2006 09:34 AM
Re: default gateway lost after each reboot.. how can i correct
INTERFACE_NAME[0]="lan0"
or is it
INTERFACE_NAME[1]="lan0"
then the mask and gateway also have to be instance [1]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 09:35 AM
02-14-2006 09:35 AM
Re: default gateway lost after each reboot.. how can i correct
In addition to the ROUTE_DESTINATION and ROUTE_GATEWAY specification, declare:
# ROUTE_COUNT[n]=1
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 09:38 AM
02-14-2006 09:38 AM
Re: default gateway lost after each reboot.. how can i correct
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=10.8.197.28
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=10.8.197.255
LANCONFIG_ARGS[0]="ether"
DHCP_ENABLE[0]=0
ROUTE_DESTINATION[0]=""
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=10.8.197.1
ROUTE_COUNT[0]=""
ROUTE_ARGS[0]=""
and here's the lanscan
lanscan
Hardware Station Crd Hardware Net-Interface NM MAC HP DLPI Mjr
Path Address In# State NameUnit State ID Type Support Num
8/0/20/0 0x0060B0EBBB3A 0 UP lan0 UP 4 ETHER Yes 115
Let me know if you think of anything else i can try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 09:43 AM
02-14-2006 09:43 AM
Re: default gateway lost after each reboot.. how can i correct
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 09:43 AM
02-14-2006 09:43 AM
Re: default gateway lost after each reboot.. how can i correct
i'm trying the 1 in the route count area now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 09:56 AM
02-14-2006 09:56 AM
Re: default gateway lost after each reboot.. how can i correct
Log looks ok.
Just rebooted box.. here is what i get from netstat -r immediately after reboot
netstat -r
# uting tables
Destination Gateway Flags Refs Use Interface Pmtu PmtuTime
fifrux27.ipaper.com
localhost UH 36 7679 lo0 4608
localhost localhost UH 0 68 lo0 4608
10.8.197 fifrux27.ipaper.com
U 0 94 lan0 1500
here's what i have after doing the route add command
route add default 10.8.197.1 1
netstat -r
# uting tables
Destination Gateway Flags Refs Use Interface Pmtu PmtuTime
fifrux27.ipaper.com
localhost UH 36 7679 lo0 4608
localhost localhost UH 0 68 lo0 4608
default 10.8.197.1 UG 1 125 lan0 1500
10.8.197 fifrux27.ipaper.com
U 0 94 lan0 1500
#
For more info. This is a brandnew box b132l+, i'm replacing an old b132l+, all is on vg00 on this box.. used the make_recovery from the old box and booted off of it on the new box.
Any ideas what may be going on?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 10:32 AM
02-14-2006 10:32 AM
Re: default gateway lost after each reboot.. how can i correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 12:44 PM
02-14-2006 12:44 PM
Re: default gateway lost after each reboot.. how can i correct
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 01:03 PM
02-14-2006 01:03 PM
Re: default gateway lost after each reboot.. how can i correct
Open and edit it as
ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=10.0.0.1 #IP of your GW
save it!
At the Next reboot this will take effected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2006 02:48 PM
02-14-2006 02:48 PM
Re: default gateway lost after each reboot.. how can i correct
I hope this will resolve ur issue.
/etc/rc.config.d/netconf looks like this:
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=10.8.197.28
SUBNET_MASK[0]=255.255.255.0
ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=10.8.197.1
ROUTE_COUNT[0]=1
GATED=1
The /etc/gated.conf looks like this:
rip yes ;
static { default gateway 160.183.22.251 preference 150 retain ; } ;
Regards
DJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2006 01:51 AM
02-15-2006 01:51 AM
Re: default gateway lost after each reboot.. how can i correct
The netconf file has all the ip addresses for system and gateway just like the other box did. This netconf worked fine on the old box. Thinking maybe it got corrupted or something I created a new one.. Reboot and I have to add the gateway manually .
Could there be another file someplace that I need to recreate?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2006 02:25 AM
02-15-2006 02:25 AM
Re: default gateway lost after each reboot.. how can i correct
I suggested this in your other thread - the one that just got removed!!
Check to make sure that you don't have any extraneous files in your rc.config.d directory, like netconf.bak or netconf.orig, for example. These can get parsed after the real file and overlay same.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2006 02:59 AM
02-15-2006 02:59 AM
Re: default gateway lost after each reboot.. how can i correct
With regard to how the '/etc/rc.config.d' directory is processed, it is true that any file therein is a candidate for processing with the *exception* that you *can* have backup copies of files that are *not* processed.
When '/sbin/rc' runs, the '/etc/rc.config.d' directory is examined by the script '/etc/rc.config'. This script skips any file basename name that is replicated with an "extension" that begins with the characters [.,~#].
Thus, it is permissible to have 'netconf' and 'netconf.old'. The '.old' backup will *not* be processed.
If, however, you had kept an old version of your 'netconf' file named as, 'oldnetconf', then *both* 'netconf' and 'oldnetconf' would be sourced. Since the letter "o" follows "n", the result would be undesirable insofar as the last variable declarations seen would be from the wrong file.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2006 03:20 AM
02-15-2006 03:20 AM
Re: default gateway lost after each reboot.. how can i correct
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2006 03:46 AM
02-15-2006 03:46 AM
Re: default gateway lost after each reboot.. how can i correct
I have netconf, netconf.old, netconf.113 in my /etc/rc.config.d directory. And it worked fine on the old box. I think on all my unix boxes I have some old copies and all works ok.. I even took out all of them but the one netconf and got the same deal.. no default gateway after rreboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2006 07:34 AM
02-15-2006 07:34 AM
Re: default gateway lost after each reboot.. how can i correct
i put echo statements from top to bottom.
did /sbin/init.d/net start and it read the netconf file and gave me all the echo statements..
so we're reading the file and all it's contents.. it's just not keeping that addy for the gateway
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2006 09:33 AM
02-15-2006 09:33 AM
Re: default gateway lost after each reboot.. how can i correct
set -x
and then reboot. A complete trace of the script will then be stored in rc.log. That should reveal what is happening. Pay particular attention to the route statements. If multiple commands are run, it means that the array has multiple entries.
Bill Hassell, sysadmin