Operating System - HP-UX
1834828 Members
2322 Online
110070 Solutions
New Discussion

/dev/lan0 file changing on reboot

 
David R Gallup
Occasional Advisor

/dev/lan0 file changing on reboot

My C160 has 2 ethernet interfaces, the built in 10 mbs nic and a 100 mbs add in card. The 10 mbs nic is not connected to anything, but I need it to give the cpu ID for several license managers (flexlm, etc). These read /dev/lan0. When the system boots, it makes a new special file /dev/lan0. It is creating it with major number 76 which corresponds to the btlan3 driver (100 mbs card). I need this file to have a major number of 52 which corresponds to driver lan2.

I can restore the correct /dev/lan0 file from tape or I can create a new one with mksf -d lan2 -H 8.16.6 -I 0 -v -i /dev/lan0. Everything seems to work OK until the machine reboots, then it makes a new /dev/lan0 file. What is creating this file and how do I make it stop???
2 REPLIES 2
Paula J Frazer-Campbell
Honored Contributor

Re: /dev/lan0 file changing on reboot

Hi

Try re-installing the driver.

HTH

Paula
If you can spell SysAdmin then you is one - anon
Berlene Herren
Honored Contributor

Re: /dev/lan0 file changing on reboot

To change instance numbers using ioinit, complete the following:
1. Create a file called /tmp/hp. Put in new instances that you want:
8 lan 0 <---where 8 is hw address of card & word LAN MUST be there. 0 is NEW instance number.

56.1 lan 1 <---where 56.1 is hw address of card & word LAN MUST be there.
1 is NEW instance number.
2. Do a: ioinit -f /tmp/hp
3. Reboot
4. Do a lanscan to verify ni names are now correct.
5. cd /dev
6. Do a: insf -e
7. Do a: lssf /dev/lan* look for the correct devices files & instances
8. Modify /etc/rc.config.d/netconf and make sure IP's are going to the correct card.


Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm