IPV6 自由談
Moderator: Forums Team
Re: IPV6 自由談
由於去年度底從教育部推下整個 TANet 要上到 IPv6 與 v4 的 dual stack,
本站目前位於高雄市的教育網路內,(請看右上角
)
所以把它也加上了。
本站目前位於高雄市的教育網路內,(請看右上角
所以把它也加上了。
叫我老帕好了!


Re: IPV6 自由談
/etc/conf.d/net.example:
可能是我這邊的 core route 是 ipv6 autoconfig ready 了,
真的照以上的設定法就 work 了
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
#)
...真的照以上的設定法就 work 了
叫我老帕好了!


-
orscar
Re: IPV6 自由談
設定成ipv6 autoconfig ready 是ok的.
但ipv6設固定會有兩個ipv6的ip..
eth0 Link encap:Ethernet HWaddr 00:04:61:47:12:f3
inet addr:163.32.xxx.17 Bcast:163.32.xxx.255 Mask:255.255.255.0
inet6 addr: 2001:288:xxxx:1:204:61ff:fe47:12f3/64 Scope:Global
inet6 addr: fe80::204:61ff:fe47:12f3/64 Scope:Link
inet6 addr: 2001:288:xxxx:1::17/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3290194 errors:0 dropped:0 overruns:0 frame:0
TX packets:4971602 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:842227197 (803.2 MiB) TX bytes:2392780650 (2.2 GiB)
Interrupt:11 Base address:0xa000
這樣ipv6網路就不通了...
但ipv6設固定會有兩個ipv6的ip..
eth0 Link encap:Ethernet HWaddr 00:04:61:47:12:f3
inet addr:163.32.xxx.17 Bcast:163.32.xxx.255 Mask:255.255.255.0
inet6 addr: 2001:288:xxxx:1:204:61ff:fe47:12f3/64 Scope:Global
inet6 addr: fe80::204:61ff:fe47:12f3/64 Scope:Link
inet6 addr: 2001:288:xxxx:1::17/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3290194 errors:0 dropped:0 overruns:0 frame:0
TX packets:4971602 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:842227197 (803.2 MiB) TX bytes:2392780650 (2.2 GiB)
Interrupt:11 Base address:0xa000
這樣ipv6網路就不通了...
Re: IPV6 自由談
同一個介面本來就可以多個IP的,
可以多個v6 IP 也可以多個v4 IP,
在這台 forums 的環境是有兩個 v6 IP 同時運行 OK 的,
它的 v6 default gateway 是 fe80 開頭的同網段,
您的情形可能是 routing 有問題,
用
查看是否正確
可以多個v6 IP 也可以多個v4 IP,
在這台 forums 的環境是有兩個 v6 IP 同時運行 OK 的,
它的 v6 default gateway 是 fe80 開頭的同網段,
您的情形可能是 routing 有問題,
用
Code: Select all
# ip -6 route
或
# route -6叫我老帕好了!


-
orscar
Re: IPV6 自由談
這是查看的內容:
Code: 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 unreachableRe: IPV6 自由談
Code: 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 eth0看看 autoconfig 出來的唯一個 v6 IP 與 v6 default gateway 是什麼,
另一個就是錯的
至於錯的的那個 v6 default gateway 怎麼來的,
我也看不出來...
叫我老帕好了!


-
orscar
Re: IPV6 自由談
我在
這裏多設定"::/0" 拿掉就可以通了.
另外我用這台當route時
網路是通的..
只要啟動radvd
網路就不通
我是參考下面網頁做的.
http://blog.richliu.com/2007/05/31/489/
Code: Select all
routes_eth0=(
"default via 163.32.xxx.254"
"2001:288:xxxx:1:217:94ff:fe2a:6768"另外我用這台當route時
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 只要啟動radvd
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我是參考下面網頁做的.
http://blog.richliu.com/2007/05/31/489/