Operating System - HP-UX
1820481 Members
2458 Online
109624 Solutions
New Discussion юеВ

how to check & change the "metric" of NIC

 
praveen..
Super Advisor

how to check & change the "metric" of NIC

Hi,
I need the -mstragent- as well as all ECC traffic to be going out the primary NIC card only. No ECC communication can go out the secondary NIC because ECC will not be able to get it do to rules and constraints.

should i change the -metric- of my secondary NIC?
if yes, how to check the -metric- value and how to change it for secondary NIC.

I need my OS to always choose the primary NIC unless the primary NIC fails, then it will use the secondary NIC.

Please suggest.
My both NIC are on same subnet.
and we cann't make offline to anyone.

Thanks
5 REPLIES 5
RAC_1
Honored Contributor

Re: how to check & change the "metric" of NIC

I think you posted similar post a while back. you have both nics on same submet, which is not supported on hp-ux. So un less you correct that, you can not do what you want. Another option is put a IPFilter rpoduct. (Which will require you to climb steep learning curve..)
There is no substitute to HARDWORK
Ninad_1
Honored Contributor

Re: how to check & change the "metric" of NIC

Praveen,

Do you intend to manually change to secondary if 1st NIC fails or through some scripts - then possible way would be to keep the 2nd NIC interface down, if the primary NIC fails - make the primary down and secondary interface up. If this serves your purpose.
I guess there is some software which can configure a standby lan card to switch over to it if primary fails - I am not too sure on this.

Ninad
praveen..
Super Advisor

Re: how to check & change the "metric" of NIC

Hi Friends,
I need to change the -metric- of my secodary NIC,
i dont care that both the LAN Card are in same network.

I have to check & change the -metric- of secondary NIC,

Please suggest how to check and change the -metric- of secondary NIC.

Thanks
A. Clay Stephenson
Acclaimed Contributor

Re: how to check & change the "metric" of NIC

Well, if all you want to do is change the metric then:

ifconfig lan1 inet 197.197.192.7 metric 2
substituting your interface for lan1 and your ip address for 197.197.192.7.

To check it:
ifconfig lan1 inet (if metric = 0, the default), no metric value will be listed.

Man ifconfig for details.

NOTE: These are the instructions for changing the metric; that does not mean that the behavior will be as you wish because multiple cards on the same subnet (except under APA) is not supported.
If it ain't broke, I can fix that.
rick jones
Honored Contributor

Re: how to check & change the "metric" of NIC

Just a side note, I've been told that setting ip_strong_es_model to one or to two (aka "firm_es_model - use source IP for route selection, but still accept datagrams for any local IP on any interface is actually "supported"
there is no rest for the wicked yet the virtuous have no pillows