ping -s not working


 
Thread Tools Search this Thread
Operating Systems Solaris ping -s not working
# 1  
Old 09-29-2005
ping -s not working

I have a multipath system with 2 physicals, a virtual and a failsafe. All network connectivity is working fine to and from all of the interfaces and the virtual. The one thing that is not working is 'ping -s'. From this machine, I cannot send and receive packets using ping -s. ping without the option works fine.

While the ping -s is running, I can snoop run snoop and see that the packets are leaving one interface and returning on another. Is there anyway to fix this so that ping -s works? See code below, atiems is the IP of the virtual interface:

Code:
bash-2.03#  ping -s 10.160.131.103
PING 10.160.131.103: 56 data bytes
^C
----10.160.131.103 PING Statistics----
251 packets transmitted, 1 packets received, 99% packet loss
round-trip (ms)  min/avg/max = 2147483647/0/0
bash-2.03#  ping 10.160.131.103
10.160.131.103 is alive
bash-2.03#

Code:
bash-2.03# snoop -d qfe0 host 10.160.131.103
Using device /dev/qfe (promiscuous mode)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 20)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 21)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 22)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 23)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 24)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 25)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 26)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 27)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 28)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 29)
^Cbash-2.03# snoop -d eri0 host 10.160.131.103
Using device /dev/eri (promiscuous mode)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 37)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 38)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 39)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 40)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 41)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 42)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 43)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 44)

# 2  
Old 09-30-2005
Does it work if you specify the interface with -i?

Cheers
ZB
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies

2. Shell Programming and Scripting

Working web service call not working with curl

Hello, Newbie here, I have a perfectly well working web service call I can issue from chrome (PC Windows 10) and get the results I want (a dimmer being turned on in Fibaro Home Center 2 at level 40) I am not allowed to post urls but the below works with http and :// and... (3 Replies)
Discussion started by: abigbear
3 Replies

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

4. Shell Programming and Scripting

Automating pbrun /bin/su not working, whenever manually it is working using putty

I am trying to automate a script where I need to use pbrun /bin/su but for some reason it is not passing thru the pbrun as my code below. . ~/.bash_profile pbrun /bin/su - content c h 1 hpsvn up file path I am executing this from an external .sh file that is pointing to this scripts file... (14 Replies)
Discussion started by: jorgejac
14 Replies

5. Red Hat

Nslookup working but ping not working at windows client

Hi Team we have created a DNS server at RHEL6.2 environment in 10.20.203.x/24 network. Everything is going well on linux client as nslookup, ping by host etc in entire subnet. We are getting problem in windows client as nslookup working as well but not ping. all the firewall is disabled and... (5 Replies)
Discussion started by: boby.kumar
5 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. Shell Programming and Scripting

Perl : ping for multiple IPs not working

I have written perl ping program to ping list of IPs one by one and print the status.But each and every time it is showing the status as Pass for all IPs even though the IP is wrong. multipleip.pl use Net::Ping; $p = Net::Ping->new(); $ifile="inventory.txt"; ... (2 Replies)
Discussion started by: scriptscript
2 Replies

8. Shell Programming and Scripting

Script not working in cron but working fine manually

Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered. The script is as follow: #!/bin/sh for file in file_1.txt file_2.txt file_3.txt do awk '{ print "0" }' $file > tmp.tmp mv tmp.tmp $file done And the cron... (2 Replies)
Discussion started by: jasperux
2 Replies

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

10. UNIX for Advanced & Expert Users

ping by hostname not working

anyone ever seen this problem: I can ping the server by IP address but I can't by hostname. nslookup is working and dns query is ok. # nslookup mwxnsb24 Server: 10.11.49.206 Address: 10.11.49.206#53 Name: mwxnsb24 Address: 10.10.58.175 # ping... (8 Replies)
Discussion started by: linuxgeek
8 Replies
Login or Register to Ask a Question