1826398 Members
3600 Online
109692 Solutions
New Discussion

Re: switching port speed

 
SOLVED
Go to solution
Timothy Czarnik
Esteemed Contributor

switching port speed

Hey all,

The data port that my server is plugged into is set to run at 10 MB/s half duplex (I inherited it, please don't ask :) ). I want to set it to 100 MB/s full duplex.

My question is, can I do this on the fly, or will my server need to be rebooted to take advantage of this change? If I do need to reboot for this change to happen, can I change the port speed now and then reboot over the weekend, or will this change on the port make the networking on the server hang until it is rebooted.

Thanks for any/all insights!

-Tim
Hey! Who turned out the lights!
7 REPLIES 7
harry d brown jr
Honored Contributor

Re: switching port speed

Use lanadmin
Live Free or Die
A. Clay Stephenson
Acclaimed Contributor

Re: switching port speed

Hi Tim,

You don't mention the OS but even on 10.20 if you have installed semi-recent patches (~ within about the last 1 1/2 years) you can change the speed/duplex settings 'on the fly' using lanadmin.
The network will experience a few hiccups but nothing should be lost. You will need to make the change on the other end as well and I suggest that you 'hard set' the settings on both ends of the connection.

Bear in mind than note all NIC's will run at 100FD.

Regards, Clay
If it ain't broke, I can fix that.
Joseph C. Denman
Honored Contributor

Re: switching port speed

If you have latest patches as Clay stated,

run lanscan to get the NMID

Then

lanadmin -X 100FD NMID

Make changes to /etc/rc.config.d/hpbasetconf file.

...jcd...
If I had only read the instructions first??
Marcin Wicinski
Trusted Contributor

Re: switching port speed

Hi,

In /etc/rc.config.d/ directory you can find a config file coresponding to your NIC, for example hpbase100conf.

The file includes:

HP_BASE100_SPEED[0]=....(here you can put the correct speed and mode - for an example 100HD which means 100 MB/s and HalfDuplex.

Then you have to reconfigure NIC by executig script coresponding with your NIC, for an example:

/sbin/init.d/hpbase100



You can also use lanadmin -X
Marcin Wicinski
Sridhar Bhaskarla
Honored Contributor
Solution

Re: switching port speed

You can use lanadmin command to set the speed and the duplex.

To view the settings it is

lanadmin -x Cardin#|NMID

To set the speed to 100 Full Duplex

lanadmin -X 100FD cardin#|NMID

Cardin# is the instance number of the lan card on 11.0 while NMID is on 10.20. In both the cases , it matches the suffix of the lan card device file. For ex., lan0's CardIn# is 0.

Setting the lan speed will hang the system for 11 secs. If it is improper speed - forever until you set it back from the console. So, if you are using MC/Service Guard, becareful.

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

Re: switching port speed

Ooops.. I reviewd my message and it was sounding as if NMID is the instance number of the lancard on 10.20. Wrong. NMID is the network management id, an SNMP object used to identify the lancard which is different form Card Instance Number. We use NMID on 10.20 while the card instance number on 11.00.

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

Re: switching port speed

in theory, if you change your switch port to autosense and auto-negotiate, and then reset the NIC within lanadmin (from the console... :) it should switch to 100FD if the NIC and cableing can handle it.

keep in mind that on "older" servers and workstations the core NIC is a 10Mbit/s HD-only NIC. That would be the D's, K's and A180 and any of the old 8XX or [EFGHI] systems.

Only the new L's, N's and A's (and SuperDome) servers have "core" 10/100 NICs.

There are add-on NIC's for older servers that are 10/100.
there is no rest for the wicked yet the virtuous have no pillows