- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- route add
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
03-03-2005 12:36 AM
03-03-2005 12:36 AM
route add
how can I add a host to my routing table? route add host...and then? The error say network unreachable
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 12:53 AM
03-03-2005 12:53 AM
Re: route add
in route add, you add destination network/host and tell the server how to reach it, by specifing gateway.
If you get an error "network unreachable" it means that you cannot reach that network through the gateway you specified. Check that you have a ping to that gateway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:00 AM
03-03-2005 01:00 AM
Re: route add
Don't forget the metric on the end. I just did this and it worked:
route add stan 10.24.240.1 1
stan is the name of the remote server
10.24.240.1 is the gateway
1 is the metric
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:01 AM
03-03-2005 01:01 AM
Re: route add
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:03 AM
03-03-2005 01:03 AM
Re: route add
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:05 AM
03-03-2005 01:05 AM
Re: route add
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:08 AM
03-03-2005 01:08 AM
Re: route add
thanks
ciao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:09 AM
03-03-2005 01:09 AM
Re: route add
Host A
|
Gateway A
|
|
Gateway B
|
Host B
Host A is on the same network as Gateway A
Host B is on the same network as Gateway B
Gateway A knows which networks are accessible via gateway B
Gateway B knows which networks are accessible via gateway A
There you go - clear as mud! Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:10 AM
03-03-2005 01:10 AM
Re: route add
You need a local gateway. Your host won't know how to get to the remote gateway either.
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:17 AM
03-03-2005 01:17 AM
Re: route add
Myhost (10.24.246.1)
|
Gateway A (10.24.240.1)
|
|
Gateway B (193.128.202.200)
|
stan (193.128.202.111)
The importance here is that both gateways are aware of the networks they both have access to (either immediately connected, or through other gateways). If you set the route and still can't ping, check the routers.
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:25 AM
03-03-2005 01:25 AM
Re: route add
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:29 AM
03-03-2005 01:29 AM
Re: route add
I think you should consult you network team, so they can tell you if i's possible to reach that network from yours.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:34 AM
03-03-2005 01:34 AM
Re: route add
traceroute remotehost_ip
This will show you how far you are getting.
You can always Ctrl-C it if it hangs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:36 AM
03-03-2005 01:36 AM
Re: route add
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:40 AM
03-03-2005 01:40 AM
Re: route add
As long as you have added the local gateway to the route add command, make sure with your network team that the gateway (assumed to be a network router) can reach the remote site.
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:41 AM
03-03-2005 01:41 AM
Re: route add
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:43 AM
03-03-2005 01:43 AM
Re: route add
What is the actual output of the traceroute command though?
Does it get somewhere before it gives up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:58 AM
03-03-2005 01:58 AM
Re: route add
route add host "remote_ip" "my_default_gw" 1
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 07:00 AM
03-03-2005 07:00 AM
Re: route add
Get someone at the target to run a traceroute back to you and see what happens. They probably need to add a route at that end.
You will need to modify /etc/rc.config.d/netconf in order to keep the route. Otherwise it will vanish at the next reboot.
ROUTE_DESTINATION[n]="network_address"
ROUTE_GATEWAY[n]="gateway_address"
ROUTE_COUNT[n]="1"
n is just the next available integer and has nothing to do with the interface number.
If the route works for about three minutes then stops working your gateway is not responding to pings and you will need to either have the gateway admin allow it to respond to your pings or turn off dead gateway detection with ndd.
Ron