Results 1 to 2 of 2
Thread: How to disable ipv4
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Apr 2006
How to disable ipv4
I am writing a small C application that uses BASH scripts. This application gives a user the ability to use ipv4 only or ipv6 only or both at the same time.
How can I disable ipv4?
I don't want to remove ipv4 from the kernel. I just want to disable it where it cannot be used or pinged.
If I run...
ip address flush eth0
How do I just disable the IPv4 address and leave the IPv6.
And how do I disable the IPv6 and leave the IPv4 address.
I haven't tried it myself but you could try using the -f[amily] option.
For IPv4 use
ip -f inet flush eth0
ip -f inet6 flush eth0