1834447 Members
2238 Online
110067 Solutions
New Discussion

NIC config during boot

 
SOLVED
Go to solution
MarkW_1
Regular Advisor

NIC config during boot

On reboot the NIC card is reverting to a default 100hd. I can change it with lanadmin to 100fd. Here is my config file> Why isn't it being read at boot?

# @(#) hpbasetconf $Revision: 1.1 $ $Date: 96/07/24 12:00:01 $
# hpbasetconf : contains configuration values for HP 100Mb interfaces
#
# HP_BASET_INTERFACE_NAME Name of interface (lan0, lan1...)
# HP_BASET_STATION_ADDRESS Station address of interface
# configured through lanadmin(1m)
# Prefixed with "0x".
# HP_BASET_DUPLEX Half or full duplex mode (half is default)
#
# The interface name, major number, card instance and nmid may be
# obtained from the lanscan(1m) command.
#
# The station address and duplex are set through the lanadmin(1m) command.
#
#####################################################################

HP_BASET_INTERFACE_NAME[0]=lan1
HP_BASET_STATION_ADDRESS[0]=0x080009d9c0f7
HP_BASET_DUPLEX[0]=100FD

###########################################################################
# The HP_BASET_INIT_ARGS are reserved by HP. They are NOT user changable.

HP_BASET_INIT_ARGS="HP_BASET_STATION_ADDRESS HP_BASET_DUPLEX"


# End of hpbasetconf configuration file
HP_BASET_INTERFACE_NAME[1]=lan1
HP_BASET_STATION_ADDRESS[1]=0x080009d9c0f7
HP_BASET_DUPLEX[0]=100FD
hpbasetconf: END

System k560 OS 11.0
27 REPLIES 27

Re: NIC config during boot

what is your network switch set to?

if you set to 100fd you are basically saying no negotiation, so the swicth must also be set to 100fd, no negotiation.

also check you are putiing the settings in the right file in /etc/rc.config.d - there are several different files for different drivers (btlan5, btlan6 etc.) - I'm not at my machine now, so I can't check which is which...


HTH

Duncan

I am an HPE Employee
Accept or Kudo
Luc Bussieres
Frequent Advisor

Re: NIC config during boot

Hi,

reading your file i could see that you are using different indices in it (1 and 0):

HP_BASET_INTERFACE_NAME[1]=lan1
HP_BASET_STATION_ADDRESS[1]=0x080009d9c0f7
HP_BASET_DUPLEX[0]=100FD

so the 100FD apply to the interface define with index 0 while your lan1 is define using index 1. Depending if you have other interfaces using index 0 or not you should replaice them all to 0 or 1.

HP_BASET_INTERFACE_NAME[0]=lan1
HP_BASET_STATION_ADDRESS[0]=0x080009d9c0f7
HP_BASET_DUPLEX[0]=100FD


Luc

La réponse est le malheur de la question
MarkW_1
Regular Advisor

Re: NIC config during boot

This NIC is lan1: Here is the address:

lanadmin -a 1
Station Address = 0x080009d9c0f7

Here is the seconadry card lan0:

# lanadmin -a 0
Station Address = 0x0060b0839a91
MarkW_1
Regular Advisor

Re: NIC config during boot

Is this correct, and what you mean by the indices. Why do I need 2 entries:

