IPV6 路由设置

问题描述:路由器可以获得IPV6 地址2001:db8:0:f101::ffee,但是Ping不通

解决方法:

  1. 列出现有的IP Route列表
    ip -6 route show

    得出结果
    2001:db8:0:f101::ffee dev vlan1  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
    2001:db8:0:f101::/64 dev br0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
    fe80::/64 dev eth0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
    fe80::/64 dev vlan0  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 br0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
    fe80::/64 dev vlan1  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0

  2. 删除路由
    ip -6 route del 2001:db8:0:f101::/64
    因为所有的路由需要经过vlan1而不是br0
  3. 添加路由
    ip -6 route add 2001:db8:0:f101::/64  dev vlan1

你可能感兴趣的:(IPV6 路由设置)