Sponsored Content
Operating Systems Solaris How to enable ping?a litte complex Post 303015700 by stomp on Tuesday 10th of April 2018 11:36:35 AM
Old 04-10-2018
Code:
17:14:52.804665 IP 192.168.0.2 > 10.2.0.1: ICMP echo request, id 15645, seq 1, length 64 
17:14:52.806881 IP 192.168.0.30 > 192.168.0.2: ICMP echo reply, id 15645, seq 1, length 64 
17:14:52.807016 IP 192.168.0.2 > 192.168.0.30: ICMP host 192.168.0.2 unreachable - admin prohibited, length 92

Well that shows pretty obvious, what's going on:
  • The icmp echo request goes out to the target
  • The icmp echo reply comes back from the target
  • The local host rejects the echo reply and sends itself another icmp message for the failed echo reply

So this points to your client machine, sending the ping, that the paket filter is configured wrongly.

Please show the current rules as requested in my previous post(iptables -L -v- n).

When you execute your ping, and watch the counters with the above given watch command, which rules seem to match for the icmp packages?

Last edited by stomp; 04-10-2018 at 01:11 PM..
 

10 More Discussions You Might Find Interesting

1. Solaris

enable log

dear all i want to enable the below logs can you help me /var/adm/xferlog /var/spool/uucp/.Admin thanx you (0 Replies)
Discussion started by: murad.jaber
0 Replies

2. Linux

How to enable Hibernate

Hi, I want to enable hibernate in my machine. when i click hibernate option, it is throwing message that hibernate is not enabled in kernel. earlier, i was hibernating in the same machine with windows os. any idea ? Thx in advance. Siva (0 Replies)
Discussion started by: Sivaswami
0 Replies

3. AIX

How to enable XDMCP?

Hello everyone, I installed AIX the other day (several times!) but I can't get XDMCP to work. I remember from when I installed it the last time it worked out of the box. So why doesn't it work now? This is the error message I get: XDMCP fatal error: Session failed Session 2 failed for... (3 Replies)
Discussion started by: Kotzkroete
3 Replies

4. AIX

Enable SMT

How to enable SMT in aix 5.2 ml 9? If i run smtctl it gives error ksh: smtctl: not found. please tell me if SMT is supported in 5.2 (4 Replies)
Discussion started by: vjm
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

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

7. SCO

Auditing: how to enable?

edit: solution found Auditing Quick Start and Compatibility Notes (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

8. UNIX for Advanced & Expert Users

Enable lpfc changes!

Hi Folks! I am writing a script which changes lpfc.conf if there it has been setup on RHEL BOXes, do I need to put dracut -f for enabling it? I am not sure, Can someone help! (6 Replies)
Discussion started by: nixhead
6 Replies

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

10. Linux

Please: a litte help to crosscompile.

I have installed the "mipsel tuxbox" compile suite for crosscompile Host system is x86_64 slackware destination is mipsel32bit "vuduo+" For example,I want to compile a program, I use this script make clean export TOOLCHAIN=/opt/mipsel-tuxbox-linux-gnu export... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies
icmp(n) 							 Tnm Tcl Extension							   icmp(n)

__________________________________________________________________________________________________________________________________________________

NAME
icmp - Send ICMP messages to hosts on the Internet. _________________________________________________________________ DESCRIPTION
The icmp command allows to send Internet Control Messages (ICMP) (RFC 792, RFC 1122) to a list of hosts on the Internet. ICMP messages can be used to check whether hosts are reachable. The icmp command can also be used to trace routes to Internet hosts by sending UDP datagrams to unused UDP ports and interpreting the ICMP responses (Van Jacobsen and Steve Deering algorithm). ICMP COMMAND
The icmp command always accepts a list of target hosts. ICMP messages are send to the targets in a round-robin fashion which allows to check entire IP address ranges or a list of core routers efficiently. The user of the icmp command should be careful not to flood a network with ICMP requests. icmp [options] Invoking the icmp command with options but without any command arguments allows to retrieve and change the default values. See the description of supported options below. Default values are bound to a Tcl interpreter which allows to have multiple Tcl interpreter with different defaults. icmp [options] echo hosts The icmp echo command can be used to test the reachability of IP devices by sending ICMP echo requests to the hosts. The command returns a list of host / round trip time pairs. The round trip time is returned in milliseconds. A negative round trip time indi- cates that a host did not respond in the timeout interval. icmp [options] mask hosts The icmp mask command sends ICMP mask requests and returns a list of host / netmask pairs. The mask will be set to 0.0.0.0 if a host does not respond to ICMP mask requests. icmp [options] timestamp hosts The icmp timestamp command retrieves timestamps using the ICMP timestamp request. This command returns an estimate of the time dif- ference between local time and the time on the hosts given in hosts. The command returns a list of host / time offset pairs. The time offset is returned in milliseconds. An empty time offset indicates that a host did not respond in the timeout interval. icmp [options] ttl num hosts The icmp ttl command, which may not be supported on every operating system, sends a UDP packet to an unused port number with the time to live field of the IP header set to num. This command returns a list of host / round trip time pairs, where the host is the IP device being num hops away. The round trip time is returned in milliseconds. A negative round trip time indicates that a host did not respond in the timeout interval. icmp [options] trace num hosts The icmp trace command works similar to the icmp ttl command but it always returns the destination address even when the responding host chooses another interface with a different IP address to send the reply. This can be used to trace a route to a host since the command returns the host that discards the packet if it does not reach the destination. ICMP OPTIONS
The following options control how ICMP requests are send and how the icmp command deals with lost ICMP packets. -timeout time The -timeout option defines the time the icmp command will wait for a response. The time is defined in seconds with a default of 5 seconds. -retries number The -retries option defines how many times a request is retransmitted during the timeout interval. The default number of retries is 2. -delay time The -delay option defines the minimum delay between two outgoing ICMP packets. The delay time is defined in milliseconds with a default delay of 0 milliseconds. Delays are useful to reduce the load on intermediate devices like gateways or bridges. -size number The -size option allows to control the size of ICMP packets. The number defines the size of ICMP packets in bytes with a default size of 64 bytes. Sizes smaller than 64 bytes are silently rounded to 64 bytes. BUGS
The icmp command requires the setuid root program ntping(8) because sending icmp packets requires access to raw sockets on most operating systems. SEE ALSO
scotty(1), ntping(8), Tnm(n), Tcl(n) AUTHORS
Juergen Schoenwaelder <schoenw@cs.utwente.nl> Tnm icmp(n)
All times are GMT -4. The time now is 06:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy