Dom0 :
已建立好與 Server 連接的端點 (sit0、sit1),另外有另外可以使用的網段,把他設定在 DomU 網路的共用接口
# ifconfig eth0 inet6 add 2001:470:f902::1/48
// radvd - Router Advertisement Daemon
# apt-get install radvd
# vi /etc/radvd.conf
interface eth0 #The interface used to send ADV# /etc/init.d/radvd restart
{
AdvSendAdvert on; #Enable Advertisements
#AdvManagedFlag on; #Enable Managed bit
#AdvOtherConfigFlag on; #Enable Other Configure bit
MinRtrAdvInterval 3; #Set min. interval to send adv.
MaxRtrAdvInterval 10; #Set max. interval to send adv.
prefix 2001:470:f902::/48 #Prefix
{
AdvOnLink on; #Adv. Using Link Layer
AdvAutonomous on; #Autonomous Flag
#AdvRouterAddr on;
};
};# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
DomU :
# ifconfig eth0 inet6 add 2001:470:f902::2/48
# route -A inet6 add ::/0 dev eth0
# route -A inet6 // show ipv6 route
$ ping6 2001:470:f902::2/48 // gateway
$ ping6 2600::
沒有留言:
張貼留言