Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jul 2020 16:25:40 +0200
From:      Niclas Zeising <zeising+freebsd@daemonic.se>
To:        Eugene Grosbein <eugen@grosbein.net>, net@FreeBSD.org
Subject:   Re: Specifying link-local address in rc.conf
Message-ID:  <f9c707ec-fd0c-3f98-a97c-962e643b0ce3@daemonic.se>
In-Reply-To: <eafb613f-ef7a-f313-fde8-94fa87fd5c55@grosbein.net>
References:  <713e1f3e-4dd9-8dcf-c6d2-15c684bdce5b@daemonic.se> <eafb613f-ef7a-f313-fde8-94fa87fd5c55@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-07-06 16:00, Eugene Grosbein wrote:
> 06.07.2020 18:05, Niclas Zeising wrote:
>> Hi!
>> Is it possible to specify a link-local address in rc.conf, and get only that link-local address?
>>
>> When I add a specific link-local address, such as fe80::1/64, to an interface from the command line,
>> and then add a global uincast address, it works as expected, I do not get an additional link-local address.
> 
> What is exact syntax what works for you manually?

ifconfig vtnet0 inet6 fe80::1/64
ifconfig vtnet0 inet6 2001:6b8::1/64

This does not create additional link-local addresses, just fe80::1.

> 
>> When I try to do the same in rc.conf however, it does not work.
>> I have added the following:
>> ifconfig_vtnet0_inet6="inet6 fe80::1/64"
>> ifconfig_vtnet0_alias0="2001:6b8::1/64"
> 
> You missed "inet6 " address family prefix for the last line. Does adding it help?
>

No, that's just an error from transcribing the setup.  With that in 
/etc/rc.conf I get three addresses on the interface;
* fe80::1/64
* the EUI64 link-local address (fe80::<EUI64>/64)
* 2001:6b8::1/64

Regards
-- 
Niclas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f9c707ec-fd0c-3f98-a97c-962e643b0ce3>