Operating System - HP-UX
1833753 Members
2397 Online
110063 Solutions
New Discussion

Setting up new server for non internet network with PC.

 
Laura Rush
Advisor

Setting up new server for non internet network with PC.

I am a newbie to setting up networks with servers. We purchased a used rp2430 with hp-ux 11.0 to meet our vendors requirements. I set the ip for the pc as 192.168.1.3 and the server ip= 192.168.1.4. I am connecting my laptop pc with a lan wire to a hub and an enhanced cat 5 lan cable connection from the hub to the server. I checked my tcp/ip settings on my pc and I have them set to the above address with a subnet mask of 255.255.255.0. I tried pinging the ip from both ends without success. I checked the etc hosts file and it shows 192.168.1.4 RP2430 and 127.0.0.1 local host loopback. I also checked my /etc/rc.config.d/netconf and noticed that it doesn't show the subnet mask and have no idea if that means anything. I would appreciate any help that I can get.
41 REPLIES 41
Victor BERRIDGE
Honored Contributor

Re: Setting up new server for non internet network with PC.

Hi,
I would start to ping myself (that means try the loopback)
what does netstat -rn produce?

You should have the netmask configured in netconf
But are you on the right lan device?

What is the output of ioscan -funC lan?

All the best
Victor
Victor BERRIDGE
Honored Contributor

Re: Setting up new server for non internet network with PC.

What is the output of lanscan?


Good luck
Victor
A. Clay Stephenson
Acclaimed Contributor

Re: Setting up new server for non internet network with PC.

The first thing that occurs to me is that you may have multiple NIC's and you are using the wrong one. Run these commands and post the results:

lanscan

Lanscan will list the interface names (e.g. lan0, lan1, ...). For each of those, also post the output of ifconfig.

e.g. ifconfig lan0

Also for each device listed under lanscan there is a Card Instance Column (0,1,2,..). For each of those, post the output of
lanadmin -sx n
e.g lanadmin -sx 0


This should allow us to spot your configuration error but we can't rule out bad hardware or missing drivers.

Finally, attach the output of ioscan -fn.

If it ain't broke, I can fix that.
Laura Rush
Advisor

Re: Setting up new server for non internet network with PC.

Lan0: flags=843{UP< BROADCAST, RUNNING, MULTICAST. INET 192.168.1.4 NETMAASK FFFFFF00 BROADCAST 192.168.1.255

Lanadmin â sx 0
Speed =10000000
Current Config = NO LINK AUTONEG

I'm working on getting you a copy of ioscan -fn. I used cat to sent the output to a file, but I'm not sure how to put it on the cd of the server in order to transfer it over to my pc. It has been 10 years since I used unix and I'm a little rusty + never actually adminstered the server...so I am learning.
A. Clay Stephenson
Acclaimed Contributor

Re: Setting up new server for non internet network with PC.

Your "NO LINK" from lanadmin is screaming at you. Translate that to bad cable: maybe you need a crossover cable (or you are inappropriately connected to the crossover port of your hub), ... or bad hardware.

You also didn't port the lanscan output. If you get your LAN connection fixed, it will be much easier to post this stuff and save us all a heap of trouble.
If it ain't broke, I can fix that.
Victor BERRIDGE
Honored Contributor

Re: Setting up new server for non internet network with PC.

What worries me here is the display...

The ifconfig seems good but
Lanadmin â  sx 0
Speed =10000000
Current Config = NO LINK AUTONEG

I just tested on a hpux11 I get speed 100 or 10
and dont have a line Current config =
Nut here No link is not good...
Check you cables do you see anything on the hubs
Laura Rush
Advisor

Re: Setting up new server for non internet network with PC.

Ok, I've tried disconnecting the hub and plugging directly into the server to the pc. I've tried several different cables...a normal lan wire that I used to connect to the internet plus an enhanced Cat 5 LAN cable. I also tried to connect from both plugs on the back of the server. (one says 10baseT console and the other says 10baseT). ipconfig doesn't show my ip when connected this way, but works fine when my normal internet connection is hooked up.

ioscan -funC lan shows:
lan 0 0/;0/0/0 btlan claimed interface hp pci 10/100bASE-tx cORE
/dev/diag/lan0 /dev/ethr0 /dev/lan0

When I try to ping the server from the server it works. i.e. Server name 192.168.1.4 at unix prompt ping 192.168.1.4.
Patrick Wallek
Honored Contributor

Re: Setting up new server for non internet network with PC.

If you are running a cable from the network port on the HP-UX box to the network port on the PC then you MUST use a cross-over cable. A normal lan cable will not work here.

What kind of hub are you using? Is it a 10/100, 10 only, 100 only? You may need to hard set the speed and duplex of the card in your HP-UX machine. That can be done with the lanadmin command.
Steven E. Protter
Exalted Contributor

Re: Setting up new server for non internet network with PC.

Once you get your NOLINK issue resolved, check this out.

ifconfig lan0

Make sure the netmask is the same as the PC. This can be read from the /etc/rc.config.d/netconf file

If you need to change netconf, don't leave the backup in /etc/rc.config.d it will get processed at boot time.

Lastly, this would appear to be a 1000 BaseT card. Maybe I'm wrong, but it needs an auto negotiate lan setting. It might now work with all low end hubs.

The netmask issue seems to stand out to me assuming your lanadmin shows link.

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
Patrick Wallek
Honored Contributor

Re: Setting up new server for non internet network with PC.

No, that is a 10/100 card. It's the built-in LAN on the rp2430. It will support 10HD, 100HD and 100FD.
A. Clay Stephenson
Acclaimed Contributor

Re: Setting up new server for non internet network with PC.

If memory serves these boxes don't have an LED that indicates Link Status but you should see a link indicator on your hub at the other end of the same cable. If connecting to a hub, you want to use a stright-thru cable. You configuration appears fine and you do not want the 10-BaseT console. If you can't get a link indication on the hub then nothing is going to work.

At this point I would reboot the serve and power cycle the hub after making sure a stright-thru cable (ie non-xover) is connected between the server and the hub.
If it ain't broke, I can fix that.
Laura Rush
Advisor

Re: Setting up new server for non internet network with PC.

Ok, What is a cross over cable? Can I get one at Comp USA or somewhere like that?
Patrick Wallek
Honored Contributor

Re: Setting up new server for non internet network with PC.

Yes, you can get a cross-over cable at CompUSA.
A. Clay Stephenson
Acclaimed Contributor

Re: Setting up new server for non internet network with PC.

Note: If you are connecting both your PC and HP-UX both to a hub, you don't need (and can't use) a crossover cable. If you are directly connecting a host (e.g a PC) to another host then you need a xover cable.

