Operating System - HP-UX
1837777 Members
3310 Online
110119 Solutions
New Discussion

I can't telnet or ping to another server

 
Teck Sim
Frequent Advisor

I can't telnet or ping to another server

After cold-install of HP-UX 11 on server A, I can't telnet to server B from server A. Please help.

Thanks in advance.
21 REPLIES 21
Dave La Mar
Honored Contributor

Re: I can't telnet or ping to another server

Verify /etc/hosts for your server(s) entries - i.e.

10.0.0.10 minga minga
127.0.0.1 localhost loopback
10.0.0.9 gumby
10.0.0.159 bcprod
10.0.0.37 maia
10.0.0.186 icarus
10.0.0.76 XEROX1
10.0.0.77 XEROX2

Best of luck.

dl
"I'm not dumb. I just have a command of thoroughly useless information."
Martin Johnson
Honored Contributor

Re: I can't telnet or ping to another server

Have you configured the network parameters on system? /etc/set_parms hostname ip_address addl_netwrk

Have you added the appropriate nameservers to /etc/resolv.conf?

Have you set up nsswitch.conf?

HTH
Marty
PIYUSH D. PATEL
Honored Contributor

Re: I can't telnet or ping to another server

Hi,

Check the entries in /etc/hosts for the server B.

Check /etc/nsswitch.conf and /etc/resolv.conf

Also check the lan card of Server A with ifconfig lan0 command to check whether the lan card is up or down.

If down, #ifconfig lan0 up

Alos check the lan card settings and set it to 100 Mbps instead of Auto Negotiation.

Piyush
James R. Ferguson
Acclaimed Contributor

Re: I can't telnet or ping to another server

Hi:

Have you correctly configured your IPaddress, gateway and subnet mask in 'etc/rc.config.d/netconf'? You can do this manually or via 'sbin_set_parms'.

Regards!

...JRF...
PIYUSH D. PATEL
Honored Contributor

Re: I can't telnet or ping to another server

Hi,

After you have checked all the paramters also check the output of netstat -ni.

Check whether you can ping to the localhost 127.0.0.1

If not then check this entry in /etc/hosts
127.0.0.1 localhost loopback

Piyush
JHL_1
Frequent Advisor

Re: I can't telnet or ping to another server

Begin by checking the integrity of the just-rebooted A box.

First - ping the IP of the A server FROM the A server (this will check if it's own card is running)
Second - Check SAM and see if the card is enabled/disabled).
Three - Check the logs. Are there any instances of errors indicating "...cable connect error"?

Ok, this may sound weird but on a few servers I've had to remove the network cable and then re-insert it in order to get the card to work. I later found out that there were patch/driver issues

Good luck

Michael Tully
Honored Contributor

Re: I can't telnet or ping to another server

If none of the advice is of assistance, please post any messages that you are receiving/exact procedure your doing.
Anyone for a Mutiny ?
harry d brown jr
Honored Contributor

Re: I can't telnet or ping to another server

Of course addressing this might help also:

This member has assigned points to 59 of 145 responses to his/her questions.

http://forums.itrc.hp.com/cm/TopSolutions/1,,CA713641!1!questions,00.html


live free or die
harry
Live Free or Die
jean-yves poch
Advisor

Re: I can't telnet or ping to another server


Hi,

check with :
dmesg
cat /var/adm/syslog/syslog.log
cat /var/adm/rc.log

If no problem appears then
ping the server B with the name and, then
ping with Ip address.

check the interface in /etc/rc.config.d/netconf for
auto-negoctation, 10HD,100FD.

If the ping is alive, then
check ifconfig lan0 or lan1, ... and
verify the netmask

And, verify thes routes witch netstat -r
If netstat -r is apparently hang
type Ctrl + C, and
try netstat -rn.
If OK then try arp -a.
If arp command is hang (ctrl+c), then
the problem is the name services (NIS, DNS, /etc/resolv.conf)

If all is OK, then try a rlogin command,or/and
telnet SeverB 25 (SMTP port).
Maybe this server use tcp_wrapper.

If the Server B is a Solaris machine, sniff with "snoop between ServerA and ServerB"


Good luck

Jean-Yves
pitstop
Ravi_8
Honored Contributor

Re: I can't telnet or ping to another server

Hi, Teck

It looks like that you haven't configured IP on machine A.
#set_parms initial will do this.

