1 |
On Thu, Jan 19, 2012 at 11:28 AM, Paul Hartman |
2 |
<paul.hartman+gentoo@×××××.com> wrote: |
3 |
> On Thu, Jan 19, 2012 at 10:00 AM, Michael Mol <mikemol@×××××.com> wrote: |
4 |
>> On Thu, Jan 19, 2012 at 10:46 AM, Paul Hartman |
5 |
>> <paul.hartman+gentoo@×××××.com> wrote: |
6 |
>>> On Thu, Jan 19, 2012 at 8:43 AM, Grant Edwards |
7 |
>>> <grant.b.edwards@×××××.com> wrote: |
8 |
>>>> How do you specify a link-local ipv6 address in /etc/hosts? |
9 |
>>>> |
10 |
>>>> For example, I can ping/telnet/ssh to fe80::02c0:4eff:fe07:0005%eth1, |
11 |
>>>> but I can't figure out how to put that address in /etc/hosts so I can |
12 |
>>>> access it by name. |
13 |
>>> |
14 |
>>> Just put the address without the %iface. Then you must specify the |
15 |
>>> interface in your program, for example: |
16 |
>>> |
17 |
>>> in /etc/hosts: |
18 |
>>> fe80::02c0:4eff:fe07:0005 foobar |
19 |
>>> |
20 |
>>> ping6 -I eth0 foobar |
21 |
>>> |
22 |
>>> should work. |
23 |
>> |
24 |
>> Works here with ping6. Sucks, though, because most network clients |
25 |
>> don't allow you to specify the interface, so those won't work. |
26 |
> |
27 |
> Yeah, the real solution is like Felix suggests, to use site-local (or |
28 |
> global) addresses instead of link-local. |
29 |
> |
30 |
>>>> Similarly, how do you enter an ipv6 link-local address in Firefox or |
31 |
>>>> Opera? curl seems to accept such an address and return the proper web |
32 |
>>>> page, but I can't find any interactive browser (graphical or |
33 |
>>>> command-line) that will accept a link-local address. So far I've |
34 |
>>>> tried Firefox Opera w3m links. According to RFC2732 it looks like the |
35 |
>>>> format should be |
36 |
>>>> |
37 |
>>>> http://[fe80::02c0:4eff:fe07:0005%eth1]:80/ |
38 |
>>> |
39 |
>>> % in a URL must be escaped, so you probably need to replace the % |
40 |
>>> symbol with %25. Try this: |
41 |
>>> |
42 |
>>> http://[fe80::02c0:4eff:fe07:0005%25eth1]:80/ |
43 |
>>> |
44 |
>>> I didn't try it. Good luck. :) |
45 |
>>> |
46 |
>> |
47 |
>> Doesn't seem to work with wget. Don't have a GUI web browser on IPv6 |
48 |
>> to play with here. |
49 |
> |
50 |
> I know MSIE on Windows does (since version 7-ish) and I think wget |
51 |
> from Busybox does, other browsers/programs are hit and miss... |
52 |
> |
53 |
> According to RFC 3986: |
54 |
> |
55 |
> "A host identified by an IPv6 literal address is represented inside |
56 |
> the square brackets without a preceding version flag. The ABNF |
57 |
> provided here is a translation of the text definition of an IPv6 |
58 |
> literal address provided in [RFC3513]. This syntax does not support |
59 |
> IPv6 scoped addressing zone identifiers." |
60 |
> |
61 |
> Key being the last sentence. :) So, some browsers support that syntax, |
62 |
> but it's not required. So I would not depend on that feature existing. |
63 |
> Best to avoid using those addresses for web stuff if you can help it. |
64 |
> |
65 |
|
66 |
Indeed. Other reasons to avoid using LL addresses unless necessary: |
67 |
What if the MAC address on the server changes? What if your network |
68 |
grows to have hundreds of clients? Do you really want that much |
69 |
broadcast and wide multicast (think DNS-SD and NTP in multicast mode) |
70 |
traffic on the same Ethernet segment? |
71 |
|
72 |
Flameeyes discovered an oddity with ethernet/wifi bridges which broke |
73 |
node solicitation, too. |
74 |
|
75 |
LL addresses are very useful for diagnostic and investigation |
76 |
purposes, of course. |
77 |
|
78 |
-- |
79 |
:wq |