Operating System - HP-UX
1758840 Members
3065 Online
108876 Solutions
New Discussion юеВ

faulty lan0 disable procedure

 
SOLVED
Go to solution
Martin Napoli_1
Occasional Advisor

faulty lan0 disable procedure

Hi all,

I have an B180L which on-board ether port is faulty.
Unfortunatelly I have an application that uses both lan0 and lan1 and does not allow the use of other lan interface.
I would like to know if there is any way to 'delete' on-board lan and set two pci ether card as lan0 and lan1 ..or simply modify the lan# of the current installed cards.

Any suggestion are welcome!

Thanks in advance.

Best regards,
Martin


some info:

# lanscan
Hardware Station Crd Hardware Net-Interface NM MAC HP DLPI Mjr
Path Address In# State NameUnit State ID Type Support Num
8/0/1/0 0x00306E05CF55 1 UP lan1 UP 4 ETHER Yes 130
8/0/2/0 0x0012799D94C4 2 UP lan2 UP 5 ETHER Yes 130
8/0/20/0 0x0030D300AF56 0 UP lan0 DOWN 6 ETHER Yes 75
# ioscan -fnC lan
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
lan 1 8/0/1/0 btlan5 CLAIMED INTERFACE PCI(10110019) -- 1
lan 2 8/0/2/0 btlan5 CLAIMED INTERFACE PCI(10110019) -- 2
lan 0 8/0/20/0 btlan3 CLAIMED INTERFACE PCI(10110019) -- Built-in #3
/dev/ether0 /dev/lan0
4 REPLIES 4
IT_2007
Honored Contributor

Re: faulty lan0 disable procedure

I don't think you can modify lan instance numbers. Either you change faulty on-board lan0 or change your configuration in application to use lan1 and lan2.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: faulty lan0 disable procedure

You can reorder the LAN instance numbers:



ioscan -f | grep -e "INTERFACE" -e "DEVICE" | grep -v -i "target" | awk '{printf("%-20.20s %-12.12s %3d\n",$3,$1,($2 + 0))}' > /myfile

Using vi, edit /myfile and change the lan instances as you wish but make sure than no instance numbers are duplicated.

mv /stand/ioconfig /stand/ioconfig.safe
mv /etc/ioconfig /etc/ioconfig.safe
shutdown -r -y 0

The system will stop the reboot at the ioinitrc prompt because of the missing files:
Issue this command:
/sbin/ioinit -c
/sbin/ioinit -f /myfile -r

You may get warnings like "input identical to kernel" -- these are normal and expected and may be safely ignored. The "-r" triggers a reboot.

You lan configurations should be correct now. Man ioinit for details. This same procedure can also be used to change disk controller instances as well but use this with caution.
If it ain't broke, I can fix that.
Martin Napoli_1
Occasional Advisor

Re: faulty lan0 disable procedure

Guys, Thanks a lot for your help!!
Clay, procedure worked as you predicted!
Best regards,
Martin
Martin Napoli_1
Occasional Advisor

Re: faulty lan0 disable procedure

Solution found!