Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change metric on network interface - getting error.

Status
Not open for further replies.

linuxtricks

IS-IT--Management
May 24, 2000
111
0
0
US
I am trying to change the metric on my RedHat Linux 9.0 server so that eth0 has a lower priority than eth0:1.

'man ifconfig' shows this:
metric N
This parameter sets the interface metric.

Everything is set at metric '1' by default.

I tried doing:
/sbin/ifconfig eth0 metric 2

and I get the following error:
SIOCSIFMETRIC: Operation not supported

Can anyone help with 'howto' change the metric on an interface?

Thanks!

---
Try not. Do. Or do not. There is no try.
 

Linux doesn't support the metric value. It's there for compatibility reasons only.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Morsing,

Are you sure about this? Can I get a second opinion by another user here? Why would the Linux 'man' page show how to change the metric if Linux didn't support changing the metric?

sorry. just confused.

---
Try not. Do. Or do not. There is no try.
 

Well, maybe they recently changed it then. Things move fast sometimes :)

Sometimes the man pages are a bit optimistic though.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 

Well, I was sort of right but then again not. It turns out that the *kernel* doesn't use the metric value but you should still be able to set it.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Being able to set the metric value... and have the Linux server ignore the fact that you set the metric value - doesn't sound like it's worth even touching the metric value. :(

oh well.

Thanks for the information! :)

---
Try not. Do. Or do not. There is no try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top