@(#) hpbasetconf $Revision: 1.1 $ $Date: 96/07/24 12:00:01 $
# hpbasetconf : contains configuration values for HP 100Mb interfaces
#
# HP_BASET_INTERFACE_NAME Name of interface (lan0, lan1...)
# HP_BASET_STATION_ADDRESS Station address of interface
# configured through lanadmin(1m)
# Prefixed with "0x".
# HP_BASET_DUPLEX Half or full duplex mode (half is default)
#
# The interface name, major number, card instance and nmid may be
# obtained from the lanscan(1m) command.
#
# The station address and duplex are set through the lanadmin(1m) command.
#
#####################################################################

HP_BASET_INTERFACE_NAME[1]=lan1
HP_BASET_STATION_ADDRESS[1]=0x080009d9c0f7
HP_BASET_DUPLEX[1]=100FD

###########################################################################
# The HP_BASET_INIT_ARGS are reserved by HP. They are NOT user changable.

HP_BASET_INIT_ARGS="HP_BASET_STATION_ADDRESS HP_BASET_DUPLEX"


# End of hpbasetconf configuration file
HP_BASET_INTERFACE_NAME[1]=lan1
HP_BASET_STATION_ADDRESS[1]=0x080009d9c0f7
HP_BASET_DUPLEX[1]=100FD
"hpbasetconf" 31 lines, 1213 characters
#

Mark
Luc Bussieres
Frequent Advisor

Re: NIC config during boot

The index that is use is not directly related to the lan interface that you are trying to configured. what is important is that each interface that you are configuring use the same index for the 3 lines. And that the index are use starting with 0 and without skipping one.

This mean if you don't have any other file in the /etc/rc.config.d directory with a line
starting with HP_BASET_INTERFACE_NAME[0]=
then your config file should contains the following lines:
HP_BASET_INTERFACE_NAME[0]=lan1
HP_BASET_STATION_ADDRESS[0]=0x080009d9c0f7
HP_BASET_DUPLEX[0]=100FD

otherwise if there is already a file starting with that line then your config file should contain the following lines:
HP_BASET_INTERFACE_NAME[1]=lan1
HP_BASET_STATION_ADDRESS[1]=0x080009d9c0f7
HP_BASET_DUPLEX[1]=100FD

Luc
La réponse est le malheur de la question
MarkW_1
Regular Advisor

Re: NIC config during boot

The secondary card is a 10hd on the i/o card. It cannot be changed, so do I only need the single 3 line entry for my card?

mark
Luc Bussieres
Frequent Advisor

Re: NIC config during boot

Mark,

Oops I miss something in you config file looks like your line are double for lan1 in the config file.

Make sure you are using only one set of definition for lan1. (probably onle the first three lines with the index 0. removing the three bottom lines)

Luc
La réponse est le malheur de la question
Luc Bussieres
Frequent Advisor

Re: NIC config during boot

Mark,

Yes since your lan0 is a 10HD then you only need the 3 top lines of your config script which contains the lines using the index 0 and removes the bottom lines which are mix with 1 and 0.

Luc
La réponse est le malheur de la question
Sanjay_6
Honored Contributor

Re: NIC config during boot

Hi Mark,

Changing the interface properties using lanadmin would not make the setting permanent. you should edit the proper configuration file and make the change permanent or you can use sam to configure the interface. Also make sure the switch is set to 100 MBPS fixed, full duplex, auto neg off.

Hope this helps.

Regds
MarkW_1
Regular Advisor

Re: NIC config during boot

Luc,

So I understand this correctly, what does the index # refer to? Also, I can have lan1, which is my primary, set to index 0.

Mark
Luc Bussieres
Frequent Advisor

Re: NIC config during boot

Mark,

What I mean by index 0 is the number that is in square bracket:

HP_BASET_INTERFACE_NAME[0]=lan1
HP_BASET_STATION_ADDRESS[0]=0x080009d9c0f7
HP_BASET_DUPLEX[0]=100FD

so all these lines are using index 0

while the following one is using index 1:

HP_BASET_INTERFACE_NAME[1]=lan1


So your file should be:
# @(#) hpbasetconf $Revision: 1.1 $ $Date: 96/07/24 12:00:01 $
# hpbasetconf : contains configuration values for HP 100Mb interfaces
#
# HP_BASET_INTERFACE_NAME Name of interface (lan0, lan1...)
# HP_BASET_STATION_ADDRESS Station address of interface
# configured through lanadmin(1m)
# Prefixed with "0x".
# HP_BASET_DUPLEX Half or full duplex mode (half is default)
#
# The interface name, major number, card instance and nmid may be
# obtained from the lanscan(1m) command.
#
# The station address and duplex are set through the lanadmin(1m) command.
#
#####################################################################

HP_BASET_INTERFACE_NAME[0]=lan1
HP_BASET_STATION_ADDRESS[0]=0x080009d9c0f7
HP_BASET_DUPLEX[0]=100FD

###########################################################################
# The HP_BASET_INIT_ARGS are reserved by HP. They are NOT user changable.

HP_BASET_INIT_ARGS="HP_BASET_STATION_ADDRESS HP_BASET_DUPLEX"


# End of hpbasetconf configuration file
hpbasetconf: END

La réponse est le malheur de la question
MarkW_1
Regular Advisor

Re: NIC config during boot

I have made the change. We will be rebooting within the hour. I will let you know the outcome.

Mark
MarkW_1
Regular Advisor

Re: NIC config during boot

We just rebooted: Here is lanadmin:

lanadmin -x 1
Current Speed = 100 Half-Duplex Auto-Negotiation-ON
# lanadmin -X 100fd 1
# lanadmin -x 1
Current Speed = 100 Full-Duplex Auto-Negotiation-OFF
#

here is the file:

@(#) hpbasetconf $Revision: 1.1 $ $Date: 96/07/24 12:00:01 $
# hpbasetconf : contains configuration values for HP 100Mb interfaces
#
# HP_BASET_INTERFACE_NAME Name of interface (lan0, lan1...)
# HP_BASET_STATION_ADDRESS Station address of interface
# configured through lanadmin(1m)
# Prefixed with "0x".
# HP_BASET_DUPLEX Half or full duplex mode (half is default)
#
# The interface name, major number, card instance and nmid may be
# obtained from the lanscan(1m) command.
#
# The station address and duplex are set through the lanadmin(1m) command.
#
#####################################################################

HP_BASET_INTERFACE_NAME[0]=lan1
HP_BASET_STATION_ADDRESS[0]=0x080009d9c0f7
HP_BASET_DUPLEX[0]=100FD

###########################################################################
# The HP_BASET_INIT_ARGS are reserved by HP. They are NOT user changable.

HP_BASET_INIT_ARGS="HP_BASET_STATION_ADDRESS HP_BASET_DUPLEX"


# End of hpbasetconf configuration file
#

Mark
MarkW_1
Regular Advisor

Re: NIC config during boot

Here is another file on the system:

#####################################################################
# @(#) hpbase100conf $Revision: 1.1.119.2 $ $Date: 98/04/30 15:32:08 $
# hpbase100conf : contains configuration values for HP 100Mb interfaces
#
# HP_BASE100_INTERFACE_NAME Name of interface (lan0, lan1...)
# HP_BASE100_STATION_ADDRESS Station address of interface
# configured through lanadmin(1m)
# Prefixed with "0x".
# HP_BASE100_DUPLEX Half or full duplex mode (half is default)
#
# The interface name, major number, card instance and nmid may be
# obtained from the lanscan(1m) command.
#
# The station address and duplex are set through the lanadmin(1m) command.
#
#####################################################################

HP_BASE100_INTERFACE_NAME[0]=lan1
HP_BASE100_STATION_ADDRESS[0]=0x080009D9C0F7
HP_BASE100_SPEED[0]=100
HP_BASE100_DUPLEX[0]=FULL

###########################################################################
# The HP_BASE100_INIT_ARGS are reserved by HP. They are NOT user changable.

#HP_BASE100_INIT_ARGS="HP_BASE100_STATION_ADDRESS HP_BASE100_DUPLEX"
HP_BASE100_INIT_ARGS="HP_BASE100_STATION_ADDRESS HP_BASE100_SPEED"


# End of hpbase100conf configuration file
hpbase100conf: END
Darrell Allen
Honored Contributor

Re: NIC config during boot

Hi Mark,

In the first response to this question, Duncan refers to the different files in /etc/rc.config.d that are for different types of fast ethernet NICs. I've attached a reference for you.

To know which file to use, do ioscan -fnkC lan.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Luc Bussieres
Frequent Advisor

Re: NIC config during boot

Mark,

Here is the site you could look to know which files goes with which driver:

http://techsolutions.hp.com/fe/configs.html

Luc
La réponse est le malheur de la question
Sanjay_6
Honored Contributor

Re: NIC config during boot

Hi Mark,

Here is a list of files you need to configure for individual driver,

driver /etc/rc.config.d/
btlan0 hpeisabtconf
btlan hpbtlanconf
btlan1 hpbasetconf
btlan3 hpbase100conf
btlan4 hpgsc100conf
btlan5 hppci100conf
btlan6 hpsppci100conf

Hope this helps.

Regds
Sanjay_6
Honored Contributor

Re: NIC config during boot

Hi Mark,

Can you post your ioscan -fn output and alse your lanscan output.

Thanks
MarkW_1
Regular Advisor

Re: NIC config during boot

We have boot a couple of times for some software upgrades with same effect.

Here is the output:

# ioscan -fnkC lan
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
lan 0 10/12/6 lan2 CLAIMED INTERFACE Built-in LAN
/dev/diag/lan0 /dev/ether0
lan 1 10/16/4 btlan1 CLAIMED INTERFACE HP HP-PB 100 Base TX card
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
10/16/4 0x080009D9C0F7 1 UP lan1 snap1 1 ETHER Yes 119
10/12/6 0x0060B0839A91 0 UP lan0 snap0 2 ETHER Yes 119
#
MarkW_1
Regular Advisor

Re: NIC config during boot

Here is the current conf. file:

# more hpbasetconf
#####################################################################
# @(#) hpbasetconf $Revision: 1.1 $ $Date: 96/07/24 12:00:01 $
# hpbasetconf : contains configuration values for HP 100Mb interfaces
#
# HP_BASET_INTERFACE_NAME Name of interface (lan0, lan1...)
# HP_BASET_STATION_ADDRESS Station address of interface
# configured through lanadmin(1m)
# Prefixed with "0x".
# HP_BASET_DUPLEX Half or full duplex mode (half is default)
#
# The interface name, major number, card instance and nmid may be
# obtained from the lanscan(1m) command.
#
# The station address and duplex are set through the lanadmin(1m) command.
#
#####################################################################

HP_BASET_INTERFACE_NAME[0]=lan1
HP_BASET_STATION_ADDRESS[0]=0x080009d9c0f7
HP_BASET_DUPLEX[0]=100FD

###########################################################################
# The HP_BASET_INIT_ARGS are reserved by HP. They are NOT user changable.

HP_BASET_INIT_ARGS="HP_BASET_STATION_ADDRESS HP_BASET_DUPLEX"


# End of hpbasetconf configuration file
#
Berlene Herren
Honored Contributor
Solution

Re: NIC config during boot

Blow away all the hpbasetconf files in /etc/rc.config.d and copy a new one over from /usr/newconfig/etc/rc.config.d/hpbasetconf and just put in the interface name and 100FD, then run

/sbin/rc2.d/S323hpbase100 start


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

Re: NIC config during boot

I used S322hpbaset to restart. S323hpbase100 expected btlan3 as the driver. The actual driver is btlan1. It did change the card. Does running this emulate a boot. I will not be able to boot for a few weeks.

Mark
Darrell Allen
Honored Contributor

Re: NIC config during boot

Mark,

/sbin/rc2.d/S322hpbaset is executed at boot but it is improper to say that running it emulates a boot.

I did not see the answer to this question: Is 100FD forced by the switch port to which the HP is connected? If forcing 1 end of the connection, you need to force the other end to the same setting.

According to your ioscan output, lan1 is a btlan1 card. Settings for it go in /etc/rc.config.d/hpbasetconf. You should not have the same NIC configured in any other hpbase... file in /etc/rc.config.d.

Last question: Did any of the above suggestions help you? To me, all the suggestions were helpful but it appears they weren't to you since you haven't assigned any points. By not assigning points, you are discouraging replies.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
MarkW_1
Regular Advisor

Re: NIC config during boot

Darrell,

Berlene's reply was helpful as I stated it. I have tried the suggestions as they came, but each time I rebooted I still had to manually configure the lan1 card to 100fd to match the switch port. My record shows in the forum that I do assign points, and appreciate the time spent by forum comrades.

Mark