LAN Routing
1753782 Members
7233 Online
108799 Solutions
New Discussion

Re: Metric - Help adding metric to ip route command

 
CarlDavisJr
Occasional Collector

Metric - Help adding metric to ip route command

I am working on a Procurve 5406zl.

 

I am adding static routes but having trouble when setting a metric.

 

This command works:

 

ip route 192.168.0.0./24 192.168.75.1

 

But if I try and add a metric it fails.  What is the probber command to include a metric value?

 

ip route 192.168.0.0/24 192.168.75.1 metric 2 = FAIL

 

Hope some one can help.

 

CD-Jr

1 REPLY 1
manuel.bitzi
Trusted Contributor

Re: Metric - Help adding metric to ip route command

ip route 192.168.0.0/24 192.168.75.1 pref 2

 

I'm not sure, but try it.

 

br

Manuel

H3CSE, MASE Network Infrastructure [2011], Switzerland