- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can't add a default route.
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
Discussions
Discussions
Forums
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
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
тАО06-15-2001 04:34 PM
тАО06-15-2001 04:34 PM
Iam able to ping to this ipaddress, still iam getting error message
"add net default: gateway 10.99.2.111:Network is unreachable"
can some one explain and help me solve this problem.
Note: I have attached my /etc/rc.config.d/netconf file.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2001 11:57 PM
тАО06-15-2001 11:57 PM
SolutionWhile adding a route to network other than
local, in HPUX 10.20 and above, add a 1 at the
end of the route add cmd.
i.e. route add default 10.99.2.111 1.
Otherwise add the following in your netconf file after your first route destination entry.
ROUTE_DESTINATION[1]=default1
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=10.99.2.111
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
This should solve your problem.
You can add more routes the same way by adding
the nos. within [] brackets.
hope this solves ur problem.
srinivas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2001 04:25 AM
тАО06-16-2001 04:25 AM
Re: Can't add a default route.
I think u should specify ur network IP in place of 1.
Cheers...
Satish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2001 12:49 AM
тАО06-17-2001 12:49 AM
Re: Can't add a default route.
You can't have a default route out of your subnet. I tried the same in my machine & i got the following results.
Config:
ip : 192.9.206.59
sm : 255.255.255.0
gw : 192.9.206.1 (default)
#route add default 192.9.206.10 ( note that the gw is in my subnet)
this command worked , i confirmed with netstat -rn
# route add default 192.9.200.4 (note that now the gw is out of my subnet)
this command gave the same error
"add net default: gateway 192.9.200.4: Network is unreachable"
So what does it mean ?. What i said , the gateway should be in your subnet.
If you can give some more information. I may be able to help you more. what is your ip, subnetmask,gw (current),gw required to add etc.
Good luck,
kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2001 01:03 AM
тАО06-17-2001 01:03 AM
Re: Can't add a default route.
I did not see your attachment.
Can you please send the out put of netstat -rn . You need to have a route to your subnet that is 10.99.2 and the gateway for that should be your interface. If does not exist you can add it by
route add net 10.99.2.0 netmask 255.255.255.0 10.99.2.100 1
Forget my prev post.
kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 02:20 AM
тАО06-18-2001 02:20 AM
Re: Can't add a default route.
Could you solve it ?. What was the prob ?. Do u need any help ?
kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 03:40 AM
тАО06-18-2001 03:40 AM
Re: Can't add a default route.
I think your problem is that you already have
a default route. So I made a test : I try to
configure a second default gateway, and obtain
the same result.
You have 2 solutions :
1) modify your priority (ROUTE_COUNT) and
use 2 gateways : route add default
2) delete the first one to add the new one.
In the 2 cases you need to modify your netconf
or use "set_parms addl_netwrk" to do that.
Herve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 10:43 AM
тАО06-18-2001 10:43 AM
Re: Can't add a default route.
I feel that great with you guys arround to help.
Thanks again.
Soma