Operating System - HP-UX
1819885 Members
2573 Online
109607 Solutions
New Discussion юеВ

how to turn auto-negotiation off or on on lan1?

 
SOLVED
Go to solution
Hanry Zhou
Super Advisor

how to turn auto-negotiation off or on on lan1?

I know I can use the command:
lanadmin -X 100FD 1
but, where is the option of turning auto-negotiation on or off?

Also, if it is the primary lan connection, do I have to do that on Console terminal? or Will I lost the connection while I am runing the command?
none
12 REPLIES 12
Steven E. Protter
Exalted Contributor

Re: how to turn auto-negotiation off or on on lan1?

Shalom Hanry,

Yes this is possible.

To know the exact location, I'd need to know your server type.

On many servers its hard coded into /etc/rc.config.d/hpbtlanconf

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
DCE
Honored Contributor

Re: how to turn auto-negotiation off or on on lan1?



I have used SAM to change the auto-negotiation in the past. It is not as fast as the command line, but it will do the job.

Dave
hailerer
Advisor

Re: how to turn auto-negotiation off or on on lan1?

you can use lanadmin -X options,
for btlan,the valid types are: 10HD, 10FD, 100HD, 100FD, AUTO_ON
Bill Hassell
Honored Contributor

Re: how to turn auto-negotiation off or on on lan1?

As mentioned, lanadmin -X is the tool to use. When you use lanadmin to change a LAN card setting like duplex, there can be about a 15 second outage while the card resets and establishes connection with the switch. Note that lanadmin is a temporary setting. To make the setting permanent, you need to configure the appropriate file in /etc/rc.config.d so the setting is setup the way you want it on reboot. Note that not all LAN cards (especially on older systems) will respond to every setting.


Bill Hassell, sysadmin
Sivakumar TS
Honored Contributor

Re: how to turn auto-negotiation off or on on lan1?

Hi Hanry,

lanadmin -X AUTO_ON 1

will enable auto neg

Regards,

Siva.
Nothing is Impossible !
Sivakumar TS
Honored Contributor

Re: how to turn auto-negotiation off or on on lan1?


Hi,

the changes made in lanadmin are temporary only.

to make it permanant, as per SEP's reply you have to edit the appropriated file.

Regards,

Siva.
Nothing is Impossible !
RAC_1
Honored Contributor
Solution

Re: how to turn auto-negotiation off or on on lan1?

lanadmin -X auto_on/auto_off nmid_of_card
There is no substitute to HARDWORK
rariasn
Honored Contributor

Re: how to turn auto-negotiation off or on on lan1?

Hi Hary,

View configuration

# lanscan

0/0/0/0 0x00306E0CFC53 0 UP lan0 snap0 1 ETHER Yes 119
0/6/0/0 0x00306E0C95DD 1 UP lan1 snap1 2 ETHER Yes 119

#lanadmin -s -x 1
Speed = 10000000
Current Config = NO LINK AUTONEG

# lanadmin -X 10FD 1

# lanadmin -s -x 1
Speed = 10000000
Current Config = 10 Full-Duplex MANUAL

#lanadmin -X AUTO_ON 1

#lanadmin -s -x 1
Speed = 10000000
Current Config = NO LINK AUTONEG

ran




Hanry Zhou
Super Advisor

Re: how to turn auto-negotiation off or on on lan1?

I thought I can do as suggested:
lanadmin -X AUTO_OFF 1
But, it is not working....
AUTO_OFF is unsupported option!

What is option to turn off the auto-negotiate?
Please help!
none
Patrick Wallek
Honored Contributor

Re: how to turn auto-negotiation off or on on lan1?

When you manually set the speed on a card with lanadmin, then that turns auto_neg off.

# lanadmin -X 100FD 1

Will turn OFF auto neg and manually set the speed to 100FD.
Hanry Zhou
Super Advisor

Re: how to turn auto-negotiation off or on on lan1?

Since the card is currently ON, there is no way to turn if OFF directly. I would have to set it to something else, ex, lanadmin -X AUTO_ON 1 first, then lanadmin -X 100FD 1.
none
Bill Hassell
Honored Contributor

Re: how to turn auto-negotiation off or on on lan1?

By definition, you must pick a speed to turn off auto-negotiation. You can't just turn off the autonegotiation because there is no defined speed or duplex. Note that with 100 Mbit LAN systems, the switch port will have to be changed to a fixed speed and duplex too.


Bill Hassell, sysadmin