Operating System - HP-UX
1833777 Members
2581 Online
110063 Solutions
New Discussion

On board ethernet card - how to disable and change speeds

 
SOLVED
Go to solution
Jim Lynn_1
Occasional Advisor

On board ethernet card - how to disable and change speeds

I have a server that I got as a referb and I want to use the 10/100 card in one of the chassis slots as the main interface, not the on board. I can't seem to get rid of it. Also - I am an AIX guy but I can't figure out how to change the card speed through sam and ifconfig doesn't look like it does anything nor does lanadmin....help ??
14 REPLIES 14
John Poff
Honored Contributor
Solution

Re: On board ethernet card - how to disable and change speeds

Hi,

If you can see the 10/100 card when you do a 'lanscan', you should be able to use it. Just edit the /etc/rc.config.d/netconf file and specify the IP address and other settings using that lan card [lan1, lan2, something like that probably].

The built-in lan card won't 'go away', but if you assign an IP address to the other card you shouldn't care, as the other card will be used.

JP
Sridhar Bhaskarla
Honored Contributor

Re: On board ethernet card - how to disable and change speeds

Hi,

Use lanadmin command to change the speed. You will need to use nmid (for 10.20) or ppa|card instance# (for 11.x) as an argument to lanadmin command. Use "lanscan" to find them out.

#lanadmin -x 2

Will display the speed of the lan card associated with nmid|ppa 2.

#lanadmin -X 100FD 2

Will change the speed and duplex of the lancard associated with nmid|ppa 2 to 100 Full Duplex.

To survice these setting on reboot, you will need to hard code these values into /etc/rc.config.d/hp*conf files. In your case, it will be hp100baseconf file. Example entries are given in that file.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Massimo Bianchi
Honored Contributor

Re: On board ethernet card - how to disable and change speeds

Hi,
HPUX uses only the card you configure, so if you configure, let's say, lan4 on the PCI slot, that one will be used.


To change the speed: use lanadmin !

lanadmin -x query for the opeiotn

lanadmin -X set the option.


to set them at every reboot, there are the files in the /etc/rc.config.d/etherconf* or such files (i never remember the exact files)

HTH,
Massimo

Marco Santerre
Honored Contributor

Re: On board ethernet card - how to disable and change speeds

Hi,

you can go and edit the /etc/rc.config.d/netconf and specify only the lan card that you want to have configured along with the IP address you want. This will apply every time you boot. Depending on the driver that the lan card is using, you have several files in /etc/rc.config.d all starting with hp (hpbtlanconf, hp100baseconf, etc.. ), one of them will allow you to configure the speed for the card.

If you want to do all of this manually. Assuming that lan0 is the built-in lan and the lan1 is the one you want to use.

ifconfig lan0 inet 0.0.0.0 down
ifconfig lan1 inet 192.168.33.15 netmask 255.255.255.0 up
lanadmin -X 100BT 1 {will set port 1 to 100BT)

this being said, next time you reboot you'll have to do this again unless you have edited the files.
Cooperation is doing with a smile what you have to do anyhow.
Marco Santerre
Honored Contributor

Re: On board ethernet card - how to disable and change speeds

Sorry made a mistake in my lanadmin line.. it should read 100FD for 100 Full-Duplex instead of 100BT.. trying to say too many things at the same time.. LOL
Cooperation is doing with a smile what you have to do anyhow.
Dario_1
Trusted Contributor

Re: On board ethernet card - how to disable and change speeds

Jim Lynn_1
Occasional Advisor

Re: On board ethernet card - how to disable and change speeds

The lanadmin -x doesn't work for me, I have ladmin -S to change speeds. Maybe -X is something new in HPUX 11.0....I'm still unable to ping the default gateway. The network switch is seeing the link just fine and I forced it to 100FD as the switch setting are but no go....any other thoughts?
Helen French
Honored Contributor

Re: On board ethernet card - how to disable and change speeds

Ccan you post the output of lanscan? Did you use "NMID" with lanadmin? Also, post the output of:

# ioscan -fnC lan
Life is a promise, fulfill it!
Sridhar Bhaskarla
Honored Contributor

Re: On board ethernet card - how to disable and change speeds

Jim,

Can you post your "lanscan" and "netstat -i" outputs?.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Pete Randall
Outstanding Contributor

Re: On board ethernet card - how to disable and change speeds

Jim,

What version of HP-UX are you running? What happens if you do "lanadmin -x 0", where 0 is the instance number of your card? You should see the current settings.


Pete

Pete
John Poff
Honored Contributor

Re: On board ethernet card - how to disable and change speeds

Jim,

One other trick you can try is the 'linkloop' command. It will help you verify the physical connection to a card using the MAC address. It is handy for helping to make sure that your cable connection to the card is ok.

Also, you could post the output of 'lanscan' and the contents of your /etc/rc.config.d/netconf file. Are you running 10.20?

JP
Kevin Wright
Honored Contributor

Re: On board ethernet card - how to disable and change speeds

run lanscan to get the NM/ID of the card you want to configure.
then run lanadmin , select lan to see speed and any errors.

run lanadmin -s NMID to see speed
lanadmin -S NMID to set speed

ifconfig lan# (taken from NameUnit column on lanscan) to configure IP/netmask.

Dario_1
Trusted Contributor

Re: On board ethernet card - how to disable and change speeds

Jim:

What version of HP-UX are you running? Is it 10.20??

Regards,

DR
Jim Lynn_1
Occasional Advisor

Re: On board ethernet card - how to disable and change speeds

Sorry - I should have included HPUX number - its 10.20.
iocan -fnC is
Class I H/W Path driver S/W state H/W type
lan 0 8/16/6 lan2 CLaimed Interface
description
built-in lan
/dev/diag/lan0 /dev/ether0 /dev/lan0

lan 1 10/12/1/0 btlan0 Claimed Interface
PCI 10110009
--built-in#1
netstat -i yields
Name MTU Network Address IpktsIerrOpktsOerr Col
ni0 0 none none 0 0 0 0 0
ni1 0 none none 0 0 0 0 0
lo0 4600 loopback localhost 216 0 216 0 0
lan0 1500 none none 0 0 0 0 0
lan1 1500 10.88.193 usgnisp 496 0 13 2 32

I am trying to configure out lan0 and use lan1
Thanks