Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Link-local ipv6 address in /etc/hosts? in browsers?
Date: Thu, 19 Jan 2012 16:02:06
Message-Id: CA+czFiA_pV6E3qYNCud2vh9B8gscsdUAME=e1u7-o7MxL2j3wg@mail.gmail.com
In Reply to: Re: [gentoo-user] Link-local ipv6 address in /etc/hosts? in browsers? by Paul Hartman
1 On Thu, Jan 19, 2012 at 10:46 AM, Paul Hartman
2 <paul.hartman+gentoo@×××××.com> wrote:
3 > On Thu, Jan 19, 2012 at 8:43 AM, Grant Edwards
4 > <grant.b.edwards@×××××.com> wrote:
5 >> How do you specify a link-local ipv6 address in /etc/hosts?
6 >>
7 >> For example, I can ping/telnet/ssh to fe80::02c0:4eff:fe07:0005%eth1,
8 >> but I can't figure out how to put that address in /etc/hosts so I can
9 >> access it by name.
10 >
11 > Just put the address without the %iface. Then you must specify the
12 > interface in your program, for example:
13 >
14 > in /etc/hosts:
15 > fe80::02c0:4eff:fe07:0005 foobar
16 >
17 > ping6 -I eth0 foobar
18 >
19 > should work.
20
21 Works here with ping6. Sucks, though, because most network clients
22 don't allow you to specify the interface, so those won't work.
23
24
25 >
26 >> Similarly, how do you enter an ipv6 link-local address in Firefox or
27 >> Opera?  curl seems to accept such an address and return the proper web
28 >> page, but I can't find any interactive browser (graphical or
29 >> command-line) that will accept a link-local address.  So far I've
30 >> tried Firefox Opera w3m links. According to RFC2732 it looks like the
31 >> format should be
32 >>
33 >>  http://[fe80::02c0:4eff:fe07:0005%eth1]:80/
34 >
35 > % in a URL must be escaped, so you probably need to replace the %
36 > symbol with %25. Try this:
37 >
38 > http://[fe80::02c0:4eff:fe07:0005%25eth1]:80/
39 >
40 > I didn't try it. Good luck. :)
41 >
42
43 Doesn't seem to work with wget. Don't have a GUI web browser on IPv6
44 to play with here.
45
46 --
47 :wq

Replies

Subject Author
Re: [gentoo-user] Link-local ipv6 address in /etc/hosts? in browsers? Paul Hartman <paul.hartman+gentoo@×××××.com>