Results 1 to 2 of 2
Hi.
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 ...
- 09-21-2011 #1Just Joined!
- Join Date
- Apr 2006
- Posts
- 16
How to disable ipv4
Hi.
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...
both ipv4 and ipv6 addresses get flushed.Code: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.
thanks
- 09-25-2011 #2
I haven't tried it myself but you could try using the -f[amily] option.
For IPv4 use
or to flush the IPv6 addressCode:ip -f inet flush eth0
Got this from typingCode:ip -f inet6 flush eth0
Code:ip help


Reply With Quote