Re: ipv6_activate_all_interfaces doesn't work on wireless interface.

2013-08-17 Thread Kevin Oberman
On Fri, Aug 16, 2013 at 11:54 AM, Eric Camachat eric.camac...@gmail.comwrote:

 OK, I will try add accept_rtadv to ifconfig_wlan0_ipv6.

 Thanks,
 Eric


 On Fri, Aug 16, 2013 at 6:19 AM, Kimmo Paasiala kpaas...@gmail.com
 wrote:

  On Fri, Aug 16, 2013 at 8:47 AM, Eric L Camachat
  eric.camac...@gmail.com wrote:
   Here is my /etc/rc.conf
   ipv6_enable=YES
   #ip6addrctl_enable=YES
   #ip6addrctl_policy=ipv6_prefer
   #ipv6_activate_all_interfaces=YES
   wlans_iwn0=wlan0
   ifconfig_wlan0=WPA DHCP
  
   rc.d system said ipv6_enable is obsoleted by
   ipv6_activate_all_interfaces.
   So, I tried to replaced ipv6_enable with ipv6_activate_all_interfaces
   and ip6addrctl_*, interface wlan0 will not get ipv6 address from
 router.
  
   After investigated, that's because of wlan0 didn't add 'accept_rtadv'
   ipv6 option.
  
   --
   Eric
  
 
  As far as I know, not enabling accept_rtadv is a reasonable default
  and it has been like that always. Just like DHCP is not a default
  configuration method for IPv4 addresses.
 
  -Kimmo
 


There was a revision to networks.subr in r253683 that removed  accept_rtadv
from default for bridge interfaces.

At least the comment says that it should not be default which implies that
it used to be. If there is a logic error in the commit (I just noted the
change to rtadv and the comment, but did not attempt to confirm the logic),
perhaps accept_rtadv got turned off on more than just bridge interfaces.


 
564http://svnweb.freebsd.org/base/stable/9/etc/network.subr?annotate=253683#l564
   bridge[0-9]*)
565http://svnweb.freebsd.org/base/stable/9/etc/network.subr?annotate=253683#l565
   # No accept_rtadv by default on
if_bridge(4)  
566http://svnweb.freebsd.org/base/stable/9/etc/network.subr?annotate=253683#l566
   # to avoid a conflict with the member
567http://svnweb.freebsd.org/base/stable/9/etc/network.subr?annotate=253683#l567
   # interfaces.
568http://svnweb.freebsd.org/base/stable/9/etc/network.subr?annotate=253683#l568
   return 1
569http://svnweb.freebsd.org/base/stable/9/etc/network.subr?annotate=253683#l569
   ;;
570http://svnweb.freebsd.org/base/stable/9/etc/network.subr?annotate=253683#l570
   *)
-- 
R. Kevin Oberman, Network Engineer
E-mail: rkober...@gmail.com
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: ipv6_activate_all_interfaces doesn't work on wireless interface.

2013-08-17 Thread Eric L Camachat
On Sat, 2013-08-17 at 10:18 -0700, Kevin Oberman wrote:

 There was a revision to networks.subr in r253683 that removed
 accept_rtadv from default for bridge interfaces.
 
 At least the comment says that it should not be default which implies
 that it used to be. If there is a logic error in the commit (I just
 noted the change to rtadv and the comment, but did not attempt to
 confirm the logic), perhaps accept_rtadv got turned off on more than
 just bridge interfaces.
 
 
 
 564
  
 
  bridge[0-9]*)
 565
  
 
# No accept_rtadv by
 default on if_bridge(4)
 566
  
 
# to avoid a
 conflict with the
 member
 567
  
 
# interfaces.
 568
  
 
return 1
 569
  
  ;;
 570
  
  *)
 

That script affect only when ipv6_enable=YES for backward
compatibility, from its comments.

Eric



___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: ipv6_activate_all_interfaces doesn't work on wireless interface.

2013-08-17 Thread Kevin Oberman
On Sat, Aug 17, 2013 at 10:38 AM, Eric L Camachat
eric.camac...@gmail.comwrote:

 On Sat, 2013-08-17 at 10:18 -0700, Kevin Oberman wrote:

  There was a revision to networks.subr in r253683 that removed
  accept_rtadv from default for bridge interfaces.
 
  At least the comment says that it should not be default which implies
  that it used to be. If there is a logic error in the commit (I just
  noted the change to rtadv and the comment, but did not attempt to
  confirm the logic), perhaps accept_rtadv got turned off on more than
  just bridge interfaces.
 
 
 
  564
 
 
   bridge[0-9]*)
  565
 
 
 # No accept_rtadv by
  default on if_bridge(4)
  566
 
 
 # to avoid a
  conflict with the
  member
  567
 
 
 # interfaces.
  568
 
 
 return 1
  569
 
   ;;
  570
 
   *)
 

 That script affect only when ipv6_enable=YES for backward
 compatibility, from its comments.

 Eric


