校园网DSL拨号无法使用IPV6
发表于 : 2012-04-10 15:03
大家好。
我是使用校园网dsl拨号动态获取IP地址,但是DSL拨号页面没有IPV6选项。
如下图。
我是使用校园网dsl拨号动态获取IP地址,但是DSL拨号页面没有IPV6选项。
如下图。
代码: 全选
ipv6 ,
代码: 全选
+ipv6 ipv6cp-use-ipaddr
代码: 全选
vim /etc/sysctl.conf
# Uncomment the next line to enable packet forwarding for IPv6
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
net.ipv6.conf.all.forwarding=1
net.ipv6.conf.ppp0.accept_ra=2
代码: 全选
apt-get install wide-dhcpv6-client
代码: 全选
vim /etc/wide-dhcpv6/dhcp6c.conf
interface ppp0 {
# Request Prefix Delegation on ppp0, and give the received prefix id 0
send ia-pd 0;
};
# Use subnets from the prefix with id 0
id-assoc pd 0 {
prefix-interface eth0 {
# Assign subnet 1 to eth0
sla-len 8; # <----- BELANGRIJK: 8 omdat ons klein net 64 en ons groot 56 is en dat het verschil is
sla-id 1;
};
};
代码: 全选
/etc/init.d/wide-dhcpv6-client restart
代码: 全选
apt-get install radvd
代码: 全选
vim /etc/radvd.conf
interface eth0
{
AdvSendAdvert on;
prefix ::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
RDNSS 2001:4860:4860::8888 2001:4860:4860::8844
{
# AdvRDNSSLifetime 3600;
};
};
代码: 全选
/etc/init.d/radvd restart