Operating System - HP-UX
1834007 Members
1804 Online
110063 Solutions
New Discussion

Re: help configuring lan0

 
SOLVED
Go to solution
Nick D'Angelo
Super Advisor

help configuring lan0

All,

R390
HPUX10.20
Lan0 100BT
Lan1 10bt

For some reason, Lan0 will not stay up. I have removed it via SAM, added it once again and tried just about everything I know.

Even if I issue ifconfig lan0 up it stays up for about 10 secs and goes into down state once again.

Any ideas?

Thanks.
Always learning
16 REPLIES 16
John Strang
Regular Advisor

Re: help configuring lan0

Hi Nick,

does lanscan show that lan0 has HW state UP?
And have a look in lanadmin

John
If you never make a mistake you'll never make anything.
Helen French
Honored Contributor

Re: help configuring lan0

Hi Nick:

1) Check the cables and connectivity.
2) Setup the lan card with 'set_parms' command.
3) Check the output of lanscan
4) Check the switch/hub/router connectivity and speed. It should match with the lan card speed

HTH,
Shiju
Life is a promise, fulfill it!
Nick D'Angelo
Super Advisor

Re: help configuring lan0

lanscan shows down almost all the time. Only after I ifconfig lan0 up, will lanscan show lan0 up for about 5 seconds.

Reply to second comment, What is the correct syntax of the lanadmin command to set the card to 100/Half Duplex?
Always learning
John Strang
Regular Advisor

Re: help configuring lan0

Also have a look in
/etc/rc.config.d/netconf

John
If you never make a mistake you'll never make anything.
Sebastian Galeski_1
Trusted Contributor

Re: help configuring lan0

Hi
check with ioscan and lanscan if both cards are available.
Than all configuration data for lan cards are located in /etc/rc.config.d/netconf file, check this file. There should be something like this:

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.168.0.2
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

and similar for second card with index [1]

INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=192.168.0.1
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0

hope it help
Nick D'Angelo
Super Advisor

Re: help configuring lan0

ioscan results look a little odd to me:

istatprd / root# ioscan |grep lan
8/12/1/0 lan PCI(10110009) -- Built-in #1
8/16/6 lan Built-in LAN

Thoughts?
Always learning
John Strang
Regular Advisor

Re: help configuring lan0

Hi Nick,

to display details in lanadmin type
landamin
option lan
option display

Should give something like
PPA Number = 0
Description = lan0 Hewlett-Packard 10/100 TX Full-Duplex TT
= 1500
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 100000000
Station Address = 0x108303ae98
Administration Status (value) = up(1)
Operation Status (value) = up(1)
Last Change = 743
Inbound Octets = 1029029568
Inbound Unicast Packets = 5955856
Inbound Non-Unicast Packets = 1273395
Inbound Discards = 0
Inbound Errors = 669
Inbound Unknown Protocols = 55
Outbound Octets = 1943242757
Outbound Unicast Packets = 11077341
Outbound Non-Unicast Packets = 2515
Outbound Discards = 0
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367

NOTE that both Administration Status and Operation Status are both up.

To set the speed use the -S flag but see man lanadmin for details.

John
If you never make a mistake you'll never make anything.
Helen French
Honored Contributor

Re: help configuring lan0

Hi Nick:

To display current speed:

# lanadmin -x NMID/PPA ( NMID (10.20 or PPA (11.0) for the card can be get from lanscan)

To set the speed:

# lanadmin -X speed/duplex NMID/PPA
# lanadmin -X 100HD 5 ( for 100 Half Duplex and NMID 5)

HTH,
Shiju
Life is a promise, fulfill it!
Helen French
Honored Contributor

Re: help configuring lan0

Hi Nick:

Again, for a better result from ioscan, use this command:

# ioscan -fnC lan

The command you used will not give all details about the lan cards.

HTH,
Shiju
Life is a promise, fulfill it!
Nick D'Angelo
Super Advisor

Re: help configuring lan0

Ok, the devices are claimed as reported by the ioscan -fnC lan.
Always learning
Nick D'Angelo
Super Advisor

Re: help configuring lan0

something strange here now:

ioscan -fnC lan produced

statprd /etc/rc.config.d root# ioscan -fnC lan
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 1 8/12/1/0 btlan4 CLAIMED INTERFACE PCI(10110009) -- Built-in #1
lan 0 8/16/6 lan2 CLAIMED INTERFACE Built-in LAN
/dev/diag/lan0 /dev/ether0 /dev/lan0

lanscan produced:
oot# lanscan
Hardware Station Crd Hardware Net-Interface NM MAC HP DLPI Mjr
Path Address In# State NameUnit State ID Type Support Num
8/16/6 0x080009F85F97 0 UP lan0 DOWN 4 ETHER Yes 52
8/12/1/0 0x001083FA32F8 1 UP lan1 UP 5 ETHER Yes 119
Always learning
Nick D'Angelo
Super Advisor

Re: help configuring lan0

when I try to configure the 100BT card or try to query it, using lanadmin -x 4, it errors: This option is not supported for this hardware.
Always learning
Helen French
Honored Contributor
Solution

Re: help configuring lan0

Hi Nick:

Again, the NMID-4 is the 10BT card. You have to use this lanadmin option with the 100BT card ! Otherwise it will give you the error.

The lanscan shows your 100BT is up (lan1), where as the 10BT is down ! which interface is having problem ?

HTH,
Shiju
Life is a promise, fulfill it!
Mladen Despic
Honored Contributor

Re: help configuring lan0

Do you have your /etc/rc.config.d/hpgsc100conf configured correctly?

Your /etc/rc.config.d/netconf indicates that you have 2 network interfaces on the same subnet. Is this how you want it? (It's not recommended.)
Mladen Despic
Honored Contributor

Re: help configuring lan0

Any errors in /etc/rc.log ?
Nick D'Angelo
Super Advisor

Re: help configuring lan0

many thanks.

Points to all.

As it turns out, someone had switched the network connections for the two Network cards for my server.

One of the hazards of the server being in one building about 700 miles away from where I am.

Thanks again.

Nickd
Always learning