Operating System - HP-UX
1836456 Members
2406 Online
110101 Solutions
New Discussion

Re: Telnet connecting problem

 
M.sureshkumar
Regular Advisor

Telnet connecting problem

Hi All,

In local domain(network),telnet is working fine.But i can not ping or telnet to other network(domain). i can given below telnet errror.

Error:
telnet: Unable to connect to remote host: No route to host

Thanks&regards,
M.Suresh
19 REPLIES 19
Naveej.K.A
Honored Contributor

Re: Telnet connecting problem

Hi suresh,

You have not defined the proper route / gateway to the other network/domain.

what is the IP address of the gateway??
what is the network to which you are trying to connect??
netstat -rv??

with best wishes
Naveej
practice makes a man perfect!!!
KapilRaj
Honored Contributor

Re: Telnet connecting problem

traceroute

Check whethr u have proper gateways !

Kaps
Nothing is impossible
Sritharan
Valued Contributor

Re: Telnet connecting problem

Hi,

Need more details about your network, if you want to access a network that is out of your subnet, you have to add a routing to enable you to communicate other LAN.

Please give us details on your local network and also the other network that you want to access..

Thanks & Regards
Sri
Known is a drop...unknown is an ocean -> quote from a movie
M.sureshkumar
Regular Advisor

Re: Telnet connecting problem

Hi

I checked in /etc/rc.config.d/netconf file, the default gateway ip entry was correct.

In netstat -rv, the default gateway entry was missed.i am giving netstat -rv output,in this output two lan card status and local host status are present but default staus was missed.

# netstat -rv
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface
test1/0xffffffff
localhost UH 0 21 lo0
test21/0xffffffff
localhost UH 0 10140 lo0
localhost/0xffffffff
localhost UH 0 124 lo0
xx.xxx.xx/0xffffff00
test1 U 9 773144 lan1
xx.xxx.xx/0xffffff00
test1 U 0 0 lan0
M.sureshkumar
Regular Advisor

Re: Telnet connecting problem

Hi

All different ip entries are added in hosts.deny file.In this file, telnet,ftp and rlogin entries are available.
Naveej.K.A
Honored Contributor

Re: Telnet connecting problem

hi suresh,

have a look at this thread.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=592912

regds
Naveej
practice makes a man perfect!!!
Bharat Katkar
Honored Contributor

Re: Telnet connecting problem

Suresh,
Don't forget to assign points to whoever helps you to find the solutions. This was told you in last sesson also.
You need to know a lot to actually know how little you know
KapilRaj
Honored Contributor

Re: Telnet connecting problem

Suresh,

It is always recommended to keep mininum static routes on any TCP/IP host. So the best way to deal is to have a default route takes care of all such routing information.

Yes you could have diffrent routers for diffrent networks , i.e. If u have two interfaces and they are connected to diffrent networks you could have a router per interface. As per your comments I can not see a default route itself , Can you check a similer system in the LAN and clone it over to this host ?.

Also do u really have two networks ? if u do not have keep a single route and add a route on to the routing device that you have used as defualt gateway !

Good Luck.

Kaps
Nothing is impossible
M.sureshkumar
Regular Advisor

Re: Telnet connecting problem

Hi Kapil,

we have using two unix server,out of 2, one server is working fine,but 2nd server was problem.

Actually we are connected different domain ie,11.256.58..,11.256.70..,11.256.71...
I checked both server configuration but both are same entries.i do't know what is problem?



KapilRaj
Honored Contributor

Re: Telnet connecting problem

can u post the following o/p s.

on both problematic and working one's

ifconfig -a
netstat -rn
traceroute

Kaps
Nothing is impossible
Naveej.K.A
Honored Contributor

Re: Telnet connecting problem

hi suresh,

compare the output of netstat -rv for both the servers..

also do a traceroute as kapil has mentioned. and see till where the packets are going.

this should give you a better picture.

with best wishes
naveej

kapil, check your yahoo mail!!!
practice makes a man perfect!!!
Kiyoshi Miyake
Frequent Advisor

Re: Telnet connecting problem

hi,

Can you set manually default gateway using route command?

e.g:
# route add default 192.168.0.1

Are there any error message?

If manually set ok, you shuold check /etc/rc.log.
Are there any error in /etc/rc.log?

Thanks.
M.sureshkumar
Regular Advisor

Re: Telnet connecting problem

Hi,

problem was solved i.e i removed default gate way ip and restart system after i entered gateway ip and restart,then it pinging fine and telnet also worked.but now problem is i connected to other network thr' telnet is connecting,but client side(other domain)can not connect to this domain thr' telnet.This problem only in telnet.

Problem:

From 10.256.85.15 to 10.256.86.15 telnet connecting properly.

From 10.256.86.15 to 10.256.85.15 telnet not connected.

thanks,
M.Suresh


KapilRaj
Honored Contributor

Re: Telnet connecting problem

u r sureshkumar or M.Sureshkumar ?.

Anyway do u have subnets ?. i.e. can u post the info what i have asked for.

I think 10.X.X.X are non-routable network (?!)

Kaps
Nothing is impossible
Rgomes
Valued Contributor

Re: Telnet connecting problem

Hi,

10.256.x.x is not a valid IP address. Pls check!

10.x.x.x is routable but only in private LAN, not in public network, I mean, on internet.

regards,
richard
M.sureshkumar
Regular Advisor

Re: Telnet connecting problem

hi,
i giving only examples,not original ip's.

thanks,
suresh.
Rgomes
Valued Contributor

Re: Telnet connecting problem

As per Kapil stated, pls give us the following:

ifconfig -a
netstat -rn
traceroute ( from both telnet box)

regards,
Richard
wang_27
New Member

Re: Telnet connecting problem

1.plz confirm the inetd work is good(in the destination domain test)
2.route add host host-ipaddress
if add one static route of this server can telnet,this is your local server route table question.
Abdul Majeed Lardhi
Regular Advisor

Re: Telnet connecting problem


As per Kapil stated, pls give us the following:

ifconfig -a
netstat -rn
traceroute ( from both telnet box)

regards,
Richard