模块加载:
/etc/module.conf中增加下列行:
alias net-pf-10 ipv6
配置ipv6:
/etc/sysconfig/network中增加下列行:
NETWORKING_IPV6=yes
其它选项(摘自linux下/etc/sysconfig/network-scripts/init.ipv6-global脚本):
# Uses following information from /etc/sysconfig/network:
# NETWORKING_IPV6=yes|no: controls global IPv6 initialization (default: no)
# IPV6FORWARDING=yes|no: controls global IPv6 forwarding (default: no)
# IPV6_AUTOCONF=yes|no: controls global automatic IPv6 configuration
# (default: yes if IPV6FORWARDING=no, no if IPV6FORWARDING=yes)
# IPV6_AUTOTUNNEL=yes|no: controls automatic IPv6 tunneling (default: no)
# IPV6_DEFAULTGW= [optional]
# IPV6_DEFAULTDEV= [optional]
配置静态ipv6地址:
/etc/sysconfig/network-scripts/ifcfg-eth* 中增加下列行:
IPV6INIT=yes
IPV6ADDR=2002::2002/48(你的ipv6地址)
运行/etc/init.d/network restart检验你的工作成果。
显示结果中有如下行:
inet6 addr: 2002::2002/48 Scope:Global
阅读(9208) | 评论(0) | 转发(0) |