[HPADM] Re: Leading 0's in IP Address

From: HCL Engr, Century Enka Ltd. (hcl@centuryenka.com)
Date: Thu Sep 23 2004 - 02:43:28 EDT


Leading 0's in IP AddressIf you add a leading 0 to the ip address then that part is considered as an octet number instead of a decimal. But before doing the traceroute or ping command that will be converted to a decimal number . In your case the equivalent decimal number of the octet 055 is 45. So it will try to trace the route to 45.xx.xx.xx. If you want to use the leading zero try using the octet number 067 which is equivalent to decimal number 55. eg; traceroute 067.xx.xx.xx , this will actually trace the route to 55.xx.xx.xx.

rgds

bejoy
  ----- Original Message -----
  From: CTASC
  To: CTASC - HPUX-Admin
  Cc: 'ctasc'
  Sent: Wednesday, September 22, 2004 7:46 PM
  Subject: [HPADM] Leading 0's in IP Address

  If I do a traceroute of 55.xxx.xxx.xxx
  I see the following

  55.xxx.xxx.xxx (55.xxx.xxx.xxx)

  If I add a leading 0 to the ip address 055.xxx.xxx.xxx
  I get the following results

  055.xxx.xxx.xxx (45.xxx.xxx.xxx)

  Why?

  Lisa M. Taylor
  CTASC-II Support Team
  (703) 704-4078 or DSN 654
  Lisa.Taylor@secbmail.belvoir.army.mil or
  Lisa.Taylor1@us.army.mil

-------------------------------------------------------
This message has been scanned for viruses and if any
dangerous content has been there, it has cleared by
the Mailscanner.It doesn't ensures that the email is
Virus free or error free.CEL will not be responsible
for any of the above errors.
CEL-MAILSCANNER.

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:43 EDT