ping to ip address with 0 = ГЛЮК, Hill, 16-Июн-09, 13:39 [смотреть все]Господа привет.наткнулся на странное пингую хост 192.168.1.55 он мне отвечает, а теперь пингую 192.168.1.055 пытается ответить 192.168.1.45 и также с хостом 172.16.200.50 ответ 172.16.200.50 и 172.16.200.050 ответ 172.16.200.45, думаю с другими хостами тоже самое. (хосты взяты случайным образом) пробовал из под винди и фрюхи, рузультат идентичный. снимал tcpdump ни чего не обнаружил. Пошарил в инете ни чего не нашел. :-( Мож кто на пальцах расскжет что за глюк % ping 192.168.1.55 PING 192.168.1.55 (192.168.1.55): 56 data bytes 64 bytes from 192.168.1.55: icmp_seq=0 ttl=128 time=0.547 ms 64 bytes from 192.168.1.55: icmp_seq=1 ttl=128 time=0.365 ms 64 bytes from 192.168.1.55: icmp_seq=2 ttl=128 time=0.346 ms ^C --- 192.168.1.55 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.346/0.419/0.547/0.091 ms % ping 192.168.1.055 PING 192.168.1.055 (192.168.1.45): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.1.055 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss % % nslookup > 192.168.1.55 Server: 192.168.1.55 Address: 192.168.1.55#53 55.1.168.192.in-addr.arpa name = aladc001.domain.com. > 192.168.1.055 Server: 192.168.1.55 Address: 192.168.1.55#53 ** server can't find 192.168.1.055: NXDOMAIN > No. Time Source Destination Protocol FW chain Info 1 15:19:48.398573 192.168.1.189 192.168.1.55 ICMP Echo (ping) request 2 15:19:48.398965 192.168.1.55 192.168.1.189 ICMP Echo (ping) reply 3 15:19:49.399718 192.168.1.189 192.168.1.55 ICMP Echo (ping) request 4 15:19:49.400120 192.168.1.55 192.168.1.189 ICMP Echo (ping) reply 5 15:19:50.400689 192.168.1.189 192.168.1.55 ICMP Echo (ping) request 6 15:19:50.401094 192.168.1.55 192.168.1.189 ICMP Echo (ping) reply 7 15:19:59.633129 192.168.1.189 172.16.200.50 ICMP Echo (ping) request 8 15:19:59.635047 172.16.200.50 192.168.1.189 ICMP Echo (ping) reply 9 15:20:00.634340 192.168.1.189 172.16.200.50 ICMP Echo (ping) request 10 15:20:00.634652 172.16.200.50 192.168.1.189 ICMP Echo (ping) reply 11 15:20:00.666180 192.168.1.189 10.161.254.4 ICMP Echo (ping) request 12 15:20:01.635312 192.168.1.189 172.16.200.50 ICMP Echo (ping) request 13 15:20:01.635808 172.16.200.50 192.168.1.189 ICMP Echo (ping) reply 14 15:20:01.667302 192.168.1.189 10.161.254.4 ICMP Echo (ping) request 15 15:20:02.636274 192.168.1.189 172.16.200.50 ICMP Echo (ping) request 16 15:20:02.637068 172.16.200.50 192.168.1.189 ICMP Echo (ping) reply 17 15:20:02.668269 192.168.1.189 10.161.254.4 ICMP Echo (ping) request 18 15:20:03.669242 192.168.1.189 10.161.254.4 ICMP Echo (ping) request 19 15:20:04.670205 192.168.1.189 10.161.254.4 ICMP Echo (ping) request 20 15:20:05.427770 192.168.1.189 172.16.200.40 ICMP Echo (ping) request 21 15:20:05.430555 172.16.200.40 192.168.1.189 ICMP Echo (ping) reply 22 15:20:06.429147 192.168.1.189 172.16.200.40 ICMP Echo (ping) request 23 15:20:06.429522 172.16.200.40 192.168.1.189 ICMP Echo (ping) reply 24 15:20:07.430110 192.168.1.189 172.16.200.40 ICMP Echo (ping) request 25 15:20:07.431471 172.16.200.40 192.168.1.189 ICMP Echo (ping) reply 26 15:20:08.431078 192.168.1.189 172.16.200.40 ICMP Echo (ping) request 27 15:20:08.434279 172.16.200.40 192.168.1.189 ICMP Echo (ping) reply
|
- ping to ip address with 0 = ГЛЮК, shadow_alone, 14:05 , 16-Июн-09 (1)
да, действительно, интересно shad@home2:~$ ping 78.111.50.050 PING 78.111.50.050 (78.111.50.40) 56(84) bytes of data. 64 bytes from 78.111.50.20: icmp_seq=1 ttl=253 time=37.4 ms 64 bytes from 78.111.50.20: icmp_seq=2 ttl=253 time=36.3 ms 64 bytes from 78.111.50.20: icmp_seq=3 ttl=253 time=35.8 ms 64 bytes from 78.111.50.20: icmp_seq=4 ttl=253 time=36.3 ms ^C --- 78.111.50.050 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3004ms rtt min/avg/max/mdev = 35.830/36.524/37.481/0.613 ms shad@home2:~$ ping 78.111.50.051 PING 78.111.50.051 (78.111.50.41) 56(84) bytes of data. 64 bytes from 78.111.50.41: icmp_seq=1 ttl=253 time=39.1 ms 64 bytes from 78.111.50.41: icmp_seq=2 ttl=253 time=37.3 ms 64 bytes from 78.111.50.41: icmp_seq=3 ttl=253 time=37.1 ms 64 bytes from 78.111.50.41: icmp_seq=4 ttl=253 time=35.9 ms ^C --- 78.111.50.051 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3004ms rtt min/avg/max/mdev = 35.910/37.397/39.196/1.174 ms shad@home2:~$ ping 78.111.50.052 PING 78.111.50.052 (78.111.50.42) 56(84) bytes of data. 64 bytes from 78.111.50.42: icmp_seq=1 ttl=252 time=35.8 ms 64 bytes from 78.111.50.42: icmp_seq=2 ttl=252 time=36.2 ms 64 bytes from 78.111.50.42: icmp_seq=3 ttl=252 time=36.3 ms ^C --- 78.111.50.052 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 35.875/36.164/36.329/0.257 ms
- ping to ip address with 0 = ГЛЮК, shadow_alone, 14:10 , 16-Июн-09 (2)
так, понял052 в восьмиричной системе есть 42 в десятичной то есть, когда впереди подставляешь 0, считается что ты написал в 8-чной системе.
- ping to ip address with 0 = ГЛЮК, Hill, 15:41 , 16-Июн-09 (4)
ООО пасибо за разяснение, теперь все стало на свои места. тока теперь не понятно почему утилита ping переводит в восьмеричную систему, придется смотреть исходники.
- ping to ip address with 0 = ГЛЮК, fantom, 09:40 , 17-Июн-09 (5)
> > >ООО пасибо за разяснение, теперь все стало на свои места. > >тока теперь не понятно почему утилита ping переводит в восьмеричную систему, придется >смотреть исходники. Это практически ЛЮБЫЕ утилиты делают, вернее кажется эту подстановку выполняет shell :) попробуй в snmpwalk задать OID с нулем - получишь тот же эффект, Лечиться из шелла конструкцией $[10#0xx] ping 192.168.1.$[10#055]
- ping to ip address with 0 = ГЛЮК, shadow_alone, 14:20 , 16-Июн-09 (3)
>(хосты взяты случайным образом) вот тут ты поторопился и даж не стал искать закономерности :) чуток внимания.
- ping to ip address with 0 = ГЛЮК, fantom, 09:48 , 17-Июн-09 (6)
man bash раздел ARITHMETIC EVALUATION Цитирую: Constants with a leading 0 are interpreted as octal numbers. A leading 0x or 0X denotes hexadecimal. Otherwise, numbers take the form [base#]n, where base is a decimal number between 2 and 64 representing the arithmetic base, and n is a number in that base. If base# is omitted, then base 10 is used. The digits greater than 9 are represented by the lowercase letters, the uppercase letters, @, and _, in that order. If base is less than or equal to 36, lowercase and uppercase letters may be used interchangeably to represent numbers between 10 and 35.
- ping to ip address with 0 = ГЛЮК, KAMERA, 19:48 , 02-Июл-13 (7)
>[оверквотинг удален] > 26 15:20:08.431078 192.168.1.189 > 172.16.200.40 > ICMP > Echo (ping) > request > 27 15:20:08.434279 172.16.200.40 > 192.168.1.189 > ICMP > Echo (ping) > reply
|