Sponsored Content
Top Forums UNIX for Advanced & Expert Users 0821-077 ping: illegal packet size. Post 302141268 by sysgate on Thursday 18th of October 2007 10:50:09 AM
Old 10-18-2007
By default (when packet-size is not specified), the size of transmitted packets is 64 bytes. The minimum value allowed for packet-size is 8 bytes, and the maximum value is 4095 bytes, on some systems is even 65000. If packet-size is smaller than 16 bytes, there is not enough room for timing information. In that case, the round-trip times are not displayed. In your case, the -n flag probably means something else, not the count number.]
The error number looks like AIX, I just tested AIX, and I seem to be right : -n flag means "packet-size", as well as "-s" whereas the count is "-c" flag.
 

9 More Discussions You Might Find Interesting

1. HP-UX

how to get network packet size

how to get network packet size I would like get network output rate(kb/sec) I type command "netstat -i" Ipkts Ierrs Opkts Oerrs 653387 0 678202 0 but i didn't know what is it packet size , how could i get it? (1 Reply)
Discussion started by: alert0919
1 Replies

2. UNIX for Advanced & Expert Users

Need help with configuring large packet size on Solaris 7 / e6500

We're running Solaris 7 on FDDI n/w on an E6500 host and wish to use MTU (packet size) > 1500, more like 3072 bytes to begin with and possibly up to 4096 bytes. Linux has /etc/network/interfaces. Does ANYONE remember the equivalent in Unix? When I do ifconfig eth0 mtu 4000, I get the error... (0 Replies)
Discussion started by: sharique
0 Replies

3. Solaris

Need help with configuring large packet size on Solaris 7 / e6500

Greetings, I'm stuck in a time warp using ancient machines from the prehistoric era that should be rightfully displayed in the Smithsonian. We're running Solaris 7 on FDDI n/w on an E6500 host and wish to use MTU (packet size) > 1500, more like 3072 bytes to begin with and possibly up to 4096... (9 Replies)
Discussion started by: sharique
9 Replies

4. IP Networking

TCP Packet size

Hi! I'm writing an application (using BSD sockets on a Linux host) which communicates over TCP/IP with an embedded device. This embedded device has an old and real slow integrated circuit (Epson S1S6000) which handles all of the TCP/IP communication for it. Problem is, this circuit (S1S6000)... (7 Replies)
Discussion started by: olle
7 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. AIX

Packet loss coming with big packet size ping

(5 Replies)
Discussion started by: Vishal_dba
5 Replies

8. Shell Programming and Scripting

Solaris ping report failed packet script

Hello, on Solaris ping command does not report failed packet as in i.e. Windows (Connection timeout) Instead it reports the sequence of the sent packet: 64 bytes from 10.80.4.120: icmp_seq=11. time=36.0 ms 64 bytes from 10.80.4.120: icmp_seq=12. time=35.9 ms 64 bytes from 10.80.4.120:... (6 Replies)
Discussion started by: drbiloukos
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
ping(8) 						      System Manager's Manual							   ping(8)

Name
       ping - send ICMP ECHO_REQUEST packets to network hosts

Syntax
       /etc/ping [ options ] host [ datasize [ npackets ]]

Description
       The  DARPA  Internet  is  a large and complex network of hardware connected together by gateways.  The command utilizes the ICMP protocol's
       mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway.	ECHO_REQUEST datagrams (pings) have an IP and ICMP
       header,	followed  by  a  struct timeval, and then an arbitrary number of pad bytes used to fill out the packet.  The length of the default
       datagram 64 bytes, but this may be changed using the command-line option.

       Typing ``ping host'' without any options will either report ``host is alive'' or ``no answer from host''.  To get more statistics  use  the
       -l option or one of the other options.

       When  using  for  fault	isolation,  it should first be run on the local host to verify that the local network interface is up and running.
       Then, hosts and gateways further and further away should be pinged.  The command with options sends one datagram per second and prints  one
       line  of  output  for every ECHO_RESPONSE returned.  No output is produced if there is no response.  If an optional npackets is given, only
       that number of requests is sent.  Round-trip times and packet loss statistics are computed.  When all responses have been received  or  the
       program times out with npackets specified, or if the program is terminated with a SIGINT, a brief summary is displayed.

Options
       -d   Turns on SO_DEBUG flag on the socket.

       -l   Gives more statistics than if is used without options.  Long output.

       -r   Bypasses  the  normal  routing  tables and sends directly to a host on an attached network.  If the host is not on a directly-attached
	    network, an error is returned.  This option can be used to ping a local host through an interface that has no route through  it.   For
	    example, after the interface was dropped by

       -v   Lists ICMP packets other than ECHO RESPONSE that are received. Verbose output.

Restrictions
       This  program is intended for use in network testing, measurement, and management.  It should be used primarily for manual fault isolation.
       Because of the load it could impose on the network, it is unwise to use during normal operations or from automated scripts.

See Also
       netstat(1), ifconfig(8c)

																	   ping(8)
All times are GMT -4. The time now is 04:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy