LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1004|回复: 0

关于IPv6的问题

[复制链接]
发表于 2009-6-23 12:57:00 | 显示全部楼层 |阅读模式
我的电脑是双系统,vista和debian testing amd64, 在vista下可以自动获取IPv6的地址,但在debian下自动获取不了,不知道debian下自动获取IPv6地址需不需要进行额外的配置?
shekarry@debian:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo                        
iface lo inet loopback         

# The primary network interface
#allow-hotplug eth0            
auto eth0                     
iface eth0 inet dhcp         

我试着在/etc/network/interfaces后面加上iface eth0 inet6 dhcp, 然后ifdown eth0 && ifup eth0,显示错误。在IPv6下是不是没有dhcp?

我把IPv6设为静态地址就可以用了:
iface eth0 inet6 static        
address 2001:cc0:2044:6::ee33  
netmask 64                     
up route -A inet6 add default gw 2001:cc0:2044:6::1 dev $IFACE

求高人指点
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表