Bug 170223

Summary: IPv6 configuration section for 9.x is incorrect
Product: Documentation Reporter: olivier
Component: Books & ArticlesAssignee: Brad Davis <brd>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description olivier 2012-07-27 22:50:06 UTC
Hi,
the section "32.12.5.1 IPv6 Client Settings" of the handbook is wrong.

It says:

To have rtsol(8) autoconfigure your interface on boot on FreeBSD 9.x and later, add:
ipv6_prefer="YES"
to rc.conf.

=> This is totally wrong, if you put ipv6_prefer on a 9.x it will say:
"WARNING: $ipv6_prefer is obsolete.  Ignored."

A working method on a 9.0 is to configure the rc.conf like this:
ipv6_enable="YES"
ipv6_network_interfaces="em0"

A working method on a 9.1-prerelease is to configure the rc.conf like that:
ipv6_activate_all_interfaces="YES"
ifconfig_em0_ipv6="inet6 accept_rtadv"

(without the last line, the interface will not accept the rtadv: Then no global address neither default route).

Regards,
Comment 1 Glen Barber freebsd_committer freebsd_triage 2012-07-27 23:44:40 UTC
Responsible Changed
From-To: freebsd-doc->gjb

Documenting IPv6 inconsistencies has been my headache recently...
Comment 2 moggie 2012-07-31 15:09:55 UTC
Hi,

Please also mention rtsold(8) in the IPv6 configuration documentation 
and stress the importance of running it all the time on properly 
configured networks. From what I understand, without rtsold(8), IPv6 
clients will not automatically adapt to route advertisement changes 
within the network.

Thanks.
Comment 3 moggie 2012-07-31 18:25:27 UTC
Thinking about it, I realise that the roles rtsol(8) and rtsold(8) play 
are different from what I originally understood. Meaning, rtsold(8) 
should only be needed in situations where routers don't (for some 
reason) automatically send route advertisement messages themselves. 
Sorry for the misunderstanding and noise.
Comment 4 Glen Barber freebsd_committer freebsd_triage 2012-09-24 12:11:38 UTC
Responsible Changed
From-To: gjb->freebsd-docs

Back to the pool for now.  I have not had time to make proper progress 
on this.
Comment 5 Glen Barber freebsd_committer freebsd_triage 2012-09-24 12:14:23 UTC
Responsible Changed
From-To: freebsd-docs->freebsd-doc

Fix assignment.
Comment 6 davide.davini 2013-02-01 07:14:14 UTC
Still no fix on the handbook documentation. That can be very annoying.
I'm talking out of personal experience. Please fix it.

-- 
Distinti saluti,
Davide Davini (Int: .99)

Trebi Generalconsult srl - Tel: 02-581913.1 Fax: 02-58115059
Comment 7 dfilter service freebsd_committer freebsd_triage 2013-08-27 10:33:13 UTC
Author: brd
Date: Tue Aug 27 09:33:05 2013
New Revision: 42590
URL: http://svnweb.freebsd.org/changeset/doc/42590

Log:
  - Fix IPv6 Setup instructions for the handbook [1]
  - Break the auto/static configure sections apart to make it easier to tell the difference
  - Add some replaceable tags
  - Switch to using the IPv6 doc prefix
  - Fix a few small typos
  
  PR:		170223 [1]
  Reviewed by:	bz@, gavin@

Modified:
  head/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml

Modified: head/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml	Mon Aug 26 13:23:19 2013	(r42589)
+++ head/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml	Tue Aug 27 09:33:05 2013	(r42590)
@@ -5319,29 +5319,38 @@ redirect_port tcp 192.168.0.3:80 80</pro
 	<filename>/etc/rc.conf</filename></title>
 
       <sect3>
-	<title><acronym>IPv6</acronym> Client Settings</title>
+	<title><acronym>IPv6</acronym> Client Auto-Configuration</title>
 
-	<para>These settings configure a machine on a
+	<para>To automatically configure a machine on a
 	  <acronym>LAN</acronym> which acts as a client, not a
