Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2011 19:07:06 +0400
From:      Sergey Kandaurov <pluknet@gmail.com>
To:        "Daniel O'Connor" <darius@dons.net.au>
Cc:        freebsd-current Current <freebsd-current@freebsd.org>
Subject:   Re: ipv6 / rtadv problem
Message-ID:  <AANLkTinaELN40kvgDrjN0=iPT1KJNS=P2duFEk7jRS2W@mail.gmail.com>
In-Reply-To: <451C39DA-76B9-4767-9FFC-24F2A182E301@dons.net.au>
References:  <451C39DA-76B9-4767-9FFC-24F2A182E301@dons.net.au>

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

On 28 March 2011 16:55, Daniel O'Connor <darius@dons.net.au> wrote:
> Hi,
> I am trying to get a -CURRENT box to get an IPv6 address via RTADV, however I am not having any luck.
>
> I have tried the following in rc.conf :-
> ipv6_enable="YES"
> ipv6_gateway_enable="YES"
>
> ifconfig_em0_ipv6="RTADV"
>
> (the last one I haven't seen before but it didn't seem to have an effect anyway)
>
> ifconfig shows..
> em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>        options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
>        ether 00:25:90:32:09:1e
>        inet6 fe80::225:90ff:fe32:91e%em0 prefixlen 64 scopeid 0x2
>        inet 203.31.81.43 netmask 0xffffffc0 broadcast 203.31.81.63
>        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
>        media: Ethernet autoselect (100baseTX <full-duplex>)
>        status: active
>
> I see rtadv packets on the network :-
> 12:50:46.444380 IP6 fe80::204:61ff:fe79:276f > ff02::1: ICMP6, router advertisement, length 56
>
> Other hosts can obtain a prefix just fine. This is the only 9.0 one, I have other FreeBSD boxes but they are 8.x ish.
>

Hi.

1) ipv6_enable is obsolete in HEAD, see UPDATING.
2) Normally hosts ignore rtadv packets if ipv6_gateway_enable is also
set (as per rfc4861).
All you need is something like ifconfig_em0_ipv6="inet6 accept_rtadv"

-- 
wbr,
pluknet


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinaELN40kvgDrjN0=iPT1KJNS=P2duFEk7jRS2W>