Also, if you are connecting a hub to a larger network (another hub or port on a switch) then you use either a xover cable OR a stright-thru cable but connected to a special port on the hub. The latter is the more common nowadays.


I strongly urge you to avoid the xover cable and use a hub because the link indicator on the hub can at least be used to determine if you have an active port on the other end. If you can't get a link indication then all this is pointless since the server has a driver installed and lanscan sees the card. This indicates that the interface is not completely bad and that the correct driver is in use but it does not (nor does lanadmin or ifconfig output) mean that the card is good. This is really starting to look like a bad network connection but it could be a very trivial cabling issue. The other obvious question is "are the ports you are using on this hub known to be good?" Have you tried them somewhere else?

If it ain't broke, I can fix that.
Laura Rush
Advisor

Re: Setting up new server for non internet network with PC.

I am getting green lights on the hub when it is connected, however my pc doesn't seem to recognize the signal when I connect the LAN wire to it. In other words, IP config does not show my IP after I connect and I don't get a connected window on my pc.

I did notice that I get a message when I boot the server which says that DCHP is disabled....does that mean anything?

I am using this server to do software data conversions, and will make direct connections to the Oracle database, which will reside on this sever. Right now, I am the only one connected. In the future we will have many technicians hooked up to it through a hub. For now, the hub that I am using, is a 16 port 100mbps Fast Ethernet Hub. I am using ports 1X and 2X, but have tried to use 3X and 4X, and that didn't work either. This is a hub that we had lying around and I picked it up for testing, so I am now wondering if it is compatible. However, I do see green lights when I connect, so from what you are saying, it should be good. I was going to buy the crossover cable, but from what Clay is saying, I should not.
Also, I am using the 10 base T console port due to instructions from the installation tech from HP....you are indicating that I should use the other slot. Their are only two ports. Although I did try switching them already.
Could this whole problem be from how Windows is setup?
Victor BERRIDGE
Honored Contributor

Re: Setting up new server for non internet network with PC.

Are you talking HPUX side?
Yes its normal to disable DHCP unless you use a DHCP server somewhere...
Is your hub a hub or a switch?
And no you should not use the console port...

The other port can easily be configured using sam since you are starting you SYSADM adventure (welcome!)
But do you have a console connected?


All the best
Victor
Laura Rush
Advisor

Re: Setting up new server for non internet network with PC.

Also, Patrick mentioned that I may need to hard set the speed and duplex of the hub in my HP-UX machine with the lanadmin command. Does this still need to be done if I am getting green lights on the hub?
Laura Rush
Advisor

Re: Setting up new server for non internet network with PC.

Yes, I have a console connected. My hub is a hub and I was playing around with SAM yesterday after reading some docs, but not sure exactly what needed to be configured.
Thanks, Victor
Victor BERRIDGE
Honored Contributor

Re: Setting up new server for non internet network with PC.

Hi Laura,
Some equipment work well letting the lan interface negociate...
But when problems occurs...
Fixing the speed should end the risk but means you do not negociate anymore, both side!
Can you configure your hub?
If not leave it for now to autoneg (well thats what I would do...)
Because the most important now is to get the connection, after we can tune...
What is the output of ioscan -funC lan?

Good luck
Victor
Laura Rush
Advisor

Re: Setting up new server for non internet network with PC.

ioscan -funC lan shows:
lan 0 0/;0/0/0 btlan claimed interface hp pci 10/100bASE-tx cORE
/dev/diag/lan0 /dev/ethr0 /dev/lan0
Laura Rush
Advisor

Re: Setting up new server for non internet network with PC.

Hub can not be configured.
Victor BERRIDGE
Honored Contributor

Re: Setting up new server for non internet network with PC.

So your only choice is to configure lan0 correctly using sam...

All the best
Victor
Victor BERRIDGE
Honored Contributor

Re: Setting up new server for non internet network with PC.

Which seems to be the case (I think...)
So try to use the other socket and see if anything is happening!

Good luck
Victor
Laura Rush
Advisor

Re: Setting up new server for non internet network with PC.

Ok Victor, some things just occured to me. I am looking at SAM, but I could have just used VI to look at the etc hosts file on the server. Shouldn't the etc host file have the address and computer name of the remote terminal (my laptop)? And shouldn't the etc host file on windows have an entry of of my server and server name?