Feb 2, 2009

RADVD

前幾天測試使用RADVD來發送IPv6,只需 apt-get install radvd 但安裝時,/etc 下不會有config,需手動從 /usr/share/doc/radvd-doc/examples 中 Copy 到 /etc 下,起動 /etc/init.d/radvd start,此時可能會發生 IPv6 Forwoding 沒有設定,參考 Linux IPv6 HowTo 得知,echo "1" > /proc/sys/net/pv6/conf/default/forwarding 就可解決

以下是我使用簡單的 Config :
interface eth0
{
AdvSendAdvert on;

# This may be needed on some interfaces which are not active when
# radvd starts, but becomoe available later on; see man page for details.

# IgnoreIfMissing on;

#
# These settings cause advertisements to be sent every 3-10 seconds. This
# range is good for 6to4 with a dynamic IPv4 address, but can be greatly
# increased when not using 6to4 prefixes.
#

MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;

#
# You can use AdvDefaultPreference setting to advertise the preference of
# the router for the purposes of default router determination.
# NOTE: This feature is still being specified and is not widely supported!
#
AdvDefaultPreference low;

#
# Disable Mobile IPv6 support
#
AdvHomeAgentFlag off;

#
# example of a standard prefix
#
prefix 2001:db8:1:0::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
};
};

No comments: