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>

next in thread | previous in thread | raw e-mail | index | archive | help
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, howev=
er I am not having any luck.
>
> I have tried the following in rc.conf :-
> ipv6_enable=3D"YES"
> ipv6_gateway_enable=3D"YES"
>
> ifconfig_em0_ipv6=3D"RTADV"
>
> (the last one I haven't seen before but it didn't seem to have an effect =
anyway)
>
> ifconfig shows..
> em0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
> =A0 =A0 =A0 =A0options=3D219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_=
HWCSUM,TSO4,WOL_MAGIC>
> =A0 =A0 =A0 =A0ether 00:25:90:32:09:1e
> =A0 =A0 =A0 =A0inet6 fe80::225:90ff:fe32:91e%em0 prefixlen 64 scopeid 0x2
> =A0 =A0 =A0 =A0inet 203.31.81.43 netmask 0xffffffc0 broadcast 203.31.81.6=
3
> =A0 =A0 =A0 =A0nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
> =A0 =A0 =A0 =A0media: Ethernet autoselect (100baseTX <full-duplex>)
> =A0 =A0 =A0 =A0status: active
>
> I see rtadv packets on the network :-
> 12:50:46.444380 IP6 fe80::204:61ff:fe79:276f > ff02::1: ICMP6, router adv=
ertisement, length 56
>
> Other hosts can obtain a prefix just fine. This is the only 9.0 one, I ha=
ve 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=3D"inet6 accept_rtadv"

--=20
wbr,
pluknet



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