ipv6.texi 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. @node IPv6 Support
  2. @chapter IPv6 Support
  3. Quagga fully supports IPv6 routing. As described so far, Quagga supports
  4. RIPng, OSPFv3, and BGP-4+. You can give IPv6 addresses to an interface
  5. and configure static IPv6 routing information. Quagga IPv6 also provides
  6. automatic address configuration via a feature called @code{address
  7. auto configuration}. To do it, the router must send router advertisement
  8. messages to the all nodes that exist on the network.
  9. @menu
  10. * Router Advertisement::
  11. @end menu
  12. @node Router Advertisement
  13. @section Router Advertisement
  14. @deffn {Interface Command} {no ipv6 nd suppress-ra} {}
  15. Send router advertisment messages.
  16. @end deffn
  17. @deffn {Interface Command} {ipv6 nd suppress-ra} {}
  18. Don't send router advertisment messages.
  19. @end deffn
  20. @deffn {Interface Command} {ipv6 nd prefix @var{ipv6prefix} [@var{valid-lifetime}] [@var{preferred-lifetime}] [off-link] [no-autoconfig] [router-address]} {}
  21. Configuring the IPv6 prefix to include in router advertisements. Several prefix
  22. specific optional parameters and flags may follow:
  23. @itemize @bullet
  24. @item
  25. @var{valid-lifetime} - the length of time in seconds during what the prefix is
  26. valid for the purpose of on-link determination. Value @var{infinite} represents
  27. infinity (i.e. a value of all one bits (@code{0xffffffff})).
  28. Range: @code{<0-4294967295>} Default: @code{2592000}
  29. @item
  30. @var{preferred-lifetime} - the length of time in seconds during what addresses
  31. generated from the prefix remain preferred. Value @var{infinite} represents
  32. infinity.
  33. Range: @code{<0-4294967295>} Default: @code{604800}
  34. @item
  35. @var{off-link} - indicates that advertisement makes no statement about on-link or
  36. off-link properties of the prefix.
  37. Default: not set, i.e. this prefix can be used for on-link determination.
  38. @item
  39. @var{no-autoconfig} - indicates to hosts on the local link that the specified prefix
  40. cannot be used for IPv6 autoconfiguration.
  41. Default: not set, i.e. prefix can be used for autoconfiguration.
  42. @item
  43. @var{router-address} - indicates to hosts on the local link that the specified
  44. prefix
  45. contains a complete IP address by setting R flag.
  46. Default: not set, i.e. hosts do not assume a complete IP address is placed.
  47. @end itemize
  48. @end deffn
  49. @deffn {Interface Command} {ipv6 nd ra-interval <1-1800>} {}
  50. @deffnx {Interface Command} {no ipv6 nd ra-interval [<1-1800>]} {}
  51. The maximum time allowed between sending unsolicited multicast router
  52. advertisements from the interface, in seconds.
  53. Default: @code{600}
  54. @end deffn
  55. @deffn {Interface Command} {ipv6 nd ra-interval msec <70-1800000>} {}
  56. @deffnx {Interface Command} {no ipv6 nd ra-interval [msec <70-1800000>]} {}
  57. The maximum time allowed between sending unsolicited multicast router
  58. advertisements from the interface, in milliseconds.
  59. Default: @code{600000}
  60. @end deffn
  61. @deffn {Interface Command} {ipv6 nd ra-lifetime <0-9000>} {}
  62. @deffnx {Interface Command} {no ipv6 nd ra-lifetime [<0-9000>]} {}
  63. The value to be placed in the Router Lifetime field of router advertisements
  64. sent from the interface, in seconds. Indicates the usefulness of the router
  65. as a default router on this interface. Setting the value to zero indicates
  66. that the router should not be considered a default router on this interface.
  67. Must be either zero or between value specified with @var{ipv6 nd ra-interval}
  68. (or default) and 9000 seconds.
  69. Default: @code{1800}
  70. @end deffn
  71. @deffn {Interface Command} {ipv6 nd reachable-time <1-3600000>} {}
  72. @deffnx {Interface Command} {no ipv6 nd reachable-time [<1-3600000>]} {}
  73. The value to be placed in the Reachable Time field in the Router Advertisement
  74. messages sent by the router, in milliseconds. The configured time enables the
  75. router to detect unavailable neighbors. The value zero means unspecified (by
  76. this router).
  77. Default: @code{0}
  78. @end deffn
  79. @deffn {Interface Command} {ipv6 nd managed-config-flag} {}
  80. @deffnx {Interface Command} {no ipv6 nd managed-config-flag} {}
  81. Set/unset flag in IPv6 router advertisements which indicates to hosts that they
  82. should use managed (stateful) protocol for addresses autoconfiguration in
  83. addition to any addresses autoconfigured using stateless address
  84. autoconfiguration.
  85. Default: not set
  86. @end deffn
  87. @deffn {Interface Command} {ipv6 nd other-config-flag} {}
  88. @deffnx {Interface Command} {no ipv6 nd other-config-flag} {}
  89. Set/unset flag in IPv6 router advertisements which indicates to hosts that
  90. they should use administered (stateful) protocol to obtain autoconfiguration
  91. information other than addresses.
  92. Default: not set
  93. @end deffn
  94. @deffn {Interface Command} {ipv6 nd home-agent-config-flag} {}
  95. @deffnx {Interface Command} {no ipv6 nd home-agent-config-flag} {}
  96. Set/unset flag in IPv6 router advertisements which indicates to hosts that
  97. the router acts as a Home Agent and includes a Home Agent Option.
  98. Default: not set
  99. @end deffn
  100. @deffn {Interface Command} {ipv6 nd home-agent-preference <0-65535>} {}
  101. @deffnx {Interface Command} {no ipv6 nd home-agent-preference [<0-65535>]} {}
  102. The value to be placed in Home Agent Option, when Home Agent config flag is set,
  103. which indicates to hosts Home Agent preference. The default value of 0 stands
  104. for the lowest preference possible.
  105. Default: 0
  106. @end deffn
  107. @deffn {Interface Command} {ipv6 nd home-agent-lifetime <0-65520>} {}
  108. @deffnx {Interface Command} {no ipv6 nd home-agent-lifetime [<0-65520>]} {}
  109. The value to be placed in Home Agent Option, when Home Agent config flag is set,
  110. which indicates to hosts Home Agent Lifetime. The default value of 0 means to
  111. place the current Router Lifetime value.
  112. Default: 0
  113. @end deffn
  114. @deffn {Interface Command} {ipv6 nd adv-interval-option} {}
  115. @deffnx {Interface Command} {no ipv6 nd adv-interval-option} {}
  116. Include an Advertisement Interval option which indicates to hosts the maximum time,
  117. in milliseconds, between successive unsolicited Router Advertisements.
  118. Default: not set
  119. @end deffn
  120. @deffn {Interface Command} {ipv6 nd router-preference (high|medium|low)} {}
  121. @deffnx {Interface Command} {no ipv6 nd router-preference [(high|medium|low)]} {}
  122. Set default router preference in IPv6 router advertisements per RFC4191.
  123. Default: medium
  124. @end deffn
  125. @deffn {Interface Command} {ipv6 nd mtu <1-65535>} {}
  126. @deffnx {Interface Command} {no ipv6 nd mtu [<1-65535>]} {}
  127. Include an MTU (type 5) option in each RA packet to assist the attached hosts
  128. in proper interface configuration. The announced value is not verified to be
  129. consistent with router interface MTU.
  130. Default: don't advertise any MTU option
  131. @end deffn
  132. @example
  133. @group
  134. interface eth0
  135. no ipv6 nd suppress-ra
  136. ipv6 nd prefix 2001:0DB8:5009::/64
  137. @end group
  138. @end example
  139. For more information see @cite{RFC2462 (IPv6 Stateless Address Autoconfiguration)}
  140. , @cite{RFC4861 (Neighbor Discovery for IP Version 6 (IPv6))}
  141. , @cite{RFC6275 (Mobility Support in IPv6)}
  142. and @cite{RFC4191 (Default Router Preferences and More-Specific Routes)}.