-	  router.  To instruct &man.rtsol.8; to autoconfigure the
-	  interface on boot on
-	  &os;&nbsp;9.<replaceable>x</replaceable> and later, add
-	  this line to <filename>rc.conf</filename>:</para>
-
-	<programlisting>ipv6_prefer="YES"</programlisting>
+	  router, two items are required.  First to enable the
+	  <devicename>em0</devicename> to receive the router solicitation
+	  messages, add this line to <filename>rc.conf</filename>:</para>
+	
+	<programlisting>ifconfig_<replaceable>em0</replaceable>_ipv6="inet6 accept_rtadv"</programlisting>
+	
+	<para>Secondly, the router solicitation daemon, &man.rtsol.8;,
+	  should be enabled by adding the following to
+	  <filename>rc.conf</filename>:</para>
+	
+	<programlisting>rtsold_enable="YES"</programlisting>
 
 	<para>For &os;&nbsp;8.<replaceable>x</replaceable>,
 	  add:</para>
 
 	<programlisting>ipv6_enable="YES"</programlisting>
+	  </sect3>
+	  <sect3>
+	    <title><acronym>IPv6</acronym> Client Static
+	      Configuration</title>
 
 	<para>To statically assign the <acronym>IPv6</acronym>
 	  address, <hostid
-	    role="ip6addr">2001:471:1f11:251:290:27ff:fee0:2093</hostid>,
+	    role="ip6addr">2001:db8:4672:6565:2026:5043:2d42:5344</hostid>,
 	  to <devicename>fxp0</devicename>, add the following for
 	  &os;&nbsp;9.<replaceable>x</replaceable>:</para>
 
-	<programlisting>ifconfig_fxp0_ipv6="inet6 2001:471:1f11:251:290:27ff:fee0:2093 prefixlen <replaceable>64</replaceable>"</programlisting>
+	<programlisting>ifconfig_<replaceable>fxp0</replaceable>_ipv6="inet6 2001:db8:4672:6565:2026:5043:2d42:5344 prefixlen 64"</programlisting>
 
 	<note>
 	  <para>Be sure to change <replaceable>prefixlen
@@ -5349,16 +5358,16 @@ redirect_port tcp 192.168.0.3:80 80</pro
 	    subnet.</para>
 	</note>
 
-	<para>For &os;&nbsp;8<replaceable>x</replaceable>,
+	<para>For &os;&nbsp;8.<replaceable>x</replaceable>,
 	  add:</para>
 
-	<programlisting>ipv6_ifconfig_fxp0="2001:471:1f11:251:290:27ff:fee0:2093"</programlisting>
+	<programlisting>ipv6_ifconfig_<replaceable>fxp0</replaceable>="2001:db8:4672:6565:2026:5043:2d42:5344"</programlisting>
 
 	<para>To assign a default router of <hostid
-	    role="ip6addr">2001:471:1f11:251::1</hostid>, add the
+	    role="ip6addr">2001:db8:4672:6565::1</hostid>, add the
 	  following to <filename>/etc/rc.conf</filename>:</para>
 
-	<programlisting>ipv6_defaultrouter="2001:471:1f11:251::1"</programlisting>
+	<programlisting>ipv6_defaultrouter="2001:db8:4672:6565::1"</programlisting>
       </sect3>
 
       <sect3>
@@ -5372,9 +5381,9 @@ redirect_port tcp 192.168.0.3:80 80</pro
 
 	<para>The first entry lists the generic tunneling interfaces
 	  to be configured.  This example configures one interface,
-	  <devicename>gif0</devicename>:</para>
+	  <devicename>gif<replaceable>0</replaceable></devicename>:</para>
 
-	<programlisting>gif_interfaces="gif0"</programlisting>
+	<programlisting>gif_interfaces="gif<replaceable>0</replaceable>"</programlisting>
 
 	<para>To configure that interface with a local endpoint of
 	  <replaceable>MY_IPv4_ADDR</replaceable> to a remote endpoint
_______________________________________________
svn-doc-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "svn-doc-all-unsubscribe@freebsd.org"
Comment 8 Brad Davis freebsd_committer freebsd_triage 2013-08-27 10:33:27 UTC
State Changed
From-To: open->feedback

I have committed a fix, please test and let me know if it works now. 


Comment 9 Brad Davis freebsd_committer freebsd_triage 2013-08-27 10:33:27 UTC
Responsible Changed
From-To: freebsd-doc->brd
Comment 10 Brad Davis freebsd_committer freebsd_triage 2013-11-12 17:53:10 UTC
State Changed
From-To: feedback->closed

Timeout