Sponsored Content
Full Discussion: ping -s not working
Operating Systems Solaris ping -s not working Post 84902 by tjlst15 on Thursday 29th of September 2005 11:00:33 AM
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)

 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

10. 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
PPP(1)							      General Commands Manual							    PPP(1)

NAME
pppclient, pppserver - point to point protocol SYNOPSIS
pppclient [ -d ][ -b baudrate ][ -i myipaddr ][ -p peeripaddr ][ dialdevice ] pppserver [ -d ] ndev myipaddr firstipaddr firstdev [ baud0 baud1 ... ] DESCRIPTION
The Point to Point Protocol is used to encapsulate Internet Protocol packets for transfer over serial lines or other protocol connections. Pppclient makes a connection to a PPP server and passes IP packets over the connection. If dialdevice is omitted, standard input and out- put are used as the connection. If dialdevice begins with a slash, pppclient assumes it is a file name, open(2)'s it, and uses the result as the connection. Otherwise, dialdevice is passed as the destination address to dial(2) to set up the connection. If the connection is successful, pppclient creates a pipe, pushes the IP line discipline onto it, and sets the local and remote addresses of the IP interface to myipaddr and peeripaddr. It then loops transferring packets between the pipe and the connection. If either myi- paddr or peeripaddr is omitted, pppclient requests them from the server. The options are d print debugging information. b baud rate of the serial line. p peer ip address (in case the peer asks for its ip address over IPCP). i the local ip address to be established for this connection. Pppserver treats serial lines as PPP connections, switching packets between them and the local machine. It creates a pipe for a local IP interface (address myipaddr), opens a set of serial lines, and switches packets between the local interface and the serial lines. Ndev specifies the number of serial devices to serve. The devices are named /dev/eia{firstdev} through /dev/eia{firstdev+ndev-1}. Their remote IP addresses are firstipaddr through firstipaddr+ndev-1. The default baud rate is 9600. If any arguments follow firstdev (baud0, baud1, ...), they are used as baud rates for the serial lines. The only option, -d, turns on debugging output. Both pppclient and pppserver accept all options defined in RFCs 1331 and 1332. EXAMPLES
Start up a server for serial lines /dev/eia[2-6] with remote IP addresses 131.107.1.100 through 131.107.1.103 and baud rates of 19200, 2400, 9600, 9600. The local IP address is 131.107.1.1. pppserver 4 131.107.1.1 131.107.1.100 2 19200 2400 SOURCE
/sys/src/cmd/ppp PPP(1)
All times are GMT -4. The time now is 02:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy