Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2011 21:04:00 -0600 (CST)
From:      Dan The Man <dan@sunsaturn.com>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        freebsd-current@freebsd.org, Stefan Bethke <stb@lassitu.de>
Subject:   Re: rc.conf changes IPV6
Message-ID:  <alpine.BSF.2.00.1111212036400.62387@sunsaturn.com>
In-Reply-To: <alpine.BSF.2.00.1111211947420.99924@sunsaturn.com>
References:  <alpine.BSF.2.00.1111211316390.51326@sunsaturn.com> <5F3A6014-8DD4-4FDF-88E4-2DFF2322F963@lassitu.de> <alpine.BSF.2.00.1111211929200.99924@sunsaturn.com> <4ECAFE36.1060705@FreeBSD.org> <alpine.BSF.2.00.1111211947420.99924@sunsaturn.com>

next in thread | previous in thread | raw e-mail | index | archive | help


Your right Doug, didn't bother taking box down after changing to new 
format, it works as expected, ignoring duplicate aliases regardless of 
protocal.

I've regrouped my configs into interfaces instead of protocals now for the 
change so ipv4/6 aliases can be seen together without making mistakes.

Definately would be nice to see ipv6_addrs_<ifname> added.


Dan.


--
Dan The Man
CTO/ Senior System Administrator
Websites, Domains and Everything else
http://www.SunSaturn.com
Email: Dan@SunSaturn.com

On Mon, 21 Nov 2011, Dan The Man wrote:

>
>
> Good point, I did switch to new config, let me find a box I can take down and 
> I'll report back. I assume you'd be right considering how shell scripting 
> works, that would not make much sense...
>
>
> Dan.
>
>
> --
> Dan The Man
> CTO/ Senior System Administrator
> Websites, Domains and Everything else
> http://www.SunSaturn.com
> Email: Dan@SunSaturn.com
>
> On Mon, 21 Nov 2011, Doug Barton wrote:
>
>> On 11/21/2011 17:39, Dan The Man wrote:
>>> 
>>> On Mon, 21 Nov 2011, Stefan Bethke wrote:
>>> 
>>>> Am 21.11.2011 um 20:25 schrieb Dan The Man:
>>>> 
>>>>> I notice we have changed way IPV6 is done in rc.conf now.
>>>>> I assume someone will update:
>>>>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ipv6.html
>>>>> 
>>>>> 
>>>>> My question now concerns aliases, and what the norm will end up being.
>>>>> Here is example below:
>>>>> Here we have the new layout with IPV6, the below works fine, however
>>>>> since
>>>>> the ifconfig lines for IPV4 and IPV6 are essentially the same other
>>>>> than the actual "inet" and "inet6", will it be ok to start with
>>>>> alias0 for both IPV4 and IPV6, or should I in this example be
>>>>> starting at alias4 for IPV6?
>>>>> I would like idea to keep it way it is each protocal starting at alias0.
>>>>> 
>>>>> 
>>>>> #GATEWAY
>>>>> defaultrouter="67.159.46.233"
>>>>> hostname="sunsaturn.com"
>>>>> #IPV4
>>>>> ifconfig_em1="inet 67.159.46.238 netmask 255.255.255.248"
>>>>> ifconfig_em1_alias0="inet 67.159.46.234 netmask 255.255.255.248"
>>>>> ifconfig_em1_alias1="inet 67.159.46.235 netmask 255.255.255.248"
>>>>> ifconfig_em1_alias2="inet 67.159.46.236 netmask 255.255.255.248"
>>>>> ifconfig_em1_alias3="inet 67.159.46.237 netmask 255.255.255.248"
>>>>> 
>>>>> #IPV6
>>>>> ipv6_activate_all_interfaces="YES"
>>>>> ipv6_network_interfaces="em1"
>>>>> ipv6_defaultrouter="2001:49f0:4004:0000:0000:0000:0000:0001"
>>>>> ifconfig_em1_ipv6="inet6 2001:49f0:4004:0000:0000:0000:0000:0002
>>>>> prefixlen 48"
>>>>> ifconfig_em1_alias0="inet6 2001:49f0:4004:0000:0000:0000:0000:0003
>>>>> prefixlen 48"
>>>>> ifconfig_em1_alias1="inet6 2001:49f0:4004:0000:0000:0000:0000:0004
>>>>> prefixlen 48"
>>>> 
>>>> Remember that rc.conf follows shell syntax and sematics, so the second
>>>> _alias0 and _alias1 will overwrite the previous ones.
>>>> 
>>>> In 9.0 you can use the ipv4_addrs_<ifname> variable to set both the
>>>> IPv4 "main" address as well as "alias" addresses, see rc.conf(5).
>>>> There doesn't seem to be an equivalent IPv6 option, as best as I can
>>>> tell.
>>> 
>>> You would assume so Stefan, that the duplicate alias0 would overwrite,
>>> but it seems since ifconfig separates the namespace for IPV4/IPV6 it
>>> actually works.
>> 
>> I don't see how that could possibly be true, how have you tested it?
>> 
>> 
>> Doug
>> 
>> -- 
>>
>> 		"We could put the whole Internet into a book."
>> 		"Too practical."
>>
>> 	Breadth of IT experience, and depth of knowledge in the DNS.
>> 	Yours for the right price.  :)  http://SupersetSolutions.com/
>> 
>> 
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1111212036400.62387>