1# 2# NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE 3# NOTE NOTE 4# NOTE This is an EXAMPLE, which serves only to demonstrate the NOTE 5# NOTE syntax of radvd.conf, and is not meant to be used for a NOTE 6# NOTE real radvd configuration. NOTE 7# NOTE NOTE 8# NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE 9# 10 11interface eth0 12{ 13 AdvSendAdvert on; 14 15# This may be needed on some interfaces which are not active when 16# radvd starts, but become available later on; see man page for details. 17 18 # IgnoreIfMissing on; 19 20# 21# These settings cause advertisements to be sent every 3-10 seconds. This 22# range is good for 6to4 with a dynamic IPv4 address, but can be greatly 23# increased when not using 6to4 prefixes. 24# 25 26 MinRtrAdvInterval 3; 27 MaxRtrAdvInterval 10; 28 29# 30# You can use AdvDefaultPreference setting to advertise the preference of 31# the router for the purposes of default router determination. 32# NOTE: This feature is still being specified and is not widely supported! 33# 34 AdvDefaultPreference low; 35 36# 37# Disable Mobile IPv6 support 38# 39 AdvHomeAgentFlag off; 40 41# 42# example of a standard prefix 43# 44 prefix 2001:db8:1:0::/64 45 { 46 AdvOnLink on; 47 AdvAutonomous on; 48 AdvRouterAddr off; 49 }; 50 51# 52# example of a 6to4 prefix 53# 54# Note that the first 48 bits are specified here as zeros. These will be 55# replaced with the appropriate 6to4 address when radvd starts or is 56# reconfigured. Be sure that the SLA ID (1234 in this case) is specified 57# here! 58# 59 prefix 0:0:0:1234::/64 60 { 61 AdvOnLink on; 62 AdvAutonomous on; 63 AdvRouterAddr off; 64 65# 66# This setting causes radvd to replace the first 48 bits of the prefix 67# with the 6to4 address generated from the specified interface. For example, 68# if the address of ppp0 is 192.0.2.25 when radvd configures itself, this 69# prefix will be advertised as 2002:C000:0219:1234::/64. 70# 71# If ppp0 is not available at configuration time, this prefix will not be 72# advertised, but other prefixes listed in the configuration will be 73# advertised as usual. 74# 75# When using the Base6to4Interface option, make sure radvd receives a 76# SIGHUP every time the ppp0 interface goes up, down, or is assigned a 77# new IPv4 address. The SIGHUP will cause radvd to recognize that the 78# ppp0 interface has changed and will adjust the advertisements 79# accordingly. 80# 81 82 Base6to4Interface ppp0; 83 84# 85# If the IP address of ppp0 is assigned dynamically, be sure to set the 86# lifetimes for this prefix to be small. Otherwise, hosts on your network 87# may continue to use a prefix that no longer corresponds to the address 88# on ppp0! 89# 90 AdvPreferredLifetime 120; 91 AdvValidLifetime 300; 92 }; 93# 94# example of a more specific route 95# NOTE: This feature is not very widely supported! You may also need to 96# enable it manually (e.g. on Linux, change the value of 97# sysctl accept_ra_rt_info_max_plen to 48 or 64) 98# 99 route 2001:db0:fff::/48 100 { 101 AdvRoutePreference high; 102 AdvRouteLifetime 3600; 103 }; 104 105# 106# RDNSS 107# NOTE: This feature is not very widely implemented. 108# 109 RDNSS 2001:db8::1 2001:db8::2 110 { 111 AdvRDNSSPreference 8; 112 ### AdvRDNSSOpen was removed from the final specification but 113 ### may be used for experimental purposes. 114 # AdvRDNSSOpen off; 115 AdvRDNSSLifetime 30; 116 }; 117 118 119}; 120 121