|
|
我的电脑是双系统,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
求高人指点 |
|