cat /etc/radvd.conf
interface eth0
{
AdvSendAdvert on;
AdvLinkMTU 1480;
prefix 2001:230:19:2b4::/64
{
AdvOnLink on;
AdvAutonomous on;
};
};
execute
apt-get install radvd
/etc/init.d/radvd start
append /etc/network/interfaces:
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
address 2001:230:18:2b4::2
netmask 64
endpoint 216.218.221.6
ttl 255
gateway 2001:230:18:2b4::1
iface eth0 inet6 static
address 2001:230:19:2b4::1
netmask 64
post-up ip6tables -A FORWARD -i he-ipv6 -o eth0 -p tcp --dport=1:2048 -j DROP
execute
/etc/init.d/networking
append /etc/sysctl.conf
net.ipv6.conf.all.forwarding=1
execute
sudo sysctl -p
沒有留言:
發佈留言