0821-077 ping: illegal packet size. | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

0821-077 ping: illegal packet size.

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-17-2007
vishal_ranjan vishal_ranjan is offline
Registered User
 
Join Date: May 2007
Last Activity: 15 May 2008, 8:32 AM EDT
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
0821-077 ping: illegal packet size.

Hi,
  • When i try this command
ping ukblx151.ukhx.astrazeneca.net -n 3 | grep icmp

it gives following error :
0821-077 ping: illegal packet size.
  • But when i give command
ping ukblx151.ukhx.astrazeneca.net

It returns correct output.

Could you please help?
Sponsored Links
    #2  
Old 10-17-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
AFK
 
Join Date: Dec 2004
Last Activity: 10 October 2013, 8:46 AM EDT
Location: UK
Posts: 2,351
Thanks: 0
Thanked 6 Times in 6 Posts
Can you check the man page of your ping command and see what the '-n' option stands for? What OS is this on?
Sponsored Links
    #3  
Old 10-18-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
 
Join Date: Nov 2006
Last Activity: 20 November 2013, 8:29 AM EST
Location: Bulgaria
Posts: 1,419
Thanks: 0
Thanked 6 Times in 6 Posts
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.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Animation Ping on Solaris Like Cisco Ping gokcell Shell Programming and Scripting 1 12-04-2011 04:12 AM
TCP Packet size olle IP Networking 7 05-25-2011 03:42 PM
Need help with configuring large packet size on Solaris 7 / e6500 sharique Solaris 9 04-07-2011 03:19 AM
Need help with configuring large packet size on Solaris 7 / e6500 sharique UNIX for Advanced & Expert Users 0 04-06-2011 05:37 PM
how to get network packet size alert0919 HP-UX 1 05-24-2009 05:21 PM



All times are GMT -4. The time now is 04:58 AM.