Operating System - HP-UX
1823945 Members
3258 Online
109667 Solutions
New Discussion юеВ

How to disable a NIC on 11i v3?

 
SOLVED
Go to solution
noldi
Valued Contributor

How to disable a NIC on 11i v3?

Hi,

is there a way to disable an unused NIC (so it doesn't generate warnings in SMH for example)?

I would like to disable unused/unplugged lan1 on an nPar in an rx7640 for examle:

# ioscan -fnkC lan
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 0 1/0/1/1/0/6/0 iether CLAIMED INTERFACE HP AB290-60001 PCI/PCI-X 1000Base-T 2-port U320 SCSI/2-port 1000B-T Combo Adapter
lan 1 1/0/1/1/0/6/1 iether CLAIMED INTERFACE HP AB290-60001 PCI/PCI-X 1000Base-T 2-port U320 SCSI/2-port 1000B-T Combo Adapter
lan 2 1/0/2/1/0 iether CLAIMED INTERFACE HP AD331-60001 PCI/PCI-X 1000Base-T Adapter
lan 3 1/0/6/1/0 iether CLAIMED INTERFACE HP AD331-60001 PCI/PCI-X 1000Base-T Adapter
lan 4 1/0/14/1/0 iether CLAIMED INTERFACE HP AD331-60001 PCI/PCI-X 1000Base-T Adapter

# nwmgr -c lan1

Name/ Interface Station Sub- Interface Related
ClassInstance State Address system Type Interface
============== ========= ============== ======== ============== =========
lan1 DOWN 0x0019BBEB9CF5 iether 1000Base-T


Thanks & best Regards,

Arnold
7 REPLIES 7
SoorajCleris
Honored Contributor

Re: How to disable a NIC on 11i v3?

Hi,

You may remove the device file using 'rmsf' ( not recommended)

This will be effective till your next reboot or next 'insf'.

enjoy..

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Shailendran V Naidu
Frequent Advisor

Re: How to disable a NIC on 11i v3?

-> in sam go to network and communications->interface cards and select your card then Actions->disable



http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=762277
Shailendran V Naidu
Frequent Advisor

Re: How to disable a NIC on 11i v3?

Darn! I forgot that there is no SAM in 11.31.

You must try SMH.


http://www.docs.hp.com/en/5992-4607/ch01s03.html?btnPrev=%AB%A0prev
noldi
Valued Contributor

Re: How to disable a NIC on 11i v3?

SMH doesn't seem to be able to disable NIC's.

Maybe somebody remembers what SAM used to do to disable NIC's?

On the other hand, nwmgr --disable / --delete doesn't work:

# nwmgr --disable -c lan1
ERROR: Unsupported operation: --disable


For detailed help, type 'nwmgr -h [-v] -c lan' or
see the man page: nwmgr_igelan (1M).

Thanks & best Regards,

Arnold
Matti_Kurkela
Honored Contributor
Solution

Re: How to disable a NIC on 11i v3?

To disable lan1:

1.) ifconfig lan1 0.0.0.0
2.) ifconfig lan1 unplumb
3.) remove all configuration lines associated with lan1 from /etc/rc.config.d/netconf.

After this, the only way to disable it any further would be to remove the driver from the kernel. As the driver obviously is used by your other NICs too, removing the driver is not possible.

MK
MK
noldi
Valued Contributor

Re: How to disable a NIC on 11i v3?

Hi Matti,

the interface is unused and never has been enabled, so no unconfiguration possible there (apart from rmsf the NIC device that would solve the problem until the next reboot).

It seems that for monitoring purposes maybe an Ethernet loopback connector would help to neutralize the warnings in SMH/SIM.

Best Regards,

Arnold
Torsten.
Acclaimed Contributor

Re: How to disable a NIC on 11i v3?

This is probably one of the "features" of SMH, an open NIC is painted yellow. :-(

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!