Sponsored Content
Full Discussion: ping from public IP
Special Forums IP Networking ping from public IP Post 302515807 by faruque.ahmed on Thursday 21st of April 2011 02:31:30 AM
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 ~]#

 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
tgt-setup-lun(8)					      System Manager's Manual						  tgt-setup-lun(8)

NAME
tgt-setup-lun - creates a target, adds a device to the target and defines initiators that can connect to the target SYNOPSIS
tgt-setup-lun -d device -n target_name [initiator_IP1 initiator_IP2 ...] [-h] DESCRIPTION
Starts tgtd if necessary and creates a target according to the supplied target_name. The format of the target name is as follows: iqn.2001-04.com.<hostname>-<target_name> The target name must be unique. The script then adds the requested device to the target. If specific IP addresses are defined, it adds them to the list of allowed initia- tors for that target. If no IP addresses is defined, it defines that the target accepts any initiator. EXAMPLES
Create a target that uses /dev/sdb1 and allows connections only from 192.168.10.81: tgt-setup-lun -d /dev/sdb1 -n my_target 192.168.10.81 Create a target that uses /dev/sdb1 and allows connections only from 192.168.10.81 and 192.168.10.82: tgt-setup-lun -d /dev/sdb1 -n my_target 192.168.10.81 192.168.10.82 Create a target that uses /dev/sdb1 and allows connections from any initiator: tgt-setup-lun -d /dev/sdb1 -n my_target Display help: tgt-setup-lun -h AUTHOR
Written by Erez Zilber REPORTING BUGS
Report bugs to <erezz@voltaire.com>. COPYRIGHT
Copyright (C) Voltaire Ltd. 2008. tgt-setup-lun(8)
All times are GMT -4. The time now is 02:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy