Operating System - HP-UX
1820478 Members
2948 Online
109624 Solutions
New Discussion юеВ

2 IPs, telnet,ftp not working on 2nd IP

 
Steve Huizenga
Frequent Advisor

2 IPs, telnet,ftp not working on 2nd IP

I have an 11.11 machine with an ifconfig of lan0: flags=843
inet 10.169.200.224 netmask ffffff00 broadcast 10.169.200.255. I setup a second IP with ifconfig lan0:1 inet 128.166.100.224 netmask 255.255.255.0 broadcast 128.166.100.255. I can ping both IPs from other boxes but I cannot ftp or telnet to the second IP. I get connection refused. Any ideas?
13 REPLIES 13
Massimo Bianchi
Honored Contributor

Re: 2 IPs, telnet,ftp not working on 2nd IP

hi,
did you check
/var/adm/inetd.sec ?

Massimo
Jim Mallett
Honored Contributor

Re: 2 IPs, telnet,ftp not working on 2nd IP

Check your /var/adm/inetd.sec as Massimo mentioned, that is for extra securiry on your inetd daemon.

Also, compare your /etc/inetd.conf files on each machine. Make sure that ftp and telnet are not #pounded out on the second box. If the service is not available you will get a connection refused.

Jim
Hindsight is 20/20
Steven E. Protter
Exalted Contributor

Re: 2 IPs, telnet,ftp not working on 2nd IP

change the IP on lan0:1 to

10.1.169.100.225 or another available address in that series.

Does ftp and telnet work?

If so the networking is at fault.

Is there a firewall involved between you and the machine?

Might want to post up that /var/adm/inetd.sec file for us to look at, if it exists.

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
Steve Huizenga
Frequent Advisor

Re: 2 IPs, telnet,ftp not working on 2nd IP

Changing the IP made no difference. Telnet and ftp work fine when using the 10.169.200.224 IP. No firewall. /var/adm/inetd.sec has one uncommented line:
telnet allow
Steven E. Protter
Exalted Contributor

Re: 2 IPs, telnet,ftp not working on 2nd IP

Jsut for grins, remove inetd.sec and see if it makes a difference.

This is a bit of a head scratcher.

Is it possible that there is a conflict with another IP address on the network?

Another idea:

inetd -k

inetd -l

This turns on logging in /var/adm/syslog/syslog.log

Take a look and see if there is anything going on in the server when the connection is attempted.

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
Ron Kinner
Honored Contributor

Re: 2 IPs, telnet,ftp not working on 2nd IP

Are the other boxes local (same subnet) or remote (different subnet, router in the way)?


If remote, have you tried a local connection?

Are you trying to reach them via the new IP address or via hostname?

Did you ping by name or ip address?

Did you put the new address in your /etc/hosts files with a different hostname or did you try to use the same name again?



Ron

Steve Huizenga
Frequent Advisor

Re: 2 IPs, telnet,ftp not working on 2nd IP

I turned logging on. When I try ftpping 128.166.100.224 I get connection refused and no entry in syslog. When I try ftpping 10.169.200.224 I get connected and I get
Jul 8 13:21:25 grus inetd[13978]: ftp/tcp: Connection from scutum (10.169.200.104) at Tue Jul 8 13:21:25 2003 Jul 8 13:21:31 grus ftpd[13978]: FTP LOGIN FROM scutum.cor.labinal.snecma [10.169.200.104], root
Jul 8 13:21:33 grus ftpd[13978]: FTP session closed
in syslog.
Jim Mallett
Honored Contributor

Re: 2 IPs, telnet,ftp not working on 2nd IP

On the second IP, can you FTP or Telnet to itself? That may help narrow things down.

Hindsight is 20/20
Suresh Patoria
Super Advisor

Re: 2 IPs, telnet,ftp not working on 2nd IP

Hi,

i want to have you put the entry in /etc/hosts file and both IP address point to same host name

and also check the /var/adm/inetd.sec file both the IP address entered

and also first check the are you able to do telnet and ftp to you lan0(10.169.200.255)
Steven E. Protter
Exalted Contributor

Re: 2 IPs, telnet,ftp not working on 2nd IP

Contents of /etc/rc.config.d/netconf would be helpful.

Is the behavior the same after boot as if as root you manually assign the same IP addresses with ifconfig command? If ifconfig works and netconf does not, we have our culprit.

Any errors in /etc/rc.log ????

From outside the box:

traceroute (tracert in windows) 10.169.200.224

then

traceroute 128.166.100.224

Lets see if we are getting hung up on a router.

lanadmin -x 0
lanadmin -x 1

Might be a clue there.

Post any output that might help.

SEP
I do assign points to questions in progress.

:-)

http://66.34.90.71/ITRCForumsEtiquette/
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
twang
Honored Contributor

Re: 2 IPs, telnet,ftp not working on 2nd IP

As you said that you can ping both IPs from other boxes, do you try to ftp or telnet to the problem IP?
Ron Kinner
Honored Contributor

Re: 2 IPs, telnet,ftp not working on 2nd IP

Seems to me if you were reaching the box then you would get a log file on it about denying telnet from host x. Since you don't I wonder if you might have a second box with the same IP address which is answering the ping.

Also when you set up your second IP address did you inform the routers of this second subnet?

Ron
Massimo Bianchi
Honored Contributor

Re: 2 IPs, telnet,ftp not working on 2nd IP

Hi,
check also with "arp -a" if you are telnetting to your box or to another one....
HTH,
Massimo