Operating System - HP-UX
1834185 Members
2472 Online
110064 Solutions
New Discussion

Re: A500 networking problem

 
Marty Hoff
Advisor

A500 networking problem

I am having a very strange problem. We had a power outage scheduled and so we had to shutdown and power off all of our equipment. Things worked fine before the shutdown, but now I cannot get the networking to work on this box.

This machine is in our DMZ and has a netmask of 255.255.255.240. The card was set to autonegotiate, but I have tried forcing it to both full duplex and half duplex and setting the switch to the same setting. (The switch was set to force full duplex originally.)

If I move the machine in to our internal network with a netmask of 255.255.255.0, I can get things to work fine, but if I move it back to the DMZ settings, it won't work.

I have tested the cables with a cable tester and they seem fine. It is very strange and I don't know what to try next.

Any suggestions?

The machine is running HP-UX 11.11. It is an A500 model A5570A.

Thanks for any help.

Marty

11 REPLIES 11
Steven E. Protter
Exalted Contributor

Re: A500 networking problem

If this is a gigabit card, autonegotiate is fine.

If its a 100 BaseT card, you need to go with a manual speed setting. You can set speed in a file called /etc/rc.config.d/hpbtlanconf

# HP_BTLAN_INTERFACE_NAME[1]=lan1
# HP_BTLAN_STATION_ADDRESS[1]=
# HP_BTLAN_SPEED[1]=100FD


Coding example.

One of your switches might have lost its settings and they must be the same as the lan card settings. The switch port settings MUST be manual in order to have proper networking.

The lanadmin command can get you through the day if you can't reboot right now.

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
RAC_1
Honored Contributor

Re: A500 networking problem

ioscan -fnClan

What lan driver it uses?? Depending upon what driver it is, you will have to use correct config file for it in /etc/rc.config.d/

Also, do netfmt /var/adm/nettl.LOGxxx, does it show any errors?? Do you get any errors in syslog.log/dmesg/rc.log??

Anil
There is no substitute to HARDWORK
Marty Hoff
Advisor

Re: A500 networking problem

I have tried setting the card to 100FD and 100HD while setting the switch to the same exact settings. The switch shows that the connection is up and at the correct duplex. However, I cannot send any TCP/IP traffic from either side.

Since I can get the card to work when I move it to the inside network, I am wondering if it might have something to do with the netmask settings? Are there are problems using a 255.255.255.240 netmask?
Marty Hoff
Advisor

Re: A500 networking problem

ioscan -fnClan
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
lan 0 0/0/0/0 btlan CLAIMED INTERFACE HP PCI 10/100Base-TX Core
/dev/diag/lan0 /dev/ether0 /dev/lan0


I am not seeing any error messages in the log files. I had not looked at the netfmt output. Here is a sample. The whole log file appears to have this error repeated over and over again.

**********************************STREAMS/UX*******************************@#%
Timestamp : Tue May 13 CDT 2003 17:38:35.769612
Process ID : 2083 Subsystem : STREAMS
User ID ( UID ) : 0 Log Class : ERROR
Device ID : 0 Path ID : 0
Connection ID : 0 Log Instance : 0
Location : 00123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7341 17:38:35 742582080 1 T.. 0 0 tcp_wput_proto: received T_ORDREL_REQ in bad s
tate [0,0] TCP_IDLE

Kent Ostby
Honored Contributor

Re: A500 networking problem

Marty -- when configured on the DMZ, can the machine ping itself ?

Have you tried to connect using IP address as oppossed to hostname ?

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Marty Hoff
Advisor

Re: A500 networking problem

Yes, the machine can ping itself. I cannot ping other hosts on the same network by ip address or from the other hosts to this host by ip address.

Marty
RAC_1
Honored Contributor

Re: A500 networking problem

ndd -get /dev/ip ip_ire_gw_probe
what is the setting?? Should be zero. For help do ndd -h ip_ire_gw_probe

Disable dead gateway probe.

Anil
There is no substitute to HARDWORK
Marty Hoff
Advisor

Re: A500 networking problem

I made the setting 0 with ndd and restarted the networking. No help.
Jim Keeble
Trusted Contributor

Re: A500 networking problem

I wonder if the switch on the DMZ side may have lost something in the power failure, maybe the VLAN assignment ?

If you see inbound packets accumulating in netstat -i and lanadmin -g , there's a pretty good chance the problem is on the network side .
rick jones
Honored Contributor

Re: A500 networking problem

Duplex mismatch would not be a complete loss of connectivity, and pings will often get through without trouble when there is a mismatch - at least if the NIC is otherwise idle - it takes concurrent access to the link from both ends to start seeing the effects of a duplex mismatch.

_Never_ hardcode just one side of the link. Both sides of the link _must_ be set to the same thing - either both auto, both hd, or both fd. You cannot mix and match, or sorrow and woe is the frequent result:

How Autoneg is supposed to work:

When both sides of the link are set to autoneg, they will "negotiate"
the duplex setting and select full duplex if both sides can do
full-duplex.

If one side is hardcoded and not using autoneg, the autoneg process
will "fail" and the side trying to autoneg is required by spec to use
half-duplex mode.

If one side is using half-duplex, and the other is using full-duplex,
sorrow and woe is the usual result.

So, the following table shows what will happen given various settings
on each side:

Auto Half Full

Auto Happiness Lucky Sorrow

Half Lucky Happiness Sorrow

Full Sorrow Sorrow Happiness

Happiness means that there is a good shot of everything going well.
Lucky means that things will likely go well, but not because you did
anything correctly :) Sorrow means that there _will_ be a duplex
mis-match.

When there is a duplex mismatch, on the side running half-duplex you
will see various errors and probably a number of late collisions. On
the side running full-duplex you will see things like FCS errors.
Note that those errors are not necessarily conclusive, they are simply
indicators.


If you have other HP-UX kit on the same switch(es), or want to grab linkloop for linux from http://osx.freshmeat.net/projects/linkloop/ you can use that to verify link-level connectivity. If that is all OK, then you move-up to checking that all your routing is correct.
there is no rest for the wicked yet the virtuous have no pillows
Ron Kinner
Honored Contributor

Re: A500 networking problem

I think you are right that it is a subnet issue. HPUX likes to enforce an obsolete RFC which said you couldn't use the first or last subnet when you break up a class into smaller subnets. You can turn it off with:

ndd -set /dev/ip ip_check_subnet_addr 0

but you will have to edit /etc/rc.config.d/nddconf to make it permanent and have it work with a reboot.

TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_check_subnet_addr
NDD_VALUE[0]=0

Ron