LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-04-2023, 12:59 PM   #1
peterfarge
LQ Newbie
 
Registered: Oct 2023
Posts: 3

Rep: Reputation: 0
Ping on ipv6.google.com, no replies in Debian


Hello Forum,

I have a Debian 10.13 and a Windows machine behind an OpenWRT router. I added a Hurricane Electric Tunnel to my network to access IPv6 addresses, because my Internet provider delivers only a IPv4 address. Now I want to test my IPv6 configuration with ping. The internet tips suggest pinging ipv6.google.com. In windows all works fine, but under Debian I get no replays. In Debian the name is resolved to 2a00:1450:4005:800::200e correctly, so no DNS problem!

On the router, I put a TCPDump on the lan interface: tcpdump -q -i eth0.1 icmp6

If I do the windows ping (ping ipv6.google.com), I can see:
Quote:
19:13:13.566513 IP6 1234:5678:9999::240 > ham11s07-in-x0e.1e100.net: ICMP6, echo request, seq 761, length 40
19:13:13.612127 IP6 ham11s07-in-x0e.1e100.net > 1234:5678:9999::240: ICMP6, echo reply, seq 761, length 40
19:13:14.567659 IP6 1234:5678:9999::240 > ham11s07-in-x0e.1e100.net: ICMP6, echo request, seq 762, length 40
19:13:14.605271 IP6 ham11s07-in-x0e.1e100.net > 1234:5678:9999::240: ICMP6, echo reply, seq 762, length 40
But the linux ping (ping6 -s 32 ipv6.google.com) gives no replies? (I set the payload to 32+8 to make it the same size as the windows ping)
Quote:
19:13:40.474225 IP6 1234:5678:9999::249 > ham11s07-in-x0e.1e100.net: ICMP6, echo request, seq 1, length 40
19:13:41.479673 IP6 1234:5678:9999::249 > ham11s07-in-x0e.1e100.net: ICMP6, echo request, seq 2, length 40
19:13:42.502166 IP6 1234:5678:9999::249 > ham11s07-in-x0e.1e100.net: ICMP6, echo request, seq 3, length 40
If I ping the newspaper www.welt.de I get ping IPv6 replies on both machines. What does it mean? The Google server knows somehow which is a Linux ping and decides not to answer in this case, or do I still have an error in my configuration? Is it the high sequence number?

Can you ping6 ipv6.google.com with your Debian machine?



Thanks

Peter
 
Old 10-04-2023, 03:01 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,857

Rep: Reputation: 161Reputation: 161
How about ping6 to 1234:5678:9999::240 directly instead of ipv6.google.com?
 
Old 10-04-2023, 03:33 PM   #3
peterfarge
LQ Newbie
 
Registered: Oct 2023
Posts: 3

Original Poster
Rep: Reputation: 0
You mean a ping6 from the Debian machine to the Windows machine (and the other way around)? It works in both ways, I get replies in both directions.
 
Old 10-05-2023, 03:04 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,857

Rep: Reputation: 161Reputation: 161
But the linux ping (ping6 -s 32 ipv6.google.com) gives no replies? (I set the payload to 32+8 to make it the same size as the windows ping)
ping6 -s 32 1234:5678:9999::240
 
Old 10-05-2023, 03:19 PM   #5
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 374

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by nini09 View Post
How about ping6 to 1234:5678:9999::240 directly instead of ipv6.google.com?
1234.5678.9999::240 is the transmitter.
Do you mean to ask the OP to ping 2a00:1450:4005:800::200e?
 
Old 10-09-2023, 03:34 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,857

Rep: Reputation: 161Reputation: 161
> Do you mean to ask the OP to ping 2a00:1450:4005:800::200e?
I want reporter to ping IPv6 address directly instead of using dns name, ipv6.google.com. The IPv6 address of ipv6.google.com is 2607:f8b0:4005:80b::200e.
 
Old 10-11-2023, 01:01 PM   #7
peterfarge
LQ Newbie
 
Registered: Oct 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Its the construction of the packet. I tried to build the windows ping with linux ping options, but it does not work out. The payload in windows is "abcdefghijklmnopqrstuvwabcdefghi" and in linux it's a timestamp followed by optional padding (-p HexNbr). I couldnt get rid of the timestamp and add custom payload in the same time. Also flow control cant be zero in linux, if you set it to zero, linux takes random numbers instead.

So I installed trafgen from netsniff-ng packet to send custom packets.
1. I recorded the windows and linux icmpv6 ping request on the lan interface of the router with:
tcpdump -A -i eth0.1 "icmp6 && ip6[40] == 128" -w windows.cap
2. I converted the packets in trafgen conf files for later resending
netsniff-ng --in windows.cap --out windows.cfg -s
netsniff-ng --in linux.cap --out linux.cfg -s

I opened the linux.cfg and set manually the abcdef... payload, the flow label to 0x00000, the hop limit to 0x80. (Open packet with wireshark, it shows the location of these fields)
Calculating the checksum by hand was too hard for me, so I resend the packet and recorded it on the router:
trafgen --in linux.cfg --num 1 --out ens33
I opened the newly created ping request cap file with wireshark and it told me that the checksum is false and what the correct checksum would be. So I put the right checksum into linux.cfg. Resending it again:
trafgen --in linux.cfg --num 1 --out ens33
If you had now put tcpdump -A -i eth0.1 icmp6 on the router interface, you could see the echo request and reply. So its the construction of the packet.

So don't use google servers for testing your IPv6 connection!

If you use this statement, you get sometimes a ping reply. If not, change the 20 hex FlowControlBits in -F and try again.
ping6 -c 1 -s 32 -t 128 -F 00001 2a00:1450:4005:801::200e
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] have access to ipv6.google.com but not other ipv6 address superweijiafeng Linux - Networking 6 12-08-2014 02:28 PM
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM
[SOLVED] Weird ping and ping replies from google.... corp769 Linux - General 6 03-07-2011 07:43 PM
scanning for replies to replies pixellany LQ Suggestions & Feedback 2 04-10-2008 10:22 AM
no ping replies from linux server kags Linux - Networking 5 09-21-2003 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration