Hi, I would like to test my custom function in P4, but the log file of each P4switch always adds processing detail of Ipv6, which takes up a lot of log space and affects the viewing of debug information.
I use simple_switch+topo.py to execute and config Mininet. I tried the following command in each host and P4switch:
> mininet> sysctl -w net.ipv6.conf.all.disable_ipv6=1
> mininet> sysctl -w net.ipv6.conf.default.disable_ipv6=1
> mininet> sysctl -w net.ipv6.conf.lo.disable_ipv6=1
but these commands do not work.
How can I stop this sending behavior of ipv6 or prevent processing detail of ipv6 from being written into log file?
Best,
Yuexin
I do not know why the sysctl commands you mention are not enough to prevent the IPv6 control packets you are probably seeing in your logs.
I do not know if the GitHub - p4lang/tutorials: P4 language tutorials repo scripts do this already or not, but perhaps those same sysctl commands should also be run on “the other end” of the veth pair? i.e. I believe there are two veth interfaces created, one in the virtual host, and the other in the Linux network namespace where simple_switch_grpc runs, and perhaps the sysctl commands on the host are doing something, but there are kernel-generated IPv6 control packets being created and sent on the other veth interface on the simple_switch_grpc side, and that is what you are seeing?
This is only a guess on my part for an experiment you might try. However, if that experiment is successful, it would be great if you could create a PR for the tutorials repository with those changes that we can consider merging into its code.