- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Significance of metric in route add command
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
07-03-2012 07:58 AM
07-03-2012 07:58 AM
Significance of metric in route add command
Hi All
I had basic query in route add command:
route add -p 192.168.100.0 mask 255.255.255.0 192.168.6.12 metric 1
What is an significance of metric in route add command, sometime it is 0 and sometimes it is 1, sometimes we are not mentioninig,
Any suggestion would be highly appreciable,
Regards
Indrajit Bhagat
- Tags:
- route
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2012 08:20 AM
07-03-2012 08:20 AM
Re: Significance of metric in route add command
From the route man page. I think 'metric' is the same as the count in the command:
count
An integer that indicates whether the gateway is a remote host or the local host. If the route leads to a destination through a remote gateway, count should be a number greater than 0. If the route leads to destination and the gateway is the local host, count should be 0. The default for count is zero. The result is not defined if count is negative.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2012 08:30 PM
07-03-2012 08:30 PM
Re: Significance of metric in route add command
Hi Thanks for your suggestion. Any other suggestion would be appreciable
Regards
Indrajit Bhagat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2012 08:59 PM
07-03-2012 08:59 PM
Re: Significance of metric in route add command
From the Linux 'info route' command:
Metric
The 'distance' to the target (usually counted in hops). It is not used by recent kernels, but may be needed by routing daemons.
Links from Google:
Search string -- what is the metric option in route command
http://linux.about.com/od/commands/l/blcmdl8_route.htm
http://tldp.org/LDP/nag/node32.html
http://www.inetdaemon.com/tutorials/internet/ip/routing/metrics.shtml
There are numerous others, but you should be able to find a lot more via Google.