1755476 Members
3755 Online
108833 Solutions
New Discussion юеВ

settings for NIC card

 
SOLVED
Go to solution
Jay Cantwell
Regular Advisor

settings for NIC card

I am running 11.0 on an L-2000 and a K460....I want to change the settings (in SAM) on the lan card from autoneg to full/100 while the system is processing on line....

1. will this cause the system to reboot?
2. if no reboot is done, what results should I expect to see until all the negotiation is completed?

thanks...Jay
8 REPLIES 8
Pete Randall
Outstanding Contributor
Solution

Re: settings for NIC card

Jay,

No need to even bother with SAM.

First, check the current LAN setting:lanadmin -x 0

(where 0 is the card's instance or PPA number, found with lanscan).

To change the card setting without a reboot, use:

# lanadmin -X 100FD 0

Then edit the appropriate /etc/rc.config.d/ config file to make the change permanent:

They correspond to the driver used for
the LAN card:

btlan hpbtlanconf
btlan0 hpeisabtconf
btlan1 hpbasetconf
btlan3 hpbase100conf
btlan4 hpgsc100conf
btlan5 hppci100conf
btlan6 hpsppci100conf


Pete


Pete
Mark Greene_1
Honored Contributor

Re: settings for NIC card

I just went through the same discovery process. You can use lanadmin -X 100FD 0 to reset the NIC. According to HP's software support guys, this will not cause a reboot and *shouldn't* drop any connections.

You will also need to update the file /etc/rc.config.d/hpigelanconf (or similar if your lan card uses a different conf file) with something like this:


HP_IGELAN_INTERFACE_NAME[0]=lan0
HP_IGELAN_SPEED[0]=100fd

HTH
mark

the future will be a lot like now, only later
Sridhar Bhaskarla
Honored Contributor

Re: settings for NIC card

Hi Jay,

1. No. This will not cause reboot. However, the system will go off of the network for 11 secs. So, you can decide the criticality based on the sensitivity of your application.
2. I would suggest you to do it manually instead through SAM. Use the following commands.

a. Find out the Card Instance of the lan card. ON 11.0, it is easy to determine. "0" is the ppa for lan0.

#lanscan

b. Find out the settings on the lan card

#lanadmin -x 0 (replace 0 with your ppa)

If it does not say 100FD Full Duplex, then you will need to change it. But make sure your switch port has been set to 100 Full Duplex Auto Off.

#lanadmin -X 100FD 0
Your network will go off for 11 secs.
#lanadmin -x 0


However, this will not survive the next reboot. There is a file per each type of lancard under /etc/rc.config.d/hp*conf. If yours is a GSC card, then the corresponding file will be hpgsc100conf. Edit it. All you need to do is to add Interface and the Speed.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: settings for NIC card

You need not reboot.

You probably should not use sam.

lanadmin -x 0

shows the current settings

lanadmin -X 0 100FD

changes the setting on the card to 100 BaseT full duplex manual.

There is a short pause while the system switches speed, users are usually not kicked out.

This can be done permanently in /etc/rc.config.d/hpbtlanconf (attached)

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Uday_S_Ankolekar
Honored Contributor

Re: settings for NIC card

1. NO
2. 11 seconds!

You can do it online with lanadmin command
lanadmin -X 100FD nmid #

ppa number can get from lanscan number
This will work until your next reboot

To fix this change in the appropraite file in
etc/rc.confog.d/hp* file.

-USA..






Good Luck..
twang
Honored Contributor

Re: settings for NIC card

Dont use sam, 2 way to do this,
- edit the proper file in /etc/rc.config.d/hpbase100conf (file name depends on the lan adapter):
change
HP_BASE100_SPEED[X]=AUTO_ON
to
HP_BASE100_SPEED[X]=100FD

- Check the current speed with:
# lanadmin -x 2
Current Speed = 100 Half-Duplex

To force this to 100 Full with:
# lanadmin -X 100FD 2
(2 is NMID of the NIC)
Andrew Cowan
Honored Contributor

Re: settings for NIC card

Hi Jay,

Switching speeds can confuse your switches, and they sometimes require powering off/on.

Ron Kinner
Honored Contributor

Re: settings for NIC card

"what results should I expect to see until all the negotiation is completed? "

You will most likely see a lot of FCS errors on your end and Collisions on the other. Contrary to what you would think Autonegotiate will not negotiate the duplex setting if the other end is set to Full. Instead it automatically sets it to Half. So make sure you set the switch to 100 FD at the same time as you set the HPUX.

Ron