我正在尝试让 IPv6 正常工作。
我的主机向我提供了以下信息:
IPv6 网络:2a03:4000:2:483::/64
IPv6 网关:fe80::1
我的/etc/network/interfaces
样子是这样的:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
#IPV6 static configuration
iface eth0 inet6 static
pre-up modprobe ipv6
address 2a03:4000:2:483::2
netmask 64
gateway fe80::1
# END IPV6 configuration
并ifconfig
输出以下内容:
eth0 Link encap:Ethernet HWaddr 52:54:7e:5a:c2:b4
inet addr:46.38.236.169 Bcast:46.38.239.255 Mask:255.255.248.0
inet6 addr: fe80::5054:7eff:fe5a:c2b4/64 Scope:Link
inet6 addr: 2a03:4000:2:483::2/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:173542 errors:0 dropped:0 overruns:0 frame:0
TX packets:27863 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10582552 (10.0 MiB) TX bytes:1658598 (1.5 MiB)
ip -6 route show
输出:
default via fe80::1 dev eth0 metric 1024
和route -6
:
Kernel IPv6 routing table
Destination Next Hop Flag Met Ref Use If
2a03:4000:2:483::/64 :: U 256 0 0 eth0
fe80::/64 :: U 256 0 0 eth0
::/0 fe80::1 UG 1024 0 0 eth0
::/0 :: !n -1 1 50 lo
::1/128 :: Un 0 1 25 lo
2a03:4000:2:483::2/128 :: Un 0 1 15 lo
fe80::5054:7eff:fe5a:c2b4/128 :: Un 0 1 0 lo
ff00::/8 :: U 256 0 0 eth0
::/0 :: !n -1 1 50 lo
ping6 ipv6.google.com
结果是
PING ipv6.google.com(muc03s08-in-x04.1e100.net) 56 data bytes
From 2a03:4000:2:483::2 icmp_seq=1 Destination unreachable: Address unreachable
From 2a03:4000:2:483::2 icmp_seq=2 Destination unreachable: Address unreachable
From 2a03:4000:2:483::2 icmp_seq=3 Destination unreachable: Address unreachable
--- ipv6.google.com ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
服务器正在运行Debian 3.2.51-1
。希望您能帮助我。