Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - ping6 -h option seems to fail: (3 Items)
   
ping6 -h option seems to fail  
Hi,

 

Does the ping6 -h option work?  Here's an example of a test I did:

 

 

 

# ping6 -h2 fe80::201:9cff:fe00:477

PING6(56=40+8+8 bytes) fe80::201:9cff:fe00:477%en0 -->
fe80::201:9cff:fe00:477

16 bytes from fe80::201:9cff:fe00:477%en0, icmp_seq=0 hlim=64 time=0 ms

16 bytes from fe80::201:9cff:fe00:477%en0, icmp_seq=1 hlim=64 time=0 ms

16 bytes from fe80::201:9cff:fe00:477%en0, icmp_seq=2 hlim=64 time=0 ms

16 bytes from fe80::201:9cff:fe00:477%en0, icmp_seq=3 hlim=64 time=0 ms

16 bytes from fe80::201:9cff:fe00:477%en0, icmp_seq=4 hlim=64 time=0 ms

16 bytes from fe80::201:9cff:fe00:477%en0, icmp_seq=5 hlim=64 time=0 ms

 

--- fe80::201:9cff:fe00:477 ping6 statistics ---

6 packets transmitted, 6 packets received, 0.0% packet loss

round-trip min/avg/max = 0/0/0 ms

   variance = 0 ms^2

 

Process 856116 (ping6) terminated SIGINT code=0 by process 856116
value=0.

 

#

 

 

 

Should the hlim not =2 instead of =64??

 

Cheers,

maurice

 

Maurice Gibbs

 

Software Designer

CommTest WaveReady BU

JDS Uniphase Corp.

613.843.2326

 

Re: ping6 -h option seems to fail  
Hi Maurice,

I just tested it and the -h (hop limit) option to ping6 works for me. In 
a wireshark capture I see the echo requests sent have the hop limit I 
specify.

> # ping6 -h2 fe80::201:9cff:fe00:477
>
> PING6(56=40+8+8 bytes) fe80::201:9cff:fe00:477%en0 -->
> fe80::201:9cff:fe00:477
>
> 16 bytes from fe80::201:9cff:fe00:477%en0, icmp_seq=0 hlim=64 time=0 ms
>   
The output from ping6 prints the *replies*. Hence, it's just saying that 
the replies had the hop limit 64 which is usually the default (per 
MIBs). You can change it using sysctl on the variable net.inet6.ip6.hlim.

Hope this helps!
/P
Re: ping6 -h option seems to fail  
Thanks Patrik.

I didn't realize that nuance in the RFC.  I'll play around with the sysctl as well to see if it helps me narrow down the
 real issue I am chasing.

Cheers,
maurice