- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Add static route in HPUX11
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
10-25-2005 06:27 PM
10-25-2005 06:27 PM
I try to add a static route in routing table. This is what I get:
add net 10.73.0.0: gateway 10.73.2.249: Network is unreachable
What did I done wrong?
Both 10.73.0.0 and 10.73.2.249 are able to ping.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2005 06:57 PM
10-25-2005 06:57 PM
Re: Add static route in HPUX11
You need to specified whether the gateway is remote system or local system.
Check the document (docID : 3100418195) about 'Sys Adm: Adding static routes to the network' :
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080079807
Here are examples of route add:
- Route to a subnet/network with the netmask specified, and the
gateway is a remote host:
% route add net 1.2.3.0 netmask 255.255.255.0 1.2.4.11 1
- Route to a subnet/network with the netmask specified, and the
gateway is the localhost itself:
% route add net 1.2.3.0 netmask 255.255.255.0 1.2.4.14 0
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2005 10:38 PM
10-25-2005 10:38 PM
Re: Add static route in HPUX11
#route -p add 10.73.0.0 mask 255.255.255.0 10.73.2.249
whats the result?
Hanwant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2005 11:06 PM
10-25-2005 11:06 PM
Re: Add static route in HPUX11
route add net 10.73.0.0 netmask 255.255.255.0 10.73.2.249 1
If you want this to survive a boot, add it to the /etc/rc.config.d/netconf file, then run '/sbin/init.d/net start' followed by 'netstat -rn' to see that the new route was added.
hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 12:17 AM
10-26-2005 12:17 AM
Re: Add static route in HPUX11
Usage of route add is as:
usage: add destination [netmask mask] gateway [metric]
In your case this should work:
# route add net 10.73.0.0 netmask 255.255.255.0 10.73.2.249 1
Assuming your gateway is 1 hop count from your network and gateway ip is 10.73.2.249
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 12:27 AM
10-26-2005 12:27 AM
Re: Add static route in HPUX11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 12:46 AM
10-26-2005 12:46 AM
SolutionAdd a sequence number to your "route add net" command.
Example:-
--------------
#route add net 155.90.211.128 netmask 255.255.255.192 155.90.117.142 1
edit /etc/rc.config.d/netconf and add the following to make the changes permenent.
ROUTE_DESTINATION[1]="IP"
ROUTE_MASK[1]="NETMASK"
ROUTE_GATEWAY[1]="IP"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
restart network services.
#/sbin/init.d/net stop
#/sbin/init.d/net start
Change the IP addresses according to your setup.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 10:08 AM
10-26-2005 10:08 AM
Re: Add static route in HPUX11
The commend:
route add net 10.73.0.0 netmask 255.255.255.0 10.73.2.249 1
Works...
I will add this in my static table /etc/rc.config.d/netconf
You guys are great!!
John