On Thu, Jan 19, 2012 at 8:43 AM, Grant Edwards
<[email protected]> wrote:
> How do you specify a link-local ipv6 address in /etc/hosts?
>
> For example, I can ping/telnet/ssh to fe80::02c0:4eff:fe07:0005%eth1,
> but I can't figure out how to put that address in /etc/hosts so I can
> access it by name.

Just put the address without the %iface. Then you must specify the
interface in your program, for example:

in /etc/hosts:
fe80::02c0:4eff:fe07:0005 foobar

ping6 -I eth0 foobar

should work.

> Similarly, how do you enter an ipv6 link-local address in Firefox or
> Opera?  curl seems to accept such an address and return the proper web
> page, but I can't find any interactive browser (graphical or
> command-line) that will accept a link-local address.  So far I've
> tried Firefox Opera w3m links. According to RFC2732 it looks like the
> format should be
>
>  http://[fe80::02c0:4eff:fe07:0005%eth1]:80/

% in a URL must be escaped, so you probably need to replace the %
symbol with %25. Try this:

http://[fe80::02c0:4eff:fe07:0005%25eth1]:80/

I didn't try it. Good luck. :)

Reply via email to