- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- add route in netconf
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
07-13-2007 03:38 AM
07-13-2007 03:38 AM
I'm configuring the permanenet route in netconf file:
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.35.2.18"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_DESTINATION[1]="10.35.66.0"
ROUTE_MASK[1]="255.255.255.224"
ROUTE_GATEWAY[1]="10.35.2.18"
but I have get the following error:
ERROR: Failed to add route entry because its interface is not
yet initialized. May need to add this route entry with
a route commad after the interface is up :
netmask: bad value
Can you help me ??
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2007 05:02 AM
07-13-2007 05:02 AM
Re: add route in netconf
seeing this route configuration
>>
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.35.2.18"
<<
I guess you've configured a class-A network and so route destinations internal to your native network are of no use.
Like I said: just a guess.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2007 06:06 AM
07-13-2007 06:06 AM
Re: add route in netconf
Your default route is already set to: 10.35.2.18
So why add it to the permanent route?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2007 07:32 AM
07-13-2007 07:32 AM
Re: add route in netconf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2007 07:54 AM
07-13-2007 07:54 AM
Re: add route in netconf
ROUTE_DESTINATION[1]="10.35.66.0"
ROUTE_MASK[1]="255.255.255.224"
ROUTE_GATEWAY[1]="10.35.2.18"
you should be fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2007 08:33 AM
07-13-2007 08:33 AM
Re: add route in netconf
The message "netmask: bad value" may be referring to the SUBNET_MASK[x] parameter for the interface configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2007 07:53 PM
07-13-2007 07:53 PM
Re: add route in netconf
If you don't specify it, the count is assumed to be 0 i.e. the "gateway" is supposed to be one of the machine's local NICs. This is an old quirk of HP-UX.
As others have noted, adding a permanent route with a gateway that is the same as your default gateway is usually worthless.
The general idea of the route specifications is like "to access ROUTE_DESTINATION, send to ROUTE_GATEWAY and let it handle the rest". The default gateway is always used if the destination is not directly reachable using the machine's local interfaces and there isn't any route definition that would apply more specifically.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2007 06:05 AM
07-15-2007 06:05 AM
Re: add route in netconf
My address is 10.35.2.22 and my gateway is 10.35.2.18.
The problem is that this gateway is not will be permanent and I have to reacheble the machine trough the static route.
I have to add route for 3 network always for the same gateway 10.35.2.18.
I added the route by command line:
route add 10.35.66.0 10.35.2.18 255.255.255.224
..and this works fine.
But if reboot the machine I loss my static route....
thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2007 07:01 AM
07-15-2007 07:01 AM
Re: add route in netconf
Can you send your /etc/rc.config.d/netconf file
Best Regards
Murat
HP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2007 03:30 PM
07-15-2007 03:30 PM
Re: add route in netconf
# cat /etc/rc.config.d/netconf
# netstat -rn
The problem might go away if you put in the "net" keyword and the route count equal to 1 (since this is a route thru a remote gateway) as in:
# route add net 10.35.66.0 255.255.255.224 10.35.2.18 1
~hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2007 10:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 12:56 AM
07-24-2007 12:56 AM
Re: add route in netconf
I configured my netconf :
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.35.2.18"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_DESTINATION[1]="net 10.35.66.48"
ROUTE_MASK[1]="255.255.255.240"
ROUTE_GATEWAY[1]="10.35.2.18"
ROUTE_DESTINATION[2]="net 10.35.66.0"
ROUTE_MASK[2]="255.255.255.224"
ROUTE_GATEWAY[2]="10.35.2.18"
ROUTE_DESTINATION[3]="net 10.35.7.0"
ROUTE_MASK[3]="255.255.255.240"
ROUTE_GATEWAY[3]="10.35.2.18"
It works fine.