Operating System - HP-UX
1847142 Members
6121 Online
110263 Solutions
New Discussion

PC ping to 2 HP-UX with difft subnets

 
Basheer_2
Trusted Contributor

PC ping to 2 HP-UX with difft subnets

Hello

I have 2 HP-UX boxes with IP
Box 1) 192.1.1.253
Box 2)192.1.12.254

box2 can telnet to box1.
from my PC I can telnet to box2 also can run xterm using reflections.

I can NOT ping/telnet Box1 from PC.

What is missing.

thanks
Basheer


10 REPLIES 10
Simon Hargrave
Honored Contributor

Re: PC ping to 2 HP-UX with difft subnets

What is the IP address if your PC?

What is the subnet mask set on your PC, and the 2 servers? 255.255.255.0? 255.255.0.0?
Jeff Schussele
Honored Contributor

Re: PC ping to 2 HP-UX with difft subnets

Hi Basheer,

Are these subnets in different network domains - i.e. one's in subnet1.com & the other in subnet2.com?

If so then you may have one or two (or both) problems:

1) You need to have both in the search line of the resolv.conf file - EX:

domain subnet1.com
search subnet1.com subnet2.com

OR

2) One of these hosts (or the PC) is not in (or in correctly) DNS. Check both forward - by name - and backward - by IP - resolution.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Carlo Corthouts
Frequent Advisor

Re: PC ping to 2 HP-UX with difft subnets

Checking the routing.

This might just be a case where you can not reach the box from your pc because of how the routing is setup.

Regards,


Carlo
Basheer_2
Trusted Contributor

Re: PC ping to 2 HP-UX with difft subnets

Thanks for the Quick Reply.

Here is some more info.

PC
IP Adr 192.1.12.240
subnet: 255.255.255.0
Default Gateway: 192.1.12.2

Box1:
IP 192.1.1.253
Default gateway is 192.1.1.1

Box2:
IP 192.1.12.254
Default Gateway 192.1.12.2

Thanks
Rick Garland
Honored Contributor

Re: PC ping to 2 HP-UX with difft subnets

Sounds like you need a route added to the routing table on your PC. What is the netstat -nr output say? Does your PC have a route to that host/network? If not add the route so it is in the PCs routing table
Basheer_2
Trusted Contributor

Re: PC ping to 2 HP-UX with difft subnets

Thanks Rick

How do I do route to my PC.
here is the netstat -nr on my PC
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x1000003 ...00 90 27 df 77 6a ...... Intel(R) PRO Adapter
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.1.1.1 192.1.12.240 1
0.0.0.0 0.0.0.0 192.1.12.2 192.1.12.240 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.1.12.0 255.255.255.0 192.1.12.240 192.1.12.240 1
192.1.12.240 255.255.255.255 127.0.0.1 127.0.0.1 1
192.1.12.255 255.255.255.255 192.1.12.240 192.1.12.240 1
224.0.0.0 224.0.0.0 192.1.12.240 192.1.12.240 1
255.255.255.255 255.255.255.255 192.1.12.240 192.1.12.240 1
Default Gateway: 192.1.12.2
===========================================================================
Persistent Routes:
None

Route Table



Rick Garland
Honored Contributor

Re: PC ping to 2 HP-UX with difft subnets

If I may be sarcastic, I don't do windows.

It appears that you can use a route entry for the host at the 12.254 address. How you add routes in Windows is beyond me.

Dave Olker
Neighborhood Moderator

Re: PC ping to 2 HP-UX with difft subnets

You can use the "route" command to display the routing table and add new routes.

C:\> route print

will print them

C:\> route add

will add them.

You can issue the "route add" command with no options and a usage string will display showing you which options to enter.

Hope this helps,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Ron Kinner
Honored Contributor

Re: PC ping to 2 HP-UX with difft subnets

Luckily for you I do do windows.

Your problem is seen on the first few lines of your routing table:

"Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.1.1.1 192.1.12.240 1
0.0.0.0 0.0.0.0 192.1.12.2 192.1.12.240 1"


I thought at first that you had fallen into the Windows trap of assigning a default gateway to each interface. Even tho windows invites you to do this it doesn't understand how to handle two gateways. However, I don't see a second interface in your routing table so I guess you must have added it manually. It needs to be removed in order for this to work.

route delete 0.0.0.0 mask 0.0.0.0 192.1.1.1

should do it.

I trust you can now ping to the gateways and to box1?

ping 192.1.12.254
ping 192.1.1.1
ping 192.1.1.253


Ron
Basheer_2
Trusted Contributor

Re: PC ping to 2 HP-UX with difft subnets

Thanks Ron,

I did as you said,
after the route delete command, I was not able to connect to the internet.

I did this to get onto internet

route -p add 0.0.0.0 mask 0.0.0.0 192.1.12.2 metric 1

This allowed me to get onto internet.

Still Can't ping 192.1.1.253

here is my route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x1000003 ...00 90 27 df 77 6a ...... Intel(R) PRO Adapter
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.1.12.2 192.1.12.240 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.1.12.0 255.255.255.0 192.1.12.240 192.1.12.240 1
192.1.12.240 255.255.255.255 127.0.0.1 127.0.0.1 1
192.1.12.255 255.255.255.255 192.1.12.240 192.1.12.240 1
224.0.0.0 224.0.0.0 192.1.12.240 192.1.12.240 1
255.255.255.255 255.255.255.255 192.1.12.240 192.1.12.240 1
Default Gateway: 192.1.12.2
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 192.1.12.2 1

Route Table

Thanks for all the help