How can I disable IPv4 stack from Linux ? I want to do that dynamically, iei.e. sometimes I want it enabled and sometimes I want only IPv6 stack. Is there any portable way to do that ? If you know how to do that in any distribution, it will also help me a lot.