22
7
I'm trying to understand IPv6 better.
Firstly, I try ifconfig, and I get the following:
eth0 Link encap:Ethernet HWaddr XXXXXXX
inet addr:X.X.X.X Bcast:X.X.X.X Mask:XXXXXXXXX
inet6 addr: XXXX::XXXX:XXX:XXXX:XXX/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:138752772 errors:0 dropped:0 overruns:0 frame:0
TX packets:67894054 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:67347428211 (67.3 GB) TX bytes:168368922639 (168.3 GB)
Interrupt:43
So from the above I can assume IPv6 is enabled (correct me if I'm wrong here).
Now if I use ping localhost
I get:
64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=2 ttl=64 time=0.019 ms
64 bytes from localhost (127.0.0.1): icmp_req=3 ttl=64 time=0.025 ms
...
But when I use ping6 localhost
I get:
unknown host
How do I use ping6
? Or more specifically, what changes needs to be done to make ping6 localhost
work (if possible at all)?
3If you're on Linux, you should generally avoid
ifconfig
androute
– preferip addr
andip route
, which support more networking features and have a more consistent output. – user1686 – 2015-11-25T14:41:57.763@grawity thx for the tip mate, very useful – nafas – 2015-11-26T11:10:55.743