ping from public IP


 
Thread Tools Search this Thread
Special Forums IP Networking ping from public IP
# 1  
Old 04-20-2011
ping from public IP

I have 2 ethernet cards at my server,OEL5.5. One is for Public LAN and another is for private to install Oracle RAC. I am facing the following problem


Code:
[root@itdb1 ~]# ping 192.168.165.120
PING 192.168.165.120 (192.168.165.120) 56(84) bytes of data.
64 bytes from 192.168.165.120: icmp_seq=1 ttl=64 time=1.92 ms
64 bytes from 192.168.165.120: icmp_seq=2 ttl=64 time=0.140 ms
64 bytes from 192.168.165.120: icmp_seq=3 ttl=64 time=0.136 ms

--- 192.168.165.120 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.136/0.732/1.920/0.840 ms


[root@itdb1 ~]# ping 192.168.163.1
PING 192.168.163.1 (192.168.163.1) 56(84) bytes of data.
From 192.32.0.1 icmp_seq=1 Destination Host Unreachable
From 192.32.0.1 icmp_seq=2 Destination Host Unreachable
From 192.32.0.1 icmp_seq=3 Destination Host Unreachable

--- 192.168.163.1 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5019ms
, pipe 3


[root@itdb1 ~]#

When I want to ping any IP like 192.168.163.X, it is using my second ethernet card which is configured for private VLAN/Interconnect.
How can i get rid of this problem?

Regards
# 2  
Old 04-20-2011
What's your routing table look like?
# 3  
Old 04-20-2011
netstat -rn
# 4  
Old 04-21-2011
Thank you all pointing to the solution. The issue is resolved-


Code:
[root@itdb2 ~]# ping 192.168.165.120
PING 192.168.165.120 (192.168.165.120) 56(84) bytes of data.
64 bytes from 192.168.165.120: icmp_seq=1 ttl=64 time=3.02 ms
64 bytes from 192.168.165.120: icmp_seq=2 ttl=64 time=0.131 ms
64 bytes from 192.168.165.120: icmp_seq=3 ttl=64 time=0.102 ms

--- 192.168.165.120 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.102/1.087/3.029/1.373 ms
[root@itdb2 ~]# ping 192.168.163.1
PING 192.168.163.1 (192.168.163.1) 56(84) bytes of data.
From 192.32.0.2 icmp_seq=1 Destination Host Unreachable
From 192.32.0.2 icmp_seq=2 Destination Host Unreachable
From 192.32.0.2 icmp_seq=3 Destination Host Unreachable

--- 192.168.163.1 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3008ms
, pipe 3
[root@itdb2 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.165.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth1
192.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 eth1
0.0.0.0         192.168.165.254 0.0.0.0         UG    0      0        0 eth0
[root@itdb2 ~]# route del -net 192.0.0.0 netmask 255.0.0.0
[root@itdb2 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.165.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth1
0.0.0.0         192.168.165.254 0.0.0.0         UG    0      0        0 eth0
[root@itdb2 ~]# ping 192.168.163.1
PING 192.168.163.1 (192.168.163.1) 56(84) bytes of data.
64 bytes from 192.168.163.1: icmp_seq=1 ttl=127 time=0.160 ms
64 bytes from 192.168.163.1: icmp_seq=2 ttl=127 time=0.123 ms
64 bytes from 192.168.163.1: icmp_seq=3 ttl=127 time=0.101 ms
64 bytes from 192.168.163.1: icmp_seq=4 ttl=127 time=0.099 ms

--- 192.168.163.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2997ms
rtt min/avg/max/mdev = 0.099/0.120/0.160/0.027 ms
[root@itdb2 ~]# ping 192.168.165.120
PING 192.168.165.120 (192.168.165.120) 56(84) bytes of data.
64 bytes from 192.168.165.120: icmp_seq=1 ttl=64 time=3.89 ms
64 bytes from 192.168.165.120: icmp_seq=2 ttl=64 time=0.134 ms
64 bytes from 192.168.165.120: icmp_seq=3 ttl=64 time=0.120 ms

--- 192.168.165.120 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.120/1.382/3.894/1.776 ms
[root@itdb2 ~]#

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

Ping test sends mail when ping fails

help with bash script! im am working on this script to make sure my server will stay online, so i made this script.. HOSTS="192.168.138.155" COUNT=4 pingtest(){ for myhost in "$@" do ping -c "$COUNT" "$myhost" &&return 1 done return 0 } if pingtest $HOSTS #100% failed... (4 Replies)
Discussion started by: mort3924
4 Replies

2. Solaris

Help with NFS public

Hi, Please help. I created a ZFS pool on Solaris 11.3 (thunder) and shared it using NFS (storage). But when I connect from my Mac without credentials I can't write to the share,I assume I have to make the share public but can't figure out the syntax,please help. Also the pool is for... (6 Replies)
Discussion started by: rthorntn
6 Replies

3. What is on Your Mind?

A public thank you...

AudioScope.sh has now had 2 votes of 5 stars. It has also been thanked in the latest upload... Although I know who thanked this kids project, and I have personally thanked that person, this is a public thank you to the two anonymous people who have voted it 5 stars. Thank you. It has... (0 Replies)
Discussion started by: wisecracker
0 Replies

4. Shell Programming and Scripting

How to get reason for ping failure using perls Net::Ping->new("icmp");?

Hi I am using perl to ping a list of nodes - with script below : $p = Net::Ping->new("icmp"); if ($p->ping($host,1)){ print "$host is alive.\n"; } else { print "$host is unreacheable.\n"; } $p->close();... (4 Replies)
Discussion started by: tavanagh
4 Replies

5. Shell Programming and Scripting

Animation Ping on Solaris Like Cisco Ping

Hi, I develop simple animation ping script on Solaris Platform. It is like Cisco ping. Examples and source code are below. bash-3.00$ gokcell 152.155.180.8 30 Sending 30 Ping Packets to 152.155.180.8 !!!!!!!!!!!!!.!!!!!!!!!!!!!!!. % 93.33 success... % 6.66 packet loss...... (1 Reply)
Discussion started by: gokcell
1 Replies

6. Shell Programming and Scripting

Finding my public IP

Hi I do use this line to find my public IP. Is there other way I can do this? Maybe create the script some shorter? wget -q -O - http://minip.no | grep "<b>" | head -n1 | cut -d'<' -f3 | cut -d'>' -f2 Thanks (1 Reply)
Discussion started by: Jotne
1 Replies

7. IP Networking

Public IP

I guys, I have a compute at home and I want access it from outside with a public IP, and the problem is that my ISP distributed private IP addresses and to access the Internet is through NAT and. I want to access that computer via SSH from other network, how can I do that? (1 Reply)
Discussion started by: pharaoh
1 Replies

8. Shell Programming and Scripting

What are public keys in ssh and how do we create the public keys??

Hi All, I am having knowledge on some basics of ssh and wanted to know what are the public keys and how can we create and implement it in connecting server. Please provide the information for the above, it would be helpful for me. Thanks, Ravindra (1 Reply)
Discussion started by: ravi3cha
1 Replies
Login or Register to Ask a Question