NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: setting up IPv6 addresses in rc.conf?



"Steven M. Bellovin" <smb%cs.columbia.edu@localhost> writes:

> On Fri, 07 Mar 2008 01:24:48 -0600
> eric%cirr.com@localhost (Eric Schnoebelen) wrote:
>
>> 
>> Greg Troxel writes:
>> - The basic problem seems to be that one wants multiple invocations of
>> - ifconfig, with different values.  With files, you just have multiple
>> - lines.  So either we need line breaks in the string, or
>> - 
>> - ifconfig_de0_0="inet 1.2.3.4/8"
>> - ifconfig_de0_1="inet6 2001:2:3::4"
>> - ifconfig_de0_2=....
>> 
>> Um, this may sound silly or basic, but I do the following:
>> 
>>      ifconfig_de0="inet 1.2.3.4 netmask 0xffff0000"
>>      ifconfig_de0="${ifconfig_de0} inet6 2001:2:3::4"
>> 
>
> Hmm -- when I tried more or less that, I got a message saying that I
> couldn't add two addresses to a non-point-to-point interface.  I'll try
> it again.

I would expect that to result in a single

  ifconfig inet 1.2.3.4 netmask 0xffff0000 inet6 2001:2:3::4

which the man page does not document as valid.  I was suggesting
multiple variables that would result in multiple ifconfig invocations.


Home | Main Index | Thread Index | Old Index