使用动态的分配ipv6

vim /etc/network/interfaces

添加

iface eth0 inet6 auto

添加静态ipv6

vim  /etc/network/interfaces
auto lo
iface lo inet loopback
    dns-nameservers 114.114.114.114 8.8.8.8
    dns-search coal

auto eth0
iface eth0 inet static
    address 192.168.183.11/24
    gateway 192.168.183.1

auto eth1
iface eth1 inet6 static
    address 2409:875xxxxxxxxxxxxxxx/64
    gateway 2409:87xxxxxxxxxxxxxxxxxxx