1834811 Members
2281 Online
110070 Solutions
New Discussion

Re: lancard

 

lancard

Can u please tell me how to find the current speed or to assign particular speed to lancard
example to set 10mbps or 100mbps.


Thanks

mangesh
7 REPLIES 7
melvyn burnard
Honored Contributor

Re: lancard

man lanadmin
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Shaikh Imran
Honored Contributor

Re: lancard

Hi,
Use lanadmin command:
#lanadmin
This is an interactive command
You have to enter the ppa number of the card
of which you want to view the details.
Normally ppa 0 = first lan card
ppa 1 = second and on..
you can get the ppa values usgin the lanscan command.


Regards,

I'll sleep when i am dead.
Michael Tully
Honored Contributor

Re: lancard

To display current speed of lan card 0
lanadmin -x 0

to change it to 100FD
lanadmin -X 100FD 0

Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: lancard

I forgot to mention that you will need to update the appropriate config file for the next time your system reboots, so it remembers the setting.

The file is (are) located in /etc/rc.config.d/ this file will be different depending on the card you have. If your not sure, let us know by reporting what card you have from 'ioscan -fnkC lan'
Anyone for a Mutiny ?
Bharat Katkar
Honored Contributor

Re: lancard

Hi Mangesh,
# lanscan
This will list all the LAN cards you have in the System. Identify the PPA no of the lan card through this output.
e.g. lan0 PPA is 0
lan1 PPA is 1 similary...

# lanadmin -s 0
this will display the speed setting of lan0

# lanadmin -S 100000000 0
This will set the lan0 to 100MBps Speed

# lanadmin -S 10000000 0
This will set the lan0 to 10MBps Speed

Hope that helps,
Regards,



You need to know a lot to actually know how little you know
Muthukumar_5
Honored Contributor

Re: lancard

Hai,

We can know the lan speed with lanadmin command.

lanadmin options for lan card speed
===================================

s Display current speed setting corresponding to PPA Number.
S Set new speed setting corresponding to PPA Number.
speed New speed setting in Mbits/second.

You have to get the lan card PPA number. Get it with lanscan -p command.

To get all lan card speed,

for i in $(lanscan -p); do
echo "lan$i $(lanadmin -s $i)"
done

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
Bharat Katkar
Honored Contributor

Re: lancard

Mangesh,
Also have a look at this link.

http://forums1.itrc.hp.com/service/forums/helptips.do?admit=716493758+1085211538437+28353475#33

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