Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Ping issues

HP-UX


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 07-21-2016
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 7 December 2016, 9:59 PM EST
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Ping issues

I have 2 servers. I want to be able to ping both ways.
Server A cannot ping to server B, but server B can ping to Server A.
Server A ip address : 10.61.1.119
Server B ip address : 10.67.26.89

This is the routing table for Server A :


Code:
L28ts03:root # netstat -rn
Routing tables
Destination           Gateway            Flags   Refs Interface  Pmtu
127.0.0.1             127.0.0.1          UH        0  lo0        4136
10.10.10.2            10.10.10.2         UH        0  lan3       4136
10.61.1.119           10.61.1.119        UH        0  lan0       4136
10.44.32.11           10.61.1.1          UGH       0  lan0       1500
10.61.1.0             10.61.1.119        U         2  lan0       1500
10.10.10.0            10.10.10.2         U         2  lan3       1500
10.67.26.89           10.61.1.1          UGH       0  lan0       1500
127.0.0.0             127.0.0.1          U         0  lo0        4136
default               10.61.1.1          UG        0  lan0       1500
L28ts03:root #

This is the routing table for Server B:


Code:
[root@l28soadb1 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.70.21.65     0.0.0.0         UG    0      0        0 bond0
10.67.26.0      10.67.26.65     255.255.254.0   UG    0      0        0 bond1
10.67.26.64     0.0.0.0         255.255.255.192 U     0      0        0 bond1
10.70.21.64     0.0.0.0         255.255.255.192 U     0      0        0 bond0
10.95.10.0      0.0.0.0         255.255.255.0   U     0      0        0 eno4
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 bond2
169.254.0.0     0.0.0.0         255.255.0.0     U     1006   0        0 eno4
169.254.0.0     0.0.0.0         255.255.0.0     U     1009   0        0 eno52
169.254.0.0     0.0.0.0         255.255.0.0     U     1010   0        0 bond0
169.254.0.0     0.0.0.0         255.255.0.0     U     1011   0        0 bond1
169.254.0.0     0.0.0.0         255.255.0.0     U     1012   0        0 bond2
172.16.100.0    0.0.0.0         255.255.255.0   U     0      0        0 bond2
192.168.0.0     10.67.26.65     255.255.0.0     UG    0      0        0 bond1
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
[root@l28soadb1 ~]#

Server A is a HP-UX server. Server B is a Linux server.
I added the route in this Server A to the destination server (Server B) with this command :


Code:
# route add net 10.67.26.89 netmask 255.255.255.255 10.61.1.1 1

This added the route, however, I am still not able to ping to 10.67.26.89.

Could this be a firewall issue or something else?
Sponsored Links
    #2  
Old Unix and Linux 07-21-2016
zaxxon's Unix or Linux Image
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 
Join Date: Sep 2007
Last Activity: 24 January 2017, 7:37 AM EST
Location: St. Gallen, Switzerland
Posts: 6,516
Thanks: 164
Thanked 536 Times in 467 Posts
Does 10.61.1.1 have a route to 10.67.26.0/23? I mean the router that has/is 10.61.1.1.

Maybe check additionally with traceroute how far you can get.
Sponsored Links
    #3  
Old Unix and Linux 07-25-2016
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 7 December 2016, 9:59 PM EST
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
This is the output of traceroute. Looks like it does not go anywhere :


Code:
L28ts03:root # traceroute 10.67.26.89
traceroute: Warning: Multiple interfaces found; using 10.10.10.2 @ lan3
traceroute to 10.67.26.89 (10.67.26.89), 30 hops max, 40 byte packets
 1  * * *
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
**** max ttl expired before reaching 10.67.26.89 (10.67.26.89)
L28ts03:root #

    #4  
Old Unix and Linux 07-25-2016
zaxxon's Unix or Linux Image
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 
Join Date: Sep 2007
Last Activity: 24 January 2017, 7:37 AM EST
Location: St. Gallen, Switzerland
Posts: 6,516
Thanks: 164
Thanked 536 Times in 467 Posts
Maybe check with the network guys so that they can check/add a route to that network.
Sponsored Links
    #5  
Old Unix and Linux 08-04-2016
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 24 January 2017, 8:50 AM EST
Location: In the leftmost byte of /dev/kmem
Posts: 5,302
Thanks: 94
Thanked 1,435 Times in 1,067 Posts
Quote:
Originally Posted by anaigini45 View Post
I added the route in this Server A to the destination server (Server B) with this command :


Code:
# route add net 10.67.26.89 netmask 255.255.255.255 10.61.1.1 1

This added the route, however, I am still not able to ping to 10.67.26.89.
The route command says the following: if you got a packet for 10.67.26.89, then send it to 10.61.1.1 and the host owning this interface will know how to deal with it. Do you even get to 10.61.1.1? If not, this is the problem! (Tip: if you use ping to test specific connections you assume that the ICMP protocol - which is used by ping - is allowed. This is usually not the case in firewalled environments. They usually drop ICMP packets silently.

Use this:

Code:
telnet <targethost> <targetport#>

for tests then. You won't get a telnet connection at all, but you will find out if you get even there (connection attempts fails, usually with some banner from the application waiting behind the port) or not (connection times out with "host unreachable" or so).

In general systems should not know how to route (quite like routers should not do other work besides routing). This is why you should not explain to the routing table of your system about how to use the foreign address 10.61.1.1 to get to some remote server because you need to tell it how to get to 10.61.1.1 itself first. Let the routers decide this and tell the system which interface to use to send the packet:


Code:
# route add net 10.67.26.89 netmask 255.255.255.255 <your interfaces IP> 1

and the router adjacent to this interface should be able to forward it on its own. Otherwise your network design is flawed.

I hope this helps.

bakunin
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to get reason for ping failure using perls Net::Ping->new("icmp");? tavanagh Shell Programming and Scripting 4 06-14-2013 10:27 AM
Animation Ping on Solaris Like Cisco Ping gokcell Shell Programming and Scripting 1 12-04-2011 05:12 AM
Can't Ping Rutgerncas IP Networking 7 12-01-2011 09:31 PM
Erratic ping time issues gnat IP Networking 0 07-22-2009 07:28 PM
can ping doing this?.. demhyt Shell Programming and Scripting 5 09-21-2008 09:34 AM



All times are GMT -4. The time now is 11:12 AM.