- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Route Add Help
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-09-2004 09:15 AM
02-09-2004 09:15 AM
----------------------
ROUTE_DESTINATION[0]="default"
ROUTE_DESTINATION[1]="10.0.0.0"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="172.16.16.1"
ROUTE_GATEWAY[1]="172.16.16.80"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
-----------------------
I add ROUTE_DESTINATION[1]="10.0.0.0" and ROUTE_GATEWAY[1]="172.16.16.80".
Is these completed? Any entries on route_count, route_args are needed?
Thank you very much,
Steven
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 09:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 09:20 AM
02-09-2004 09:20 AM
Re: Route Add Help
ROUTE_DESTINATION[1]="10.0.0.0"
Its not compatible with the 172 network.
It may work, it just stands out.
For our 10.1 network the default gateway is 10.1.10.1
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 09:23 AM
02-09-2004 09:23 AM
Re: Route Add Help
A default gateway will take care of all the routes unless there is a static route for a particular destination. There will be only one default gateway per system.
I believe you are trying to configure a static gateway. It is better if you configure the routes in a modular way. For ex.,
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="172.16.16.1"
ROUTE_COUNT[0]="1"
The above is the set for default gateway.
ROUTE_DESTINATION[1]="net 10.0.0.0"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="172.16.16.80"
ROUTE_COUNT[1]="1"
Add the word "net" to ROUTE_DESTINATION[1]
The above is the module for the static route to the destination 10.0.0.0. Are you sure you don't want to specify the ROUTE_MASK?. If so, then the default netmask will be taken.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 09:24 AM
02-09-2004 09:24 AM
Re: Route Add Help
First off net routes only need 3 or less octets - like 10.0.0
Second, I assume that 172.16.16.80 is a local IP on this system - correct?
If so then you need a ROUTE_COUNT[1]="0", to denote that the route goes out that NIC.
If NOT, then you need the ROUTE_COUNT[1]="1" - assuming the 172.16.16.80 is a router as well.
But IF your default router is on the same subnet, why do you need a static route? Can't the router handle the route?
Normally static routes are used to get traffic out a secondary NIC other than the NIC that would send to the default router.
Also, personally, I like to keep the route statements separately to make it easiser to see them. Although your way will work.
So I guess you need to tell us just what it is you're trying to do.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 09:33 AM
02-09-2004 09:33 AM
Re: Route Add Help
The default route is 172.16.16.1, while 172.16.16.80 is my newly-addition. 172.16.16.80 is a Ethernet port IP of another FW connected to other company using IPSec. 10.0.0.0 is their lan that I route to.
Therefore, the original netconf portion is:
----------------
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="172.16.16.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
----------------------
New netconf portion is:
******************
ROUTE_DESTINATION[0]="default"
ROUTE_DESTINATION[1]="10.0.0.0"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="172.16.16.1"
ROUTE_GATEWAY[1]="172.16.16.80"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
*******************
I would like to know if I have made any mistake. Some point out I should have "10.0.0", instead of 10.0.0.0. I would like to have someone confirm it also.
Please help further.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 09:56 AM
02-09-2004 09:56 AM
Re: Route Add Help
Your configuration won't work because ROUTE_COUNT[0]="1" is not applicable to your second route. So you will have to have a seperate entry ROUTE_COUNT[1]="1".
Also it doesn't matter if you have the three octets or four octet as 0. Add 'net' to it as I mentioned.
You can also test it by running "/sbin/init.d/net start" command. Once it is run, use the command "netstat -rn" to find out if the route has been added.
-Sri