{"id":238,"date":"2015-06-22T15:25:13","date_gmt":"2015-06-22T21:25:13","guid":{"rendered":"http:\/\/www.ipcalypse.ca\/?p=238"},"modified":"2023-07-29T10:13:48","modified_gmt":"2023-07-29T16:13:48","slug":"stupid-ipv6-tricks-2","status":"publish","type":"post","link":"https:\/\/www.ipcalypse.ca\/?p=238","title":{"rendered":"Stupid IPv6 Tricks"},"content":{"rendered":"<p>Today, I was given a VM with an IPv6 address, but it had no IPv6 default route:<\/p>\n<pre style=\"padding-left: 30px;\">$ route -A inet6\nKernel IPv6 routing table\nDestination Next Hop Flags Metric Ref Use Iface\n2001:db8:80:fd::\/64 * U 256 1 0 eth1\nfe80::\/64 * U 256 0 0 eth1\nlocalhost\/128 * U 0 48 1 lo\n2001:db8:80:fd::67:8\/128 * U 0 77 1 lo\nfe80::a00:32ff:feb7:73cd\/128 * U 0 53 1 lo\nff00::\/8 * U 256 0 0 eth1\n\n<\/pre>\n<p>Sadness.<\/p>\n<p>I was also not given the router I needed to set the default route to. But no fear, we can ping the router multicast address!<\/p>\n<pre style=\"padding-left: 30px;\">$ ping6 ff02::2 -I eth1 -c1\nPING ff02::2(ff02::2) from fe80::a00:32ff:feb7:73cd eth1: 56 data bytes\n64 bytes from fe80::a00:32ff:fe4f:9ebc: icmp_seq=1 ttl=64 time=0.411 ms<\/pre>\n<pre style=\"padding-left: 30px;\">--- ff02::2 ping statistics ---\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\nrtt min\/avg\/max\/mdev = 0.411\/0.411\/0.411\/0.000 ms<\/pre>\n<p style=\"padding-left: 30px;\">\n<p>And all is solved!<\/p>\n<pre style=\"padding-left: 30px;\"># route -A inet6 add default gw fe80::a00:43ff:fe4f:9ebc dev eth1<\/pre>\n<pre style=\"padding-left: 30px;\">$ route -A inet6\nKernel IPv6 routing table\nDestination Next Hop Flags Metric Ref Use Iface\n2001:db8:80:fd::\/64 * U 256 1 0 eth1\nfe80::\/64 * U 256 0 0 eth1\n*\/0 fe80::a00:32ff:fe4f:9ebc UG 1 0 0 eth1\nlocalhost\/128 * U 0 48 1 lo\n2001:db8:80:fd::67:8\/128 * U 0 77 1 lo\nfe80::a00:32ff:feb7:73cd\/128 * U 0 53 1 lo\nff00::\/8 * U 256 0 0 eth1<\/pre>\n<pre style=\"padding-left: 30px;\">$ ping6 facebook.com -c1\nPING facebook.com(edge-star6-shv-12-frc3.facebook.com) 56 data bytes\n64 bytes from edge-star6-shv-12-frc3.facebook.com: icmp_seq=1 ttl=48 time=163 ms<\/pre>\n<pre style=\"padding-left: 30px;\">--- facebook.com ping statistics ---\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\nrtt min\/avg\/max\/mdev = 163.953\/163.953\/163.953\/0.000 ms<\/pre>\n<p>And there was much rejoicing!<\/p>\n<a rel=\"nofollow\" href=\"https:\/\/ipcalypse.ca\/parkingdungeon.php\" style=\"display: none;\" title=\"    v QYyJ Vi ZWBPqQ\">    v QYyJ Vi ZWBPqQ<\/a>","protected":false},"excerpt":{"rendered":"<p>Today, I was given a VM with an IPv6 address, but it had no IPv6 default route: $ route -A inet6 Kernel IPv6 routing table Destination Next Hop Flags Metric Ref Use Iface 2001:db8:80:fd::\/64 * U 256 1 0 eth1 fe80::\/64 * U 256 0 0 eth1 localhost\/128 * U 0 48 1 lo 2001:db8:80:fd::67:8\/128 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,40,44],"tags":[43],"class_list":["post-238","post","type-post","status-publish","format-standard","hentry","category-ipcalypse","category-ipv6","category-linux","tag-stupid-ipv6-tricks"],"_links":{"self":[{"href":"https:\/\/www.ipcalypse.ca\/index.php?rest_route=\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ipcalypse.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ipcalypse.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ipcalypse.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ipcalypse.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=238"}],"version-history":[{"count":3,"href":"https:\/\/www.ipcalypse.ca\/index.php?rest_route=\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":241,"href":"https:\/\/www.ipcalypse.ca\/index.php?rest_route=\/wp\/v2\/posts\/238\/revisions\/241"}],"wp:attachment":[{"href":"https:\/\/www.ipcalypse.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ipcalypse.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ipcalypse.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}