HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ROUTE ADD troubleshooting !
Operating System - HP-UX
1829767
Members
6240
Online
109992
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-15-2004 08:46 AM
07-15-2004 08:46 AM
ROUTE ADD troubleshooting !
When I try to add a conection using command
# route add [destination] [gateway] 0
My destination is directly connected to the gateway. The reason of count 0.
Thanks for help.
# route add [destination] [gateway] 0
My destination is directly connected to the gateway. The reason of count 0.
Thanks for help.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 08:55 AM
07-15-2004 08:55 AM
Re: ROUTE ADD troubleshooting !
Are you trying to figure out the reason for hop count of "0" ?
This is how it works
You can add either host route or a network route - a host route is a route to a reach a specific host - a network route is a route to reach a network.
HOP count is based on the number of gateways between your host and the destination.
If the gateway is one of your local IP addresses, then you would have HOP count of 0.
If the gateway is a remote gateway that can be reached by one your lan interfaces then you would increase the HOP count to 1.
If there are more than one gateway between your host and the destination then you would increase the HOP count equal to the number of gateways to pass to reach the destination.
Hope this helps ?
This is how it works
You can add either host route or a network route - a host route is a route to a reach a specific host - a network route is a route to reach a network.
HOP count is based on the number of gateways between your host and the destination.
If the gateway is one of your local IP addresses, then you would have HOP count of 0.
If the gateway is a remote gateway that can be reached by one your lan interfaces then you would increase the HOP count to 1.
If there are more than one gateway between your host and the destination then you would increase the HOP count equal to the number of gateways to pass to reach the destination.
Hope this helps ?
Learn What to do ,How to do and more importantly When to do ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 11:57 AM
07-15-2004 11:57 AM
Re: ROUTE ADD troubleshooting !
The gateway counts as one hop. In fact you always use a 1 when adding a route. That just tells HPUX that the destination is not local. The only time you would use 0 is if you were using proxy arp in which case you put your own IP address in as the gateway. Then HPUX just arps for the MAC of the destination and the local router will reply with his own MAC. This is a bit slower than having a default gateway so isn't used much any more. The only time you might use something other than a 0 or a 1 for the metric is when you are running gated (rip or OSPF routing protocols) then you might want to reflect the actual number of hops to a destination.
Ron
Ron
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP