Operating System - HP-UX
1834007 Members
1809 Online
110063 Solutions
New Discussion

Re: lanadmin command switches

 
SOLVED
Go to solution
Stojcevski Dejan
Regular Advisor

lanadmin command switches

Hi to all,
I want to change the setting to one of my lan cards to 100fd auto_off. Curreently it is 1GB interface with autonegotioation turned on. It is connected to 100MB switch and I am experiencing a HUGE network output queue of about 30 (as seen in glance).
Now, what I want to do is to change the setting of the NIC driver with lanadmin -X command to 100fd auto_off.
1. Will this solve the problem with the big network output queue?
2. What files should I change in /etc/rc.config.d/ in order to prevent the cahnges across reboot?
3. Are the changes dinamic?Will I need down/up if the NIC interface?
Dejan.
Carpe Diem
14 REPLIES 14
Arunvijai_4
Honored Contributor
Solution

Re: lanadmin command switches

Hi Dejan,

To answer your questions, take a look at this thread.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=508130

Also, /etc/rc.config.d/netconf # netconf: configuration values for core networking subsystems
#


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: lanadmin command switches

2. What files should I change in /etc/rc.config.d/ in order to prevent the cahnges across reboot?

hpbtlanconf file in that directory.

3. Are the changes dinamic?Will I need down/up if the NIC interface?

No need to down interface.

--
Muthu
Easy to suggest when don't know about the problem!
Senthil Kumar .A_1
Honored Contributor

Re: lanadmin command switches

Hi,

Firstly, the changes done by "lanadmin" command is temperory/trasient but dynamic as you wanted ,alas is effictive only till the system is UP. Once rebooted it loses the change performed through "lanadmin".

To make it permanent for a specific card,run

#ioscan -funC lan
#lanscan

If lan0 is what you are interested then find the driver it is using.Lets say it uses "btlan".

Then I would make a necessary change in /etc/rc.config.d/hpbtlanconf file to leave the changes permanent across boots.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: lanadmin command switches

also consult this link,

http://www.governmentsecurity.org/articles/articles2/5187-0172.pdf_fl/5187-0172-142.html
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Pete Randall
Outstanding Contributor

Re: lanadmin command switches

Yes, the change is dynamic. You will want to issue "lanadmin -X 100FD 0", where 0 is the card's instance number, determined from lanscan. To make the change permanent, you need to change the /etc/rc.config.d/*conf file that corresponds to your card, based on the its driver:

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


Pete

Pete
Stojcevski Dejan
Regular Advisor

Re: lanadmin command switches

Thanks for quick answers.
Main reason for doing all this is to avoid really high output network queue which should be 0 and in my case is constantly 30 and glance is always complaining about network bottleneck.
This NIC is 1GB and is connected to 100MB HP switch.
Will the upper steps solve my problem?
Dejan.
Carpe Diem
Pete Randall
Outstanding Contributor

Re: lanadmin command switches

Frankly, Dejan, I don't think this is going to solve your problem. In fact, the recommended practice with 1GB NICs is to let them auto-negotiate so I'm not even convinced that setting it to 100FD will work, let alone improve your situation. The only thing to do is try it and see.


Pete

Pete
Bharat Katkar
Honored Contributor

Re: lanadmin command switches

Yes i agree with pete. Actually, it won't.

Ideally, if it's autonegotiate then it automatically adjust itself to the settings of the peer port.

Probably you can try setting switch side port also to autonegotiate mode.

Regards,
You need to know a lot to actually know how little you know
Arunvijai_4
Honored Contributor

Re: lanadmin command switches

Hi Dejan,

http://docs.hp.com/en/J4240-90033/index.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Stojcevski Dejan
Regular Advisor

Re: lanadmin command switches

Searching the forums I have found that several issues are being reported when 1GB NIC is connected to the 100MB Switch. Output network queue is always very big. In all the cases Switches has been enabled to auto_neg, auto_sensing. Is the only way of solving the issue putting the switch with the 1GB port and connecting it to the 1GB NIC?
As far as I can see no other solution was adviced for this.
Dejan.
Carpe Diem
Pete Randall
Outstanding Contributor

Re: lanadmin command switches

If you have the opportunity to connect to a 1GB port, that will be your ultimate solution. Leave your NIC settings at auto-negotiate for proper operation.


Pete

Pete
Stojcevski Dejan
Regular Advisor

Re: lanadmin command switches

Will do that Pete. It seems like the only solution I have. Thanks.
Carpe Diem
Stojcevski Dejan
Regular Advisor

Re: lanadmin command switches

I am closing this thread.
Thanks to all again.
Dejan.
Carpe Diem
Zinky
Honored Contributor

Re: lanadmin command switches

Stojcevski Dejan,

Peace and Clean Earth!

I beg to disagree about leaving your 1GB Capable NIC at auto-negotiate whilst it is attached to that 100MB (only?) switch.

The best practice (for optimal prerformance) for 100BT network is to set the port switch to 100BT FDX and no-auto-negotiate.

The same needs to be done on the NIC/HBA/Host End -- set it to 100FDX and no autonegotiate as you've (and possibly your network admin's) originally intended.

Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler