- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Set Lan card settings.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 06:12 AM
11-29-2002 06:12 AM
Server: L2000, HP-UX 11.0.
I want to hard-code the Lan card settings on a single port
NIC to 100FD with auto-negotiation set to OFF.
The switch is already set to these settings.
How do I check these settings and how do I make the changes permanent (thru reboots)?
BTW: I do not want to use SAM.
(I prefer the command line).
An ioscan -kfnC lan shows:
lan 2 0/6/0/0 btlan6 CLAIMED INTERFACE PCI Ethernet (10110019)
/dev/diag/lan2 /dev/ether2 /dev/lan2
10 points to any good answer.
Thank you Gino.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 06:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 06:19 AM
11-29-2002 06:19 AM
Re: Set Lan card settings.
For the btlan6 driver you need to edit the config file;
/etc/rc.config.d/hpsppci100conf
Theres comments in the file on what to do - really easy to see SPEED to 100FD, then reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 06:20 AM
11-29-2002 06:20 AM
Re: Set Lan card settings.
if you're interested to see the commandline args for lanadmin command simply grep the init script
e.g.
grep -i lanadmin /sbin/init.d/hpbtlan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 06:22 AM
11-29-2002 06:22 AM
Re: Set Lan card settings.
of course the config files reside in
/etc/rc.config.d
as Stefan correctly wrote
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 06:36 AM
11-29-2002 06:36 AM
Re: Set Lan card settings.
eg..
ioscan -kf|grep lan
lan 0 0/0/0/0 btlan3 CLAIMED INTERFACE HP PCI 10/100Base-TX Core
lan 1 0/4/0/0/4/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 port
lan 2 0/4/0/0/5/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 port
lan 3 0/4/0/0/6/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 port
lan 4 0/4/0/0/7/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 port
Looks like it is lan2 you are changing....
Check the Speed setting for PPA # 2 ie lan2
eg..
lanadmin -x 2
Current Speed = 100 Full-Duplex Auto-Negotiation-OFF
Find current driver for the lan in question that is loaded into kernel
eg..
what /stand/vmunix|grep btlan
Find current driver for (in this example) btlan5 loaded into kernel
$what /stand/vmunix|grep btlan5
100BT : btlan5.c PCI 100BT Cleanup PHNE_24006 B.11.00.08 $Revision: 1.77 $ $Date: 2001/05/08 15:00:00 $
This then will let you know the Config file used to set speed/duplex mode for this lan driver :
/etc/rc.config.d/hppci100conf
This is were you can hard code the speed setting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 06:40 AM
11-29-2002 06:40 AM
Re: Set Lan card settings.
Here is a mix of previous answers ...
- to make a change, Ralph told you to look at your startup script (/sbin/init.d/hpsppci100). You will find here examples of generated commands using lanadmin in the header (with PPA, not instance numbers)
- to make this change permanent across reboots, modify the file given by Stefan (/etc/rc.config.d/hpsppci100conf)
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 06:43 AM
11-29-2002 06:43 AM
Re: Set Lan card settings.
Thank you for your answers.
Question, is auto-negotiation always turned-off/disabled unless you set it on?
10 points to any good answer.
Thank you Gino.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 06:46 AM
11-29-2002 06:46 AM
Re: Set Lan card settings.
Unless you set the speed manually auto-negotiation is ON by default. To turn if off you need to set the speed manually at BOTH ends - the switch/hub as well as on your HP server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 06:47 AM
11-29-2002 06:47 AM
Re: Set Lan card settings.
Beleave it's the other way, autoneg is default on.
Kind Regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 06:50 AM
11-29-2002 06:50 AM
Re: Set Lan card settings.
Here's info for the rest of the cards:
driver /etc/rc.config.d /sbin/init.d
btlan0 hpeisabtconf hpeisabt
btlan1 hpbasetconf hpbaset
btlan3 hpbase100conf hpbase100
btlan4 hpgsc100conf hpgsc100
btlan5 hppci100conf hppci100
btlan6 hpsppci100conf hpsppci100
intl100 hpintl100conf hpintl100
current speed:
# lanadmin -x
Use nmid for 10.20 and before, ppa for 10.30 and after.
xxx_INTERFACE_NAME: Name of interface (lan0, lan1...)
xxx_STATION_ADDRESS: MAC address of interface (configured with lanadmin)
xxx_SPEED: set the card speed. Value are : 10HD, 10FD, 100HD, 100FD, auto_on.
Cheryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 06:59 AM
11-29-2002 06:59 AM
Re: Set Lan card settings.
et al.
How exactly do you set Auto-negotiation to off? I need this option to be hard-coded
because the switch will be set
to 100FD, auto-neg=off so the
Lan Card needs to have the same options too.
Does just setting thse two options for the Lan Card
A)100FD and B) not setting auto-neg to ON resolve this problem? Is there a line in the /etc/rc.config.d/hp*
that needs to be included
for auto-neg to equal OFF?
10 points to any good answer.
Thank you Gino.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 07:10 AM
11-29-2002 07:10 AM
Re: Set Lan card settings.
to ensure auto-neg is off all you need to do at the HP end is set it explicitly in the config file to a speed (say 10 or 100). This stops auto-neg. There is no separate paremeter for auto-neg.
The switch end is as you have described - set to a speed and the parameter auto-neg=off.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 07:13 AM
11-29-2002 07:13 AM
Re: Set Lan card settings.
Stefan is right, just set it to the disered speed will set autoneg is off.
King regards and a good weekend.
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 07:25 AM
11-29-2002 07:25 AM
Re: Set Lan card settings.
db001:/etc/rc.config.d# lanadmin -x 0
Current Speed = 100 Full-Duplex Auto-Negotiation-OFF
db001:/etc/rc.config.d# more hpbase100conf
#####################################################################
# @(#) hpbase100conf $Revision: 1.4 $ $Date: 99/07/14 13:35:13 $
# 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_SPEED Manually set the driver's speed. Can be
# one of: 10HD, 10FD, 100HD, 100FD, auto_on
#
# The interface name, major number, card instance and nmid|ppa may be
# obtained from the lanscan(1m) command.
#
# The station address and speed are set through the lanadmin(1m)
# command.
#
#####################################################################
HP_BASE100_INTERFACE_NAME[0]=lan0
HP_BASE100_STATION_ADDRESS[0]=0x001083FF5AE3
HP_BASE100_SPEED[0]=100FD
###########################################################################
# The HP_BASE100_INIT_ARGS are reserved by HP. They are NOT user changable.
HP_BASE100_INIT_ARGS="HP_BASE100_STATION_ADDRESS HP_BASE100_SPEED"
# End of hpbase100conf configuration file
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 07:41 AM
11-29-2002 07:41 AM
Re: Set Lan card settings.
when you set speed manually then auto-neg is off.
Also see:
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062912155
Regards
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2002 05:15 PM
11-29-2002 05:15 PM
Re: Set Lan card settings.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 04:14 AM
07-31-2006 04:14 AM
Re: Set Lan card settings.
I would like to set my NIC card to autoneg on with giga bit speed.Please help
Thanks