Look further down in the commit for line in the 560s. The section I copied
was the general case, not the legacy one. The code for both is .included.
-- 
R. Kevin Oberman, Network Engineer
E-mail: rkober...@gmail.com
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: ipv6_activate_all_interfaces doesn't work on wireless interface.

2013-08-17 Thread Eric L Camachat
On Sat, 2013-08-17 at 11:12 -0700, Kevin Oberman wrote:
 On Sat, Aug 17, 2013 at 10:38 AM, Eric L Camachat
 eric.camac...@gmail.com wrote:
 On Sat, 2013-08-17 at 10:18 -0700, Kevin Oberman wrote:
 
  There was a revision to networks.subr in r253683 that
 removed
  accept_rtadv from default for bridge interfaces.
 
  At least the comment says that it should not be default
 which implies
  that it used to be. If there is a logic error in the commit
 (I just
  noted the change to rtadv and the comment, but did not
 attempt to
  confirm the logic), perhaps accept_rtadv got turned off on
 more than
  just bridge interfaces.
 
 
 
  564
 
 
   bridge[0-9]*)
  565
 
 
 # No accept_rtadv by
  default on if_bridge(4)
  566
 
 
 # to avoid a
  conflict with the
  member
  567
 
 
 # interfaces.
  568
 
 
 return 1
  569
 
   ;;
  570
 
   *)
 
 
 That script affect only when ipv6_enable=YES for backward
 compatibility, from its comments.
 
 Eric
 
 Look further down in the commit for line in the 560s. The section I
 copied was the general case, not the legacy one. The code for both
 is .included.
 
 -- 
I see, thanks.


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: ipv6_activate_all_interfaces doesn't work on wireless interface.

2013-08-16 Thread Kimmo Paasiala
On Fri, Aug 16, 2013 at 8:47 AM, Eric L Camachat
eric.camac...@gmail.com wrote:
 Here is my /etc/rc.conf
 ipv6_enable=YES
 #ip6addrctl_enable=YES
 #ip6addrctl_policy=ipv6_prefer
 #ipv6_activate_all_interfaces=YES
 wlans_iwn0=wlan0
 ifconfig_wlan0=WPA DHCP

 rc.d system said ipv6_enable is obsoleted by
 ipv6_activate_all_interfaces.
 So, I tried to replaced ipv6_enable with ipv6_activate_all_interfaces
 and ip6addrctl_*, interface wlan0 will not get ipv6 address from router.

 After investigated, that's because of wlan0 didn't add 'accept_rtadv'
 ipv6 option.

 --
 Eric


As far as I know, not enabling accept_rtadv is a reasonable default
and it has been like that always. Just like DHCP is not a default
configuration method for IPv4 addresses.

-Kimmo
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: ipv6_activate_all_interfaces doesn't work on wireless interface.

2013-08-16 Thread Eric Camachat
OK, I will try add accept_rtadv to ifconfig_wlan0_ipv6.

Thanks,
Eric


On Fri, Aug 16, 2013 at 6:19 AM, Kimmo Paasiala kpaas...@gmail.com wrote:

 On Fri, Aug 16, 2013 at 8:47 AM, Eric L Camachat
 eric.camac...@gmail.com wrote:
  Here is my /etc/rc.conf
  ipv6_enable=YES
  #ip6addrctl_enable=YES
  #ip6addrctl_policy=ipv6_prefer
  #ipv6_activate_all_interfaces=YES
  wlans_iwn0=wlan0
  ifconfig_wlan0=WPA DHCP
 
  rc.d system said ipv6_enable is obsoleted by
  ipv6_activate_all_interfaces.
  So, I tried to replaced ipv6_enable with ipv6_activate_all_interfaces
  and ip6addrctl_*, interface wlan0 will not get ipv6 address from router.
 
  After investigated, that's because of wlan0 didn't add 'accept_rtadv'
  ipv6 option.
 
  --
  Eric
 

 As far as I know, not enabling accept_rtadv is a reasonable default
 and it has been like that always. Just like DHCP is not a default
 configuration method for IPv4 addresses.

 -Kimmo

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org