in /etc/hosts file of machine A add the Ip and name of machine B.
never give up
Charles Harris
Super Advisor

Re: I can't telnet or ping to another server

Just a quick thought, asuming all networking config is ok on server b, is inetd running?

Worth a look if everything else seems fine...

Cheers,

-ChaZ-
Teck Sim
Frequent Advisor

Re: I can't telnet or ping to another server

I have tried all the above, and nothing really helps. I did reboot the system. Would like to continue to receive advises.

P.S. This message is for Harry jr. Are you giving advices or getting points. May be I am not ready to give any point just yet.

Thanks.
Rita C Workman
Honored Contributor

Re: I can't telnet or ping to another server

Hi Teck Sim,

Many of the folks above have given you great info on what you need or can do to get your newly installed o/s going.
BUT....when I cold install a box I generally have made my second step:
Checking and installing the driver for my lancard.
Example:
The last box I did a cold install on was a K370. Lancard HP-PB 100BaseT that needed driver loaded from Apps CD (J2759BA). Then a reboot and a quick adjustment to the ~/netconf files....and it's networking. Now I can go and do all those tips the other folks have given you above..

Hope this helps,
Rita
Joseph C. Denman
Honored Contributor

Re: I can't telnet or ping to another server

Teck,

You are really not giving us much to work with!!!?????

Please post:

ifconfig info
netstat -rn info
Any errors being returned.

Can't telnet is very vague.

...jcd...
If I had only read the instructions first??
Martin Johnson
Honored Contributor

Re: I can't telnet or ping to another server

have you done a "lanscan"? Are all your lan cards UP and supported?

HTH
Marty
PIYUSH D. PATEL
Honored Contributor

Re: I can't telnet or ping to another server

Hi Teck,

If you can do a posting of the outputs from various commands, we can give you a exact solution.

First of all whether your card has got detected or not and whether the devie files for the lan card are created or not.

# ioscan -fnC lan
#ioscan -fn | grep lan

If it has been detected then whether the state is "CLAIMED".

Piyush
Teck Sim
Frequent Advisor

Re: I can't telnet or ping to another server

Piyush, this is the output:

#ioscan -fnC lan

Class I H/W Path Driver S/W State H/W Type Description

lan 0 8/4/1/0 btlan4 unclaimed
unknown PCI Ethernet

lan 1 8/16/6 lan2 claimed
Interface Build-in lan
/dev/diag/lan1 /dev/ether1


Thanks.
Victor_5
Trusted Contributor

Re: I can't telnet or ping to another server

Did you check /etc/services and /etc/inetd.conf, also try ftp to see whether it can work, maybe you can find some hints.

PIYUSH D. PATEL
Honored Contributor

Re: I can't telnet or ping to another server

Hi,

From the output of the ioscan, it is clear that your primary lancard lan0 is not claimed in the kernel and the device files are not made for that card. hence the lan0 will not function.

You have another card in the system lan1 and it is functioning properly. Hence you can always go to SAM and set the ipaddress on the second lan card and configure it.

If you want the primary lan card to be working properly then you would have to install the required lan card drivers for that card.
1. Do an insf -e and see if the new device files for lan0 are created. If not then,

You can go to kernel subsystems and add the driver for the lan card. Also see that btlan4 driver state ( IN or OUT )

It depends which card is lan0 - PCI 100BaseT, HSC 10/100 BaseT....make model etc

Pls let me know what is the model of the lan card, PCI, HSC. The server model no. also

Regards,
Piyush
Teck Sim
Frequent Advisor

Re: I can't telnet or ping to another server

I switched to use lan0 instead of lan1. Somehow lan1 got screw up. But anyway, thanks to all of your great helps! Thanks a lot.
IT Response
Esteemed Contributor

Re: I can't telnet or ping to another server

I have seen that when you do a cold install of an OS and have not loaded the general patch bundle ping and telnet may not work. Verify that you have the patches loaded. Verify that the card has the correct IP and gateway assigned to it by doing a netstat -rn. If any are a problem you may need to load the patches and configure the card under SAM or to the config files such as /etc/hosts, /etc/rc.config.d/netconf. Also see if you can ping and telnet to yourself. Like the 127.0.0.1 this will indicate that you have the software apps running. check that the link is on the card. you may need to do a lanadmin -x lanX (X is the value of the card) to check the speed and duplex settings. You want to make sure that the setting match that of the port on the router.