"ping6 -M do" fragments packets
Subsystems (2)
I'm not subscribed, so please Cc: me on any responses. Thanks.
According to the man page, ping6 should support the "-M do" option so never fragment packets, which I'd like to use for testing the MTU of a path. This option works fine for IPv4 ping, but doesn't work with IPv6 ping6. I can guarantee that I don't have an MTU of 63356 :-)
Quoted 1 line
ping6 -M do -s 65527 www.kame.net
PING www.kame.net(orange.kame.net) 65527 data bytes 65535 bytes from orange.kame.net: icmp_seq=1 ttl=49 time=224 ms 65535 bytes from orange.kame.net: icmp_seq=2 ttl=49 time=226 ms 65535 bytes from orange.kame.net: icmp_seq=3 ttl=49 time=224 ms
--- www.kame.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms rtt min/avg/max/mdev = 224.118/225.270/226.909/1.251 ms
Sure enough, wireshark reports fragments:
No. Time Source Destination Protocol Info
1 0.000000 2001:468:616:8c9:213:72ff:fe74:da15 2001:200:0:8002:203:47ff:fea5:3085 IPv6 IPv6 fragment (nxt=ICMPv6 (0x3a) off=0 id=0x79)
2 0.000007 2001:468:616:8c9:213:72ff:fe74:da15 2001:200:0:8002:203:47ff:fea5:3085 IPv6 IPv6 fragment (nxt=ICMPv6 (0x3a) off=1448 id=0x79)
3 0.000010 2001:468:616:8c9:213:72ff:fe74:da15 2001:200:0:8002:203:47ff:fea5:3085 IPv6 IPv6 fragment (nxt=ICMPv6 (0x3a) off=2896 id=0x79)
4 0.000013 2001:468:616:8c9:213:72ff:fe74:da15 2001:200:0:8002:203:47ff:fea5:3085 IPv6 IPv6 fragment (nxt=ICMPv6 (0x3a) off=4344 id=0x79)
5 0.000015 2001:468:616:8c9:213:72ff:fe74:da15 2001:200:0:8002:203:47ff:fea5:3085 IPv6 IPv6 fragment (nxt=ICMPv6 (0x3a) off=5792 id=0x79)
6 0.000018 2001:468:616:8c9:213:72ff:fe74:da15 2001:200:0:8002:203:47ff:fea5:3085 IPv6 IPv6 fragment (nxt=ICMPv6 (0x3a) off=7240 id=0x79)Is this a known issue, or some issue with the Fedora build I'm using?
iputils-20070202-3.fc7
Thanks.
Quoted 8 lines · Chuck Anderson
I'm not subscribed, so please Cc: me on any responses. Thanks.
According to the man page, ping6 should support the "-M do" option so never fragment packets, which I'd like to use for testing the MTU of a path. This option works fine for IPv4 ping, but doesn't work with IPv6 ping6. I can guarantee that I don't have an MTU of 63356 :-)
Quoted 7 lines
Quoted 1 line
ping6 -M do -s 65527 www.kame.net
Sure enough, wireshark reports fragments:
No. Time Source Destination Protocol Info 1 0.000000 2001:468:616:8c9:213:72ff:fe74:da15 2001:200:0:8002:203:47ff:fea5:3085 IPv6 IPv6 fragment (nxt=ICMPv6 (0x3a) off=0 id=0x79) 2 0.000007 2001:468:616:8c9:213:72ff:fe74:da15 2001:200:0:8002:203:47ff:fea5:3085 IPv6 IPv6 fragment (nxt=ICMPv6 (0x3a) off=1448 id=0x79)
Are you using nf_conntrack_ipv6?
Quoted 9 lines · Patrick McHardy
Quoted 7 lines
Quoted 1 line
ping6 -M do -s 65527 www.kame.net
Sure enough, wireshark reports fragments:
No. Time Source Destination Protocol Info 1 0.000000 2001:468:616:8c9:213:72ff:fe74:da15 2001:200:0:8002:203:47ff:fea5:3085 IPv6 IPv6 fragment (nxt=ICMPv6 (0x3a) off=0 id=0x79) 2 0.000007 2001:468:616:8c9:213:72ff:fe74:da15 2001:200:0:8002:203:47ff:fea5:3085 IPv6 IPv6 fragment (nxt=ICMPv6 (0x3a) off=1448 id=0x79)Are you using
nf_conntrack_ipv6?
No:
nf_conntrack_tftp 9813 0nf_conntrack_netbios_ns 7105 0
ipt_LOG 10305 1 nf_conntrack_ipv4 15049 6 xt_state 6593 6 nf_conntrack 61001 4 nf_conntrack_tftp,nf_conntrack_netbios_ns,nf_conntrack_ipv4,xt_state nfnetlink 10841 2 nf_conntrack_ipv4,nf_conntrack ipt_REJECT 8641 4 iptable_filter 6977 1 ip_tables 16389 1 iptable_filter ip6t_LOG 10945 1 ip6t_REJECT 9537 2 ip6table_filter 6849 1 ip6_tables 17541 2 ip6t_LOG,ip6table_filter x_tables 18757 8 ipt_LOG,xt_state,ipt_REJECT,ip_tables,ip6t_LOG,ip6t_REJECT,ip6_tables,xt_tcpudp ipv6 276673 51 ip6t_REJECT
Quoted 10 lines · Chuck Anderson
Quoted 8 lines · Patrick McHardy
Quoted 7 lines
Quoted 1 line
ping6 -M do -s 65527 www.kame.net
Sure enough, wireshark reports fragments:
No. Time Source Destination Protocol Info
1 0.000000 2001:468:616:8c9:213:72ff:fe74:da15 2001:200:0:8002:203:47ff:fea5:3085 IPv6 IPv6 fragment (nxt=ICMPv6 (0x3a) off=0 id=0x79) 2 0.000007 2001:468:616:8c9:213:72ff:fe74:da15 2001:200:0:8002:203:47ff:fea5:3085 IPv6 IPv6 fragment (nxt=ICMPv6 (0x3a) off=1448 id=0x79)
Quoted 6 lines
Quoted 1 line
Are you using
nf_conntrack_ipv6?No:
[...]
Works for me:
$ ping6 -M do -s 65527 www.kame.net -n -c 1 PING www.kame.net(2001:200:0:8002:203:47ff:fea5:3085) 65527 data bytes
Quoted 1 line
From 2001:6f8:974:0:21b:21ff:fe02:6fad icmp_seq=1 Packet too big: mtu=1500
--- www.kame.net ping statistics ---
0 packets transmitted, 0 received, +1 errors