如何防止路由器广告更新我的IPv6路由?

我想在RHEL6.5中发送没有碎片的大型IPv6数据包。 我正在使用这个命令来testing:

ping6 dest_ip -s 8952 -M do -c 100 

这是我曾经试过的:

  1. 设置MTU:

     ifconfig eth0 mtu 9000 
  2. 删除预先configuration的IPv6路由:

     [root@myhost~]# ip -6 route|grep fc00 fc00:10:24:86::/64 dev eth0 proto kernel metric 256 expires 0sec mtu 1500 advmss 1440 hoplimit 4294967295 [root@myhost~]# ip -6 route del fc00:10:24:86::/64 
  3. 添加一个新的IPv6路由:

     [root@myhost~]# ip -6 route add fc00:10:24:86::/64 dev eth0 mtu 9000 metric 256 [root@myhost~]# ip -6 route|grep eth0 fc00:10:24:86::/64 dev eth0 metric 255 mtu 9000 advmss 8940 hoplimit 4294967295 fe80::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 4294967295 default via fe80::fefb:fbff:fe31:c280 dev eth0 proto kernel metric 1024 expires 0sec mtu 1500 advmss 1440 hoplimit 64 
  4. 完成上述configuration后,执行ping命令ping6 dst_v6_ip -s 8952 -M do -c 100 。 我可以看到100个数据包中的第一个被成功传送,但Message too long时间,它显示Message too long

  5. 然后我检查现有的IPv6路由,发现它由RA(我想)

     [root@myhost~]# ip -6 route|grep fc00 fc00:10:24:86::/64 dev eth0 proto kernel metric 256 expires 0sec mtu 1500 advmss 1440 hoplimit 4294967295 
  6. 我试图通过使用以下命令来禁用RA和autoconf:

     sysctl -w net.ipv6.conf.all.autoconf=0 sysctl -w net.ipv6.conf.all.accept_ra=0 

但它仍然不起作用。

如何防止RA / AUCONF取代手动configuration的IPv6路由?