IPV6 自由談

歡喜聊天區!除了有關暴力、血腥、色情與測試項目以外,都可聊!

Moderator: Forums Team

Post Reply
dxcdxc
Posts: 200
Joined: Sat Sep 06, 2003 12:34 pm
Location: 台中/豐原
Contact:

IPV6 自由談

Post by dxcdxc »

話說forum.gentoo.tw 也改成IPv6的了,不知道目前是在哪裡的機房呢?
blog開放 http://blog.bogusx.idv.tw/
注音文嚴禁!
paar
Posts: 1154
Joined: Thu Jan 30, 2003 10:53 am
Location: 打狗市
Contact:

Re: IPV6 自由談

Post by paar »

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

Re: IPV6 自由談

Post by orscar »

那Gentoo. ipv6網路要如何設定呢... :)
paar
Posts: 1154
Joined: Thu Jan 30, 2003 10:53 am
Location: 打狗市
Contact:

Re: IPV6 自由談

Post by paar »

/etc/conf.d/net.example:

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
#)
...
可能是我這邊的 core route 是 ipv6 autoconfig ready 了,
真的照以上的設定法就 work 了
叫我老帕好了!
Image
orscar

Re: IPV6 自由談

Post by orscar »

設定成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網路就不通了...
paar
Posts: 1154
Joined: Thu Jan 30, 2003 10:53 am
Location: 打狗市
Contact:

Re: IPV6 自由談

Post by paar »

同一個介面本來就可以多個IP的,
可以多個v6 IP 也可以多個v4 IP,
在這台 forums 的環境是有兩個 v6 IP 同時運行 OK 的,
它的 v6 default gateway 是 fe80 開頭的同網段,
您的情形可能是 routing 有問題,

Code: Select all

# ip -6 route
或
# route -6
查看是否正確
叫我老帕好了!
Image
orscar

Re: IPV6 自由談

Post by orscar »

這是查看的內容:

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 unreachable
paar
Posts: 1154
Joined: Thu Jan 30, 2003 10:53 am
Location: 打狗市
Contact:

Re: IPV6 自由談

Post by paar »

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
有兩個 v6 的 default gateway 這是錯的
看看 autoconfig 出來的唯一個 v6 IP 與 v6 default gateway 是什麼,
另一個就是錯的
至於錯的的那個 v6 default gateway 怎麼來的,
我也看不出來...
叫我老帕好了!
Image
orscar

Re: IPV6 自由談

Post by orscar »

我在

Code: Select all

routes_eth0=( 
       "default via 163.32.xxx.254"
       "2001:288:xxxx:1:217:94ff:fe2a:6768"
這裏多設定"::/0" 拿掉就可以通了.
另外我用這台當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/
Post Reply