Hi guys, I upgraded my desktop at work just around christmas to 9-PRERELEASE builds and ipv6 has been broken since then. I've been too busy at work to fix it but today I finally had the chance to figure it out. Currently I'm running: 12:11:15 tech304:~ > uname -a FreeBSD tech304.office.supranet.net 9.0-STABLE FreeBSD 9.0-STABLE #2 r229703M: Fri Jan 6 11:01:58 CST 2012 root@tech304.office.supranet.net:/usr/obj/tank/svn/sys/GENERIC amd64 and my ipv6 is not working. In rc.conf I have ipv6_enable_all_interfaces="YES" which sets the link local and I had net.inet6.ip6.accept_rtadv=1 in sysctl.conf. I can confirm that it was indeed activated in sysctl, but ifconfig didn't think so: re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC> ether d0:67:e5:17:e1:32 inet6 fe80::d267:e5ff:fe17:e132%re0 prefixlen 64 scopeid 0x2 inet 192.168.93.23 netmask 0xffffff00 broadcast 192.168.93.255 nd6 options=23<PERFORMNUD,AUTO_LINKLOCAL> ## Where's the ACCEPT_RTADV??? media: Ethernet autoselect (100baseTX <full-duplex>) status: active I have to manually do # ifconfig re0 inet6 accept_rtadv to get it to work. Am I missing something? Grepping /etc/rc.d/ for rtadv finds no clues. Is this broken for everyone, for the re driver, or am I just crazy? Here's pciconf for the device -- let me know if any further info would be useful: re0@pci0:4:0:0: class=0x020000 card=0x04f51028 chip=0x816810ec rev=0x06 hdr=0x00 vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' class = network subclass = ethernet Thanks, Mark
On 6 January 2012 22:19, Mark Felder <feld@feld.me> wrote:> Hi guys, >Hi,> I upgraded my desktop at work just around christmas to 9-PRERELEASE builds > and ipv6 has been broken since then. I've been too busy at work to fix it > but today I finally had the chance to figure it out. > > Currently I'm running: > > 12:11:15 tech304:~ > uname -a > FreeBSD tech304.office.supranet.net 9.0-STABLE FreeBSD 9.0-STABLE #2 > r229703M: Fri Jan ?6 11:01:58 CST 2012 > root@tech304.office.supranet.net:/usr/obj/tank/svn/sys/GENERIC ?amd64 > > and my ipv6 is not working. In rc.conf I have > ipv6_enable_all_interfaces="YES" which sets the link local and I hadYou mean ipv6_activate_all_interfaces="YES" ?> net.inet6.ip6.accept_rtadv=1 in sysctl.conf. I can confirm that it was > indeed activated in sysctl, but ifconfig didn't think so: > > re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 > > ?options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC> > ? ? ? ?ether d0:67:e5:17:e1:32 > ? ? ? ?inet6 fe80::d267:e5ff:fe17:e132%re0 prefixlen 64 scopeid 0x2 > ? ? ? ?inet 192.168.93.23 netmask 0xffffff00 broadcast 192.168.93.255 > ? ? ? ?nd6 options=23<PERFORMNUD,AUTO_LINKLOCAL> ? ?## Where's the > ACCEPT_RTADV??? > ? ? ? ?media: Ethernet autoselect (100baseTX <full-duplex>) > ? ? ? ?status: active > > I have to manually do > > # ifconfig re0 inet6 accept_rtadv > > to get it to work. Am I missing something? Grepping /etc/rc.d/ for rtadv > finds no clues. Is this broken for everyone, for the re driver, or am I just > crazy?What is in your rc.conf? Do you have "inet6 accept_rtadv" keyword in it? IIRC it should be enough to specify ifconfig_re0_ipv6="inet6 accept_rtadv" without additional tweaks. Consult with rc.conf(5). HTH, pluknet
Mark Felder <feld@feld.me> wrote in <891fe25c-1560-479f-b855-1713c1c7a976@email.android.com>: fe> Hiroki Sato <hrs@FreeBSD.org> wrote: fe> > fe> > Is it correct that ACCEPT_RTADV option was enabled on the vboxnet0 fe> > and not on re0, even after setting net.inet6.ip6.accept_rtadv to 1 at fe> > boot time and ipv6_activate_all_interfaces="YES"? fe> > fe> >-- Hiroki fe> fe> Yes, that is the behavior I witnessed. It is an unexpected behavior and the flag should be set on all interfaces. Can you send me your /etc/rc.conf, /etc/sysctl.conf, and the result of "ifconfig -a"? -- Hiroki -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20120107/d6a517db/attachment.pgp
On Sat, 07 Jan 2012 14:23:46 -0600, Hiroki Sato <hrs@freebsd.org> wrote:> It is an unexpected behavior and the flag should be set on all > interfaces. Can you send me your /etc/rc.conf, /etc/sysctl.conf, and > the result of "ifconfig -a"?Back at work so I have access to the machine again: rc.conf: hostname="tech304.office.xxx.net" ifconfig_re0="inet 192.168.93.23/24" defaultrouter="192.168.93.1" ipv6_activate_all_interfaces="YES" ipv6_ifconfig_re0="inet6 accept_rtadv" sshd_enable="YES" linux_enable="YES" ntpd_enable="YES" ntpdate_enable="YES" vboxnet_enable="YES" tcp_drop_synfin="YES" icmp_log_redirect="YES" update_motd="NO" dbus_enable="YES" hald_enable="YES" moused_enable="NO" moused_nondefault_enable="NO" oss_enable="NO" #nginx nginx_enable="YES" fcgiwrap_enable="YES" fcgiwrap_user="www" samba_enable="YES" #samba_config="/usr/local/etc/samba34/smb.conf" lpd_enable="YES" #slim_enable="YES" exim_enable="YES" sendmail_enable="NONE" nfs_client_enable="YES" smartd_enable="YES" zfs_enable="YES" sysctl.conf: # Uncomment this to prevent users from seeing information about processes that # are being run under another UID. #security.bsd.see_other_uids=0 net.inet.tcp.drop_synfin=1 net.inet.icmp.log_redirect=1 vfs.usermount=1 net.inet6.ip6.accept_rtadv=1 # ifconfig -a 11:43:29 tech304:~ > ifconfig -a re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC> ether d0:67:e5:17:e1:32 inet6 fe80::d267:e5ff:fe17:e132%re0 prefixlen 64 scopeid 0x2 inet 192.168.93.23 netmask 0xffffff00 broadcast 192.168.93.255 inet6 2607:f4e0:100:104:d267:e5ff:fe17:e132 prefixlen 64 autoconf nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=3<RXCSUM,TXCSUM> inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> vboxnet0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 0a:00:27:00:00:00 nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> Regards, Mark
Mark Felder <feld@feld.me> wrote in <op.v7tvkbkr34t2sn@tech304>: fe> On Sat, 07 Jan 2012 14:23:46 -0600, Hiroki Sato <hrs@freebsd.org> fe> wrote: fe> fe> > It is an unexpected behavior and the flag should be set on all fe> > interfaces. Can you send me your /etc/rc.conf, /etc/sysctl.conf, and fe> > the result of "ifconfig -a"? fe> fe> Back at work so I have access to the machine again: (snip) fe> # ifconfig -a fe> fe> 11:43:29 tech304:~ > ifconfig -a fe> re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric fe> 0 mtu 1500 fe> options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC> fe> ether d0:67:e5:17:e1:32 fe> inet6 fe80::d267:e5ff:fe17:e132%re0 prefixlen 64 scopeid 0x2 fe> inet 192.168.93.23 netmask 0xffffff00 broadcast 192.168.93.255 fe> inet6 2607:f4e0:100:104:d267:e5ff:fe17:e132 prefixlen 64 autoconf fe> nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> fe> media: Ethernet autoselect (100baseTX <full-duplex>) fe> status: active re0 seems to have ACCEPT_RTADV. What is the problem? fe> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 fe> options=3<RXCSUM,TXCSUM> fe> inet6 ::1 prefixlen 128 fe> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 fe> inet 127.0.0.1 netmask 0xff000000 fe> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> fe> vboxnet0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 fe> ether 0a:00:27:00:00:00 fe> nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> -- Hiroki -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20120109/7f33a307/attachment.pgp