Re: ipv6 / rtadv problem

From: Sergey Kandaurov <pluknet_at_gmail.com>
Date: Mon, 28 Mar 2011 19:07:06 +0400
On 28 March 2011 16:55, Daniel O'Connor <darius_at_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
Received on Mon Mar 28 2011 - 13:28:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:12 UTC