- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- default router
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
01-18-2002 02:15 PM
01-18-2002 02:15 PM
how do i fix it so the machine remembers the default path and not just the netconf file?
thanx in advance
-Josh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 02:23 PM
01-18-2002 02:23 PM
Re: default router
Below is an example of a /etc/rc.config.d/netconf file.
The netconf file has the lines:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]="255.255.0.0"
ROUTE_GATEWAY[0]="185.16.0.1"
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
Is there any problem with the syntax, or something? This is EXACTLY what's there, and make sure that your subnet mask is correct.
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 02:24 PM
01-18-2002 02:24 PM
Re: default router
Just a hunch. Do you have a copy of netconf in /etc/rc.config.d? If so, it may be getting sourced by /etc/rc.config (which is called by /etc/rc when changing run level). If it is, it may be sourced after the real netconf so that your settings are not what you expect.
As a general rule, place your copies of /etc/rc.config.d files somewhere else.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 02:27 PM
01-18-2002 02:27 PM
SolutionROUTE_GATEWAY[0]=10.1.1.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[0]=default
and the [0] matches the ip and hostname
then netstat -nr to check the routing table
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 29589 lo0 4136
10.1.1.1 10.1.1.1 UH 0 4653375 lan0 4136
10.1.1.0 10.1.1.2 U 2 0 lan0 1500
127.0.0.0 127.0.0.1 U 0 0 lo0 4136
default 10.1.1.1 UG 0 0 lan0 1500
If you have a default route in there your routing table is ok.
if not
route add default netmask 255.255.255.0 10.1.1.1 1
This is all you need to know about default gateways, there is no /etc/defaultrouter file like in Sun.
However, if you are using 11.x there is a bug called the dead gateway detection problem where if you can't ping the gateway, then it goes dead and you can't route out, which seems like you have lost your default route. However, if it is in your routing table, you really did not loose it.
There are some ndd patches to fix this or you can have your network admin allow icmp traffic from your hp box to fix this problem.
Hopefully I have covered it.
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 02:28 PM
01-18-2002 02:28 PM
Re: default router
/etc/rc.log file when the system starts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 03:29 PM
01-21-2002 03:29 PM
Re: default router
Good Luck
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2002 07:09 AM
01-31-2002 07:09 AM
Re: default router
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=gw.net.brandeis.edu
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
# Dynamic routing daemon configuration. See gated(1m)
#
# GATED: Set to 1 to start gated daemon.
# GATED_ARGS: Arguments to the gated daemon.
GATED=0
GATED_ARGS=""
#
# Router Discover Protocol daemon configuration. See rdpd(1m)
#
# RDPD: Set to 1 to start rdpd daemon
#
RDPD=0
#
# Reverse Address Resolution Protocol daemon configuration. See rarpd(1m)
#
# RARPD: Set to 1 to start rarpd daemon
#
RARPD=0
IP_ADDRESS[0]=129.64.5.249
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=129.64.5.255
LANCONFIG_ARGS[0]="ether"
and here's the file i replace it with before accessing it in the start up scripts:
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=gw.net.brandeis.edu
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
# Dynamic routing daemon configuration. See gated(1m)
#
# GATED: Set to 1 to start gated daemon.
# GATED_ARGS: Arguments to the gated daemon.
GATED=0
GATED_ARGS=""
#
# Router Discover Protocol daemon configuration. See rdpd(1m)
#
# RDPD: Set to 1 to start rdpd daemon
#
RDPD=0
#
# Reverse Address Resolution Protocol daemon configuration. See rarpd(1m)
#
# RARPD: Set to 1 to start rarpd daemon
#
RARPD=0
IP_ADDRESS[0]=129.64.5.249
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=129.64.5.255
LANCONFIG_ARGS[0]="ether"
if i understnad this correctly, what i need to do is change the line:
ROUTE_MASK[0]=""
to:
ROUTE_MASK[0]="255.255.255.0"
and the line:
ROUTE_GATEWAY[0]=gw.net.brandeis.edu
to:
ROUTE_GATEWAY[0]="129.64.5.1"
i'm going to try that and see if it keeps the default router.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2002 09:19 AM
01-31-2002 09:19 AM
Re: default router
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2002 09:44 AM
01-31-2002 09:44 AM
Re: default router
however this time it did state that it created an error reported in the log file.
the only thing i see related to the gateway is complaints from when it read "gw.net.brandeis.edu" being a bad value.
-Josh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2002 10:22 AM
01-31-2002 10:22 AM
Re: default router
Good Luck.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2002 02:23 PM
01-31-2002 02:23 PM
Re: default router
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2002 01:32 PM
02-01-2002 01:32 PM
Re: default router
January 18, 2002 22:24 PM GMT
-----------------------------------------------Hi Josh,
Just a hunch. Do you have a copy of netconf in /etc/rc.config.d? If so, it may be getting sourced by /etc/rc.config (which is called by /etc/rc when changing run level). If it is, it may be sourced after the real netconf so that your settings are not what you expect.
As a general rule, place your copies of /etc/rc.config.d files somewhere else.
Darrell
-----------------------------------------------
it's set up so that anywhere a startup script calls it, the script first has it copy the correct file over to netconf. (cp /etc/rc.config.d/netconf.orig /etc/rc.config.d/netconf )
-----------------------------------------------
Craig Rants-
thanx. that didn't fix it but it let me catch a few other problems that were occuring and now seem to be resovled.
after i get this one fixed is when i'm going to give you points for that because it definitely deserves a ten since it allowed me to catch other problems
-----------------------------------------------
Steve Labar
January 21, 2002 23:29 PM GMT
-----------------------------------------------If the syntax of your netconf file is correct, have you verified that the subnet mask of your interface and the subnet mask of your gateway are the same and the addresses of each are in the same subnet?
Good Luck
Steve
-----------------------------------------------
yes i have. i know they are on the same subnet, etc. it used to have the old ips in that file (the problem i caught because of craig which was why it wouldn't talk to the backup server)
that was fixed and it is still having the problem
-----------------------------------------------
Ron Esterman
January 31, 2002 17:19 PM GMT
-----------------------------------------------
I think you need to change your gateway entry from gw.net.bradeis.edu to the hardcoded IP address of it ( providing that it is your router on the same subnet of your hosts IP.)
-----------------------------------------------
that's been done and it is still losing it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 07:57 AM
02-04-2002 07:57 AM
Re: default router
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 08:30 AM
02-04-2002 08:30 AM
Re: default router
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 09:10 AM
02-04-2002 09:10 AM
Re: default router
In the following stanza you have misspelled LANCONFIG. You also specify instance number [2] which does not have an interface associated with it. Also DHCP_ENABLE is associated with [2]. I presume you mean for both of them to apply to lan0 thus they should be [0].
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=129.64.5.249
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=129.64.5.255
LANCOFIG_ARGS[2]=ether
DHCP_ENABLE[2]=0
The following stanza repeats entries from the above stanza. You need to delete one stanza or the other. Even if they are the same, it's not good practice to have it repeated.
IP_ADDRESS[0]=129.64.5.249
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=129.64.5.255
LANCONFIG_ARGS[0]="ether"
In the following stanza you misspell ROUTE_GATEWAY.
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUT_GATEWAY[0]="129.64.5.1"
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
You also specify ROUTE_GATEWAY again as below. Delete the one you don't want. If the first, be sure to correct the spelling.
ROUTE_GATEWAY[0]=gw.net.brandeis.edu
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 09:19 AM
02-04-2002 09:19 AM
Re: default router
Why are you playing games with netconf? I have no idea what you could want to accomplish by overlaying netconf with a saved version.
Why are you editing /sbin/auto_parms? /sbin contains system "stuff" that shouldn't be changed.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 09:36 AM
02-04-2002 09:36 AM
Re: default router
You should NEVER have a backup of any of the /etc/rc.config.d configuration files in /etc/rc.config.d.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 11:13 AM
02-05-2002 11:13 AM
Re: default router
February 04, 2002 17:19 PM GMT
--------------------------------------------------------------------------------
Josh, there's 2 things I don't understand...
Why are you playing games with netconf? I have no idea what you could want to accomplish by overlaying netconf with a saved version.
Why are you editing /sbin/auto_parms? /sbin contains system "stuff" that shouldn't be changed.
Darrell
----------------------------------------------
because i'm trying to get it to stop losing the default gateway.
and to the person who noted the [2] appearence, this machine used to have three network interfaces. we're now only using the build in interface.
i'm going to fix the problems pointed out, move the backup file and report back.
-Josh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 12:20 PM
02-05-2002 12:20 PM
Re: default router
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 12:22 PM
02-05-2002 12:22 PM
Re: default router
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]="255.255.255.0"
ROUTE_GATEWAY[0]="129.64.5.1"
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
look like this:
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=255.255.255.0
ROUTE_GATEWAY[0]=129.64.5.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
what would that change do? in it's current state with the quotes it doens't keep the information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 12:25 PM
02-05-2002 12:25 PM
Re: default router
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 12:25 PM
02-05-2002 12:25 PM
Re: default router
I don't know that it matters (I don't use this arg myself) but you still have a typo:
LANCOFIG_ARGS[0]=ether
I presume you want:
LANCONFIG_ARGS[0]=ether
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 12:48 PM
02-05-2002 12:48 PM
Re: default router
The quotes are used only if there is a space in the variable assigned.
In your case on qoutes are needed.
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 12:54 PM
02-05-2002 12:54 PM
Re: default router
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 01:10 PM
02-05-2002 01:10 PM
Re: default router
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]="255.255.255.0"
ROUTE_GATEWAY[0]="129.64.5.1"
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
look like this:
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=255.255.255.0
ROUTE_GATEWAY[0]=129.64.5.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
Actually I think it should look like this:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=129.64.5.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
Default shouldn't have a mask and doesn't need quotes tho it doesn't hurt if they are there. I have four 10.20's without quotes and an 11.0 with quotes.
Ron