V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
akw2312
V2EX  ›  Linux

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

  •  
  •   akw2312 · Dec 23, 2015 · 3188 views
    This topic created in 3786 days ago, the information mentioned may be changed or developed.
    # 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
    

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

    3 replies    2015-12-27 03:10:10 +08:00
    akw2312
        1
    akw2312  
    OP
       Dec 23, 2015
    設置內根本沒提到 ipv6...機房那邊表示 vlan router 的自動分配已經關掉了
    還有問題說自己換內核..
    這是 cloudsvm 的 hk kvm 然後 SL 那邊就這麼回答...
    ncisoft
        2
    ncisoft  
       Dec 24, 2015 via Android
    内核禁用 ipv6 不就行了吗
    akw2312
        3
    akw2312  
    OP
       Dec 27, 2015
    @ncisoft 我並不是要禁用。 是要自己分配 ipv6 但是會有錯誤的分配下來(不經由 DHCP)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3703 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 10:39 · PVG 18:39 · LAX 03:39 · JFK 06:39
    ♥ Do have faith in what you're doing.