如何關閉 vlan router 自動分配的 ipv6 address(proto kernel)

2015-12-23 22:34:02 +08:00
 akw2312
# ifconfig
          inet6 addr: 2403:a280:8000:4:216:3cff:fe73:48da/64 Scope:Global
          inet6 addr: 2403:a280:8000:3:216:3cff:fe73:48da/64 Scope:Global
          inet6 addr: 2403:a280:8000:2:216:3cff:fe73:48da/64 Scope:Global
          inet6 addr: 2403:a280:8000:1:216:3cff:fe73:48da/64 Scope:Global
          inet6 addr: 2403:a280:8000:0:216:3cff:fe73:48da/64 Scope:Global

OS 是 Debian 8 kernel 是自帶的 3.16
SoftLayer 的 vlan router 總是會分配個不能用的 ipv6 下來
然而 /etc/network/interfaces 裡面也沒有 DHCP 之類的

# ip -6 route
2401:c900:1201:1cc::/64 dev eth0  proto kernel  metric 256  expires 2591811sec
2403:a280:8000::/64 dev eth0  proto kernel  metric 256  expires 2591811sec
2403:a280:8000:1::/64 dev eth0  proto kernel  metric 256  expires 2591811sec
2403:a280:8000:2::1 dev eth0  metric 1024 
2403:a280:8000:2::/64 dev eth0  proto kernel  metric 256 
2403:a280:8000:3::/64 dev eth0  proto kernel  metric 256  expires 2591811sec
2403:a280:8000:4::/64 dev eth0  proto kernel  metric 256  expires 2591811sec
2606:2e00:800a:3::/64 dev eth0  proto kernel  metric 256  expires 2591811sec

於是要怎麼把這個自動分配給關掉?

2750 次点击
所在节点    Linux
3 条回复
akw2312
2015-12-23 22:56:40 +08:00
設置內根本沒提到 ipv6...機房那邊表示 vlan router 的自動分配已經關掉了
還有問題說自己換內核..
這是 cloudsvm 的 hk kvm 然後 SL 那邊就這麼回答...
ncisoft
2015-12-24 12:08:25 +08:00
内核禁用 ipv6 不就行了吗
akw2312
2015-12-27 03:10:10 +08:00
@ncisoft 我並不是要禁用。 是要自己分配 ipv6 但是會有錯誤的分配下來(不經由 DHCP)

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/245719

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX