IPV6 自由談
Posted: Sat Jul 10, 2010 10:16 am
話說forum.gentoo.tw 也改成IPv6的了,不知道目前是在哪裡的機房呢?
Code: Select all
...
# You can also use IPv6 addresses
# (you should always specify a prefix length with IPv6 here)
#config_eth0=(
# "192.168.0.2/24"
# "4321:0:1:2:3:4:567:89ab/64"
# "4321:0:1:2:3:4:567:89ac/64"
#)
...
# Here's how to do routing if you need it
#routes_eth0=(
# "default via 192.168.0.1" # IPv4 default route
# "10.0.0.0/8 via 192.168.0.1" # IPv4 subnet route
# "::/0" # IPv6 unicast
#)
...Code: Select all
# ip -6 route
或
# route -6Code: Select all
ip -6 route
2001:288:82xx:1::/64 dev eth0 proto kernel metric 256 expires 2147142sec mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
default dev eth0 metric 2 mtu 1500 advmss 1440 hoplimit 0
default via fe80::217:94ff:fe2a:6768 dev eth0 proto kernel metric 1024 expires 1785sec mtu 1500 advmss 1440 hoplimit 64
default via fe80::209:fff:fe89:33f4 dev eth0 proto kernel metric 1024 expires 1786sec mtu 1500 advmss 1440 hoplimit 0
route -6
Kernel IPv6 routing table
Destination Next Hop Flag Met Ref Use If
2001:288:82xx:1::/64 :: Ue 256 0 1 eth0
fe80::/64 :: U 256 0 0 eth0
::/0 :: U 2 0 0 eth0
::/0 fe80::217:94ff:fe2a:6768 UGDAe 1024 0 0 eth0
::/0 fe80::209:fff:fe89:33f4 UGDAe 1024 0 0 eth0
::/0 :: !n -1 1 3287 lo
::1/128 :: Un 0 1 160 lo
2001:288:82xx:1::17/128 :: Un 0 1 0 lo
2001:288:82xx:1:204:61ff:fe47:12f3/128 :: Un 0 1 0 lo
fe80::204:61ff:fe47:12f3/128 :: Un 0 1 1 lo
ff00::/8 :: U 256 0 0 eth0
::/0 :: !n -1 1 3287 lo
ping6 www.ipv6.hinet.net
PING www.ipv6.hinet.net(2001:b000::2) 56 data bytes
From 2001:288:82xx:1:204:61ff:fe47:12f3 icmp_seq=2 Destination unreachable: Address unreachable
From 2001:288:82xx:1:204:61ff:fe47:12f3 icmp_seq=3 Destination unreachable: Address unreachable
From 2001:288:82xx:1:204:61ff:fe47:12f3 icmp_seq=4 Destination unreachable: Address unreachable
From 2001:288:82xx:1:204:61ff:fe47:12f3 icmp_seq=6 Destination unreachable: Address unreachable
From 2001:288:82xx:1:204:61ff:fe47:12f3 icmp_seq=7 Destination unreachable: Address unreachable
From 2001:288:82xx:1:204:61ff:fe47:12f3 icmp_seq=8 Destination unreachable: Address unreachableCode: Select all
default via fe80::217:94ff:fe2a:6768 dev eth0 proto kernel metric 1024 expires 1785sec mtu 1500 advmss 1440 hoplimit 64
default via fe80::209:fff:fe89:33f4 dev eth0 proto kernel metric 1024 expires 1786sec mtu 1500 advmss 1440 hoplimit 0
::/0 fe80::217:94ff:fe2a:6768 UGDAe 1024 0 0 eth0
::/0 fe80::209:fff:fe89:33f4 UGDAe 1024 0 0 eth0Code: Select all
routes_eth0=(
"default via 163.32.xxx.254"
"2001:288:xxxx:1:217:94ff:fe2a:6768"Code: Select all
ip -6 route
2001:288:xxxx:1:217:94ff:fe2a:6768 dev eth0 metric 2 mtu 1500 advmss 1440 hoplimit 0
2001:288:xxxx:1::/64 dev eth0 proto kernel metric 256 expires 2147095sec mtu 1500 advmss 1440 hoplimit 0
2001:288:xxxx:3::/64 dev eth1 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev eth1 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
default via fe80::217:94ff:fe2a:6768 dev eth0 proto kernel metric 1024 expires 1738sec mtu 1500 advmss 14 40 hoplimit 64
default via fe80::209:fff:fe89:33f4 dev eth0 proto kernel metric 1024 expires 1739sec mtu 1500 advmss 144 Code: Select all
ip -6 route
2001:288:xxxx:1:217:94ff:fe2a:6768 dev eth0 metric 2 mtu 1500 advmss 1440 hoplimit 0
2001:288:xxxx:1::/64 dev eth0 proto kernel metric 256 expires 2147052sec mtu 1500 advmss 1440 hoplimit 0
2001:288:xxxx:3::/64 dev eth1 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev eth1 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0