Operating System - HP-UX
1838568 Members
5006 Online
110127 Solutions
New Discussion

LAN Interface conectivity

 
SOLVED
Go to solution
Fernando Boza
Regular Advisor

LAN Interface conectivity

In HP-UX v2
As I figure if a LAN interface is connected or not?
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: LAN Interface conectivity

Hi:

# lanscan

Regards!

...JRF...
Torsten.
Acclaimed Contributor
Solution

Re: LAN Interface conectivity

#lanadmin -x 0
Speed = 100 Full-Duplex.
Autonegotiation = On.


This should work for you (example is lan0).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: LAN Interface conectivity

If you are running 11.31 one day, try

# nwmgr -g -v -c lan0
lan0:
Interface State =UP
MAC Address = 0x00306E4B2xxx
Subsystem = igelan
Interface Type = 1000Base-T
Hardware Path = 0/1/2/0
NMID = 1
Feature Capabilities = Physical Interface
IPV4 Recv CKO
IPV4 Send CKO
VLAN Tag Offload
64Bit MIB Support
IPV4 TCP Segmentation Offload
UDP Multifrag CKO
Feature Settings = Physical Interface
VLAN Tag Offload
64Bit MIB Support
MTU = 1500
Speed = 100 Mbps Full Duplex (Autonegotiation : On)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sajjad Sahir
Honored Contributor

Re: LAN Interface conectivity

just type lanscan command it will give u information regarding u lan
if u want to configure u can use lanadmin command
Torsten.
Acclaimed Contributor

Re: LAN Interface conectivity

My understanding of the question is "is a cable connected or not"?

So the result could be slightly different for different cards, but lanadmin would answer in case there is no cable:

# lanadmin -x 3
The link is down. The speed and other link state information
are undefined. The configuration specified for this card is:
Speed = 1000 Full-Duplex.
Autonegotiation = On.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Asif Sharif
Honored Contributor

Re: LAN Interface conectivity

Hi Boza,

If you need to check connectivity, you can do with linkloop command also.
#lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/1/2/0 0x0014C21062D4 0 UP lan0 snap0 1 ETHER Yes 119
0/2/1/0 0x0017A451DE08 1 UP lan1 snap1 2 ETHER Yes 119
0/2/1/1 0x0017A451DE09 2 UP lan2 snap2 3 ETHER Yes 119

# linkloop 0x0014C21062D4
Link connectivity to LAN station: 0x0014C21062D4
-- OK
#

Regards,
Asif Sharif
Regards,
Asif Sharif