Difference between revisions of "IPv6 Kernel: Isi /proc/sys/net/ipv6/"

From OnnoWiki
Jump to navigation Jump to search
(New page: 11.2. Entries in /proc/sys/net/ipv6/ 11.2.1. conf/default/* Change the interface-specific default settings. 11.2.2. conf/all/* Change all the interface-specific settings. Exception: “...)
 
Line 1: Line 1:
11.2. Entries in /proc/sys/net/ipv6/
+
==11.2. Entries in /proc/sys/net/ipv6/==
11.2.1. conf/default/*
+
 
 +
===11.2.1. conf/default/*===
  
 
Change the interface-specific default settings.
 
Change the interface-specific default settings.
11.2.2. conf/all/*
+
 
 +
===11.2.2. conf/all/*===
  
 
Change all the interface-specific settings.
 
Change all the interface-specific settings.
  
 
Exception: “conf/all/forwarding” has a different meaning here
 
Exception: “conf/all/forwarding” has a different meaning here
11.2.2.1. conf/all/forwarding
+
 
 +
====11.2.2.1. conf/all/forwarding====
  
 
     Type: BOOLEAN
 
     Type: BOOLEAN
Line 19: Line 22:
  
 
If this value is 0, no IPv6 forwarding is enabled, packets never leave another interface, neither physical nor logical like e.g. tunnels.
 
If this value is 0, no IPv6 forwarding is enabled, packets never leave another interface, neither physical nor logical like e.g. tunnels.
11.2.3. conf/interface/*
+
 
 +
===11.2.3. conf/interface/*===
  
 
Change special settings per interface.
 
Change special settings per interface.
  
 
The functional behaviour for certain settings is different depending on whether local forwarding is enabled or not.
 
The functional behaviour for certain settings is different depending on whether local forwarding is enabled or not.
11.2.3.1. accept_ra
+
 
 +
====11.2.3.1. accept_ra====
  
 
     Type: BOOLEAN
 
     Type: BOOLEAN
Line 31: Line 36:
  
 
Accept Router Advertisements, and autoconfigure this interface with received data.
 
Accept Router Advertisements, and autoconfigure this interface with received data.
11.2.3.2. accept_redirects
+
 
 +
====11.2.3.2. accept_redirects====
  
 
     Type: BOOLEAN
 
     Type: BOOLEAN
Line 38: Line 44:
  
 
Accept Redirects sent by an IPv6 router.
 
Accept Redirects sent by an IPv6 router.
11.2.3.3. autoconf
+
 
 +
====11.2.3.3. autoconf====
  
 
     Type: BOOLEAN
 
     Type: BOOLEAN
Line 45: Line 52:
  
 
Autoconfigure addresses using prefix information from router advertisements.
 
Autoconfigure addresses using prefix information from router advertisements.
11.2.3.4. dad_transmits
+
 
 +
====11.2.3.4. dad_transmits====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 52: Line 60:
  
 
The amount of Duplicate Address Detection probes to send.
 
The amount of Duplicate Address Detection probes to send.
11.2.3.5. forwarding
+
 
 +
====11.2.3.5. forwarding====
  
 
     Type: BOOLEAN
 
     Type: BOOLEAN
Line 82: Line 91:
 
     Redirects are ignored.
 
     Redirects are ignored.
  
11.2.3.6. hop_limit
+
====11.2.3.6. hop_limit====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 89: Line 98:
  
 
Default Hop Limit to set.
 
Default Hop Limit to set.
11.2.3.7. mtu
+
 
 +
====11.2.3.7. mtu====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 96: Line 106:
  
 
Default Maximum Transfer Unit
 
Default Maximum Transfer Unit
11.2.3.8. router_solicitation_delay
+
 
 +
====11.2.3.8. router_solicitation_delay====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 103: Line 114:
  
 
Number of seconds to wait after interface is brought up before sending Router Solicitations.
 
Number of seconds to wait after interface is brought up before sending Router Solicitations.
11.2.3.9. router_solicitation_interval
+
 
 +
====11.2.3.9. router_solicitation_interval====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 110: Line 122:
  
 
Number of seconds to wait between Router Solicitations.
 
Number of seconds to wait between Router Solicitations.
11.2.3.10. router_solicitations
+
 
 +
=====11.2.3.10. router_solicitations====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 117: Line 130:
  
 
Number of Router Solicitations to send until assuming no routers are present.
 
Number of Router Solicitations to send until assuming no routers are present.
11.2.4. neigh/default/*
+
 
 +
===11.2.4. neigh/default/*===
  
 
Change default settings for neighbor detection and some special global interval and threshold values:
 
Change default settings for neighbor detection and some special global interval and threshold values:
11.2.4.1. gc_thresh1
+
 
 +
====11.2.4.1. gc_thresh1====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 127: Line 142:
  
 
More to be filled.
 
More to be filled.
11.2.4.2. gc_thresh2
+
 
 +
====11.2.4.2. gc_thresh2====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 134: Line 150:
  
 
More to be filled.
 
More to be filled.
11.2.4.3. gc_thresh3
+
 
 +
====11.2.4.3. gc_thresh3====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 147: Line 164:
 
¬ seq=426, pid=0
 
¬ seq=426, pid=0
  
11.2.4.4. gc_interval
+
====11.2.4.4. gc_interval====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 154: Line 171:
  
 
More to be filled.
 
More to be filled.
11.2.5. neigh/interface/*
+
 
 +
===11.2.5. neigh/interface/*===
  
 
Change special settings per interface for neighbor detection.
 
Change special settings per interface for neighbor detection.
11.2.5.1. anycast_delay
+
 
 +
====11.2.5.1. anycast_delay====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 164: Line 183:
  
 
More to be filled.
 
More to be filled.
11.2.5.2. gc_stale_time
+
 
 +
====11.2.5.2. gc_stale_time====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 171: Line 191:
  
 
More to be filled.
 
More to be filled.
11.2.5.3. proxy_qlen
+
 
 +
====11.2.5.3. proxy_qlen====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 178: Line 199:
  
 
More to be filled.
 
More to be filled.
11.2.5.4. unres_qlen
+
 
 +
====11.2.5.4. unres_qlen====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 185: Line 207:
  
 
More to be filled.
 
More to be filled.
11.2.5.5. app_solicit
+
 
 +
====11.2.5.5. app_solicit====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 192: Line 215:
  
 
More to be filled.
 
More to be filled.
11.2.5.6. locktime
+
 
 +
====11.2.5.6. locktime====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 199: Line 223:
  
 
More to be filled.
 
More to be filled.
11.2.5.7. retrans_time
+
 
 +
====11.2.5.7. retrans_time====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 206: Line 231:
  
 
More to be filled.
 
More to be filled.
11.2.5.8. base_reachable_time
+
 
 +
====11.2.5.8. base_reachable_time====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 213: Line 239:
  
 
More to be filled.
 
More to be filled.
11.2.5.9. mcast_solicit
+
 
 +
====11.2.5.9. mcast_solicit====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 220: Line 247:
  
 
More to be filled.
 
More to be filled.
11.2.5.10. ucast_solicit
+
 
 +
====11.2.5.10. ucast_solicit====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 227: Line 255:
  
 
More to be filled
 
More to be filled
11.2.5.11. delay_first_probe_time
+
 
 +
====11.2.5.11. delay_first_probe_time====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 234: Line 263:
  
 
More to be filled.
 
More to be filled.
11.2.5.12. proxy_delay
+
 
 +
====11.2.5.12. proxy_delay====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 241: Line 271:
  
 
More to be filled.
 
More to be filled.
11.2.6. route/*
+
 
 +
===11.2.6. route/*===
  
 
Change global settings for routing.
 
Change global settings for routing.
11.2.6.1. flush
+
 
 +
====11.2.6.1. flush====
  
 
Removed in newer kernel releases - more to be filled.
 
Removed in newer kernel releases - more to be filled.
11.2.6.2. gc_interval
+
 
 +
====11.2.6.2. gc_interval====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 254: Line 287:
  
 
More to be filled.
 
More to be filled.
11.2.6.3. gc_thresh
+
 
 +
====11.2.6.3. gc_thresh====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 261: Line 295:
  
 
More to be filled.
 
More to be filled.
11.2.6.4. mtu_expires
+
 
 +
====11.2.6.4. mtu_expires====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 268: Line 303:
  
 
More to be filled.
 
More to be filled.
11.2.6.5. gc_elasticity
+
 
 +
====11.2.6.5. gc_elasticity====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 275: Line 311:
  
 
More to be filled.
 
More to be filled.
11.2.6.6. gc_min_interval
+
 
 +
====11.2.6.6. gc_min_interval====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 282: Line 319:
  
 
More to be filled.
 
More to be filled.
11.2.6.7. gc_timeout
+
 
 +
====11.2.6.7. gc_timeout====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 289: Line 327:
  
 
More to be filled.
 
More to be filled.
11.2.6.8. min_adv_mss
+
 
 +
====11.2.6.8. min_adv_mss====
  
 
     Type: INTEGER
 
     Type: INTEGER
Line 296: Line 335:
  
 
More to be filled.
 
More to be filled.
11.2.6.9. max_size
+
 
 +
====11.2.6.9. max_size====
  
 
     Type: INTEGER
 
     Type: INTEGER

Revision as of 14:27, 28 June 2013

11.2. Entries in /proc/sys/net/ipv6/

11.2.1. conf/default/*

Change the interface-specific default settings.

11.2.2. conf/all/*

Change all the interface-specific settings.

Exception: “conf/all/forwarding” has a different meaning here

11.2.2.1. conf/all/forwarding

   Type: BOOLEAN

This enables global IPv6 forwarding between all interfaces.

In IPv6 you can't control forwarding per device, forwarding control has to be done using IPv6-netfilter (controlled with ip6tables) rulesets and specify input and output devices (see Firewalling/Netfilter6 for more). This is different to IPv4, where you are able to control forwarding per device (decision is made on interface where packet came in).

This also sets all interfaces' Host/Router setting 'forwarding' to the specified value. See below for details. This referred to as global forwarding.

If this value is 0, no IPv6 forwarding is enabled, packets never leave another interface, neither physical nor logical like e.g. tunnels.

11.2.3. conf/interface/*

Change special settings per interface.

The functional behaviour for certain settings is different depending on whether local forwarding is enabled or not.

11.2.3.1. accept_ra

   Type: BOOLEAN
   Functional default: enabled if local forwarding is disabled. disabled if local forwarding is enabled.

Accept Router Advertisements, and autoconfigure this interface with received data.

11.2.3.2. accept_redirects

   Type: BOOLEAN
   Functional default: enabled if local forwarding is disabled. disabled if local forwarding is enabled.

Accept Redirects sent by an IPv6 router.

11.2.3.3. autoconf

   Type: BOOLEAN
   Functional default: enabled if accept_ra_pinfo is enabled. disabled if accept_ra_pinfo is disabled.

Autoconfigure addresses using prefix information from router advertisements.

11.2.3.4. dad_transmits

   Type: INTEGER
   Default: 1

The amount of Duplicate Address Detection probes to send.

11.2.3.5. forwarding

   Type: BOOLEAN
   Default: FALSE if global forwarding is disabled (default), otherwise TRUE

Configure interface-specific Host/Router behaviour.

Note: It is recommended to have the same setting on all interfaces; mixed router/host scenarios are rather uncommon.

   Value FALSE: By default, Host behaviour is assumed. This means:
   IsRouter flag is not set in Neighbour Advertisements.
   Router Solicitations are being sent when necessary.
   If accept_ra is TRUE (default), accept Router Advertisements (and do autoconfiguration).
   If accept_redirects is TRUE (default), accept Redirects.
   Value TRUE: If local forwarding is enabled, Router behaviour is assumed. This means exactly the reverse from the above:
   IsRouter flag is set in Neighbour Advertisements.
   Router Solicitations are not sent.
   Router Advertisements are ignored.
   Redirects are ignored.

11.2.3.6. hop_limit

   Type: INTEGER
   Default: 64

Default Hop Limit to set.

11.2.3.7. mtu

   Type: INTEGER
   Default: 1280 (IPv6 required minimum)

Default Maximum Transfer Unit

11.2.3.8. router_solicitation_delay

   Type: INTEGER
   Default: 1

Number of seconds to wait after interface is brought up before sending Router Solicitations.

11.2.3.9. router_solicitation_interval

   Type: INTEGER
   Default: 4

Number of seconds to wait between Router Solicitations.

=11.2.3.10. router_solicitations

   Type: INTEGER
   Default: 3

Number of Router Solicitations to send until assuming no routers are present.

11.2.4. neigh/default/*

Change default settings for neighbor detection and some special global interval and threshold values:

11.2.4.1. gc_thresh1

   Type: INTEGER
   Default: 128

More to be filled.

11.2.4.2. gc_thresh2

   Type: INTEGER
   Default: 512

More to be filled.

11.2.4.3. gc_thresh3

   Type: INTEGER
   Default: 1024

Tuning parameter for neighbour table size.

Increase this value if you have a lot of interfaces and problem with routes start to act mysteriously and fail. Or if a running Zebra (routing daemon) reports:

ZEBRA: netlink-listen error: No buffer space available, type=RTM_NEWROUTE(24), ¬ seq=426, pid=0

11.2.4.4. gc_interval

   Type: INTEGER
   Default: 30

More to be filled.

11.2.5. neigh/interface/*

Change special settings per interface for neighbor detection.

11.2.5.1. anycast_delay

   Type: INTEGER
   Default: 100

More to be filled.

11.2.5.2. gc_stale_time

   Type: INTEGER
   Default: 60

More to be filled.

11.2.5.3. proxy_qlen

   Type: INTEGER
   Default: 64

More to be filled.

11.2.5.4. unres_qlen

   Type: INTEGER
   Default: 3

More to be filled.

11.2.5.5. app_solicit

   Type: INTEGER
   Default: 0

More to be filled.

11.2.5.6. locktime

   Type: INTEGER
   Default: 0

More to be filled.

11.2.5.7. retrans_time

   Type: INTEGER
   Default: 100

More to be filled.

11.2.5.8. base_reachable_time

   Type: INTEGER
   Default: 30

More to be filled.

11.2.5.9. mcast_solicit

   Type: INTEGER
   Default: 3

More to be filled.

11.2.5.10. ucast_solicit

   Type: INTEGER
   Default: 3

More to be filled

11.2.5.11. delay_first_probe_time

   Type: INTEGER
   Default: 5

More to be filled.

11.2.5.12. proxy_delay

   Type: INTEGER
   Default: 80

More to be filled.

11.2.6. route/*

Change global settings for routing.

11.2.6.1. flush

Removed in newer kernel releases - more to be filled.

11.2.6.2. gc_interval

   Type: INTEGER
   Default: 30

More to be filled.

11.2.6.3. gc_thresh

   Type: INTEGER
   Default: 1024

More to be filled.

11.2.6.4. mtu_expires

   Type: INTEGER
   Default: 600

More to be filled.

11.2.6.5. gc_elasticity

   Type: INTEGER
   Default: 0

More to be filled.

11.2.6.6. gc_min_interval

   Type: INTEGER
   Default: 5

More to be filled.

11.2.6.7. gc_timeout

   Type: INTEGER
   Default: 60

More to be filled.

11.2.6.8. min_adv_mss

   Type: INTEGER
   Default: 12

More to be filled.

11.2.6.9. max_size

   Type: INTEGER
   Default: 4096

More to be filled.