[HN Gopher] Ask HN: Do we still need `-6` for `IP` command?
___________________________________________________________________
Ask HN: Do we still need `-6` for `IP` command?
Seems now `ip` can do the same thing as `ip -6`, so is there any
situation that we must use `-6` flag?
Author : fernvenue
Score : 4 points
Date : 2024-02-03 19:03 UTC (3 hours ago)
| fernvenue wrote:
| I'm gonna answer myself, sometimes we do need to add `-6` for
| IPv6 situation, for example:
|
| - `ip -6 r show`: If we don't add `-6`, we will just get the IPv4
| route information. - `ip -6 r add`: If we don't add `-6`, when we
| add default route or something like that, we may miss IPv6.
|
| So the answer is yes, we can use `ip` without `-6` when we do
| something for IPv6, but we still need it for specific situation.
| LinuxBender wrote:
| ip -6 route del default
|
| That does something different than ip route del
| default
___________________________________________________________________
(page generated 2024-02-03 23:02 UTC)