Discussion:
ifconfig
(too old to reply)
faeychild
2024-09-16 05:37:41 UTC
Permalink
Just discovered it's deprecated.
Clearly I haven't used it for a while and have been living under a rock.

for anyone trapped in the time warp it's now -

ip addr show
--
faeychild
Running kde on 6.6.43-desktop-1.mga9 kernel.
Mageia release 9 (Official) for x86_64
Charlie Gibbs
2024-09-16 05:46:29 UTC
Permalink
Post by faeychild
Just discovered it's deprecated.
Clearly I haven't used it for a while and have been living under a rock.
for anyone trapped in the time warp it's now -
ip addr show
And if you're swamped by that overly-complex display, try

ip -brief addr

(A tip of the hat to whoever showed us this one recently)
--
/~\ Charlie Gibbs | We'll go down in history as the
\ / <***@kltpzyxm.invalid> | first society that wouldn't save
X I'm really at ac.dekanfrus | itself because it wasn't cost-
/ \ if you read it the right way. | effective. -- Kurt Vonnegut
faeychild
2024-09-16 21:26:38 UTC
Permalink
Post by Charlie Gibbs
And if you're swamped by that overly-complex display, try
ip -brief addr
stunningly brief :-)
--
faeychild
Running kde on 6.6.43-desktop-1.mga9 kernel.
Mageia release 9 (Official) for x86_64
Lawrence D'Oliveiro
2024-09-16 23:57:36 UTC
Permalink
Post by Charlie Gibbs
And if you're swamped by that overly-complex display, try
ip -brief addr
And if you’re trying to parse the output in a script, try adding the
“-json” option for more structured output.
Jeremy Brubaker
2024-10-04 15:26:53 UTC
Permalink
Post by Lawrence D'Oliveiro
Post by Charlie Gibbs
And if you're swamped by that overly-complex display, try
ip -brief addr
And if you’re trying to parse the output in a script, try adding the
“-json” option for more structured output.
File that one under "Things I Wish I Had Known Years Ago". Thanks very
much for that type.
--
() www.asciiribbon.org | Jeremy Brubaker
/\ - against html mail | јЬruЬаkе@оrіоnаrtѕ.іо / neonrex on IRC

Computers under water due to SYN flooding.
Jeremy Brubaker
2024-10-04 16:25:56 UTC
Permalink
Post by Lawrence D'Oliveiro
Post by Charlie Gibbs
And if you're swamped by that overly-complex display, try
ip -brief addr
And if you’re trying to parse the output in a script, try adding the
“-json” option for more structured output.
File that one under "Things I Wish I Had Known Years Ago". Thanks very
much for that tip.
--
() www.asciiribbon.org | Jeremy Brubaker
/\ - against html mail | јЬruЬаkе@оrіоnаrtѕ.іо / neonrex on IRC
Lawrence D'Oliveiro
2024-10-04 20:01:16 UTC
Permalink
Post by Jeremy Brubaker
File that one under "Things I Wish I Had Known Years Ago".
It’s in the man page <https://manpages.debian.org/8/ip.8.en.html>.
Jeremy Brubaker
2024-10-08 15:18:07 UTC
Permalink
Post by Lawrence D'Oliveiro
Post by Jeremy Brubaker
File that one under "Things I Wish I Had Known Years Ago".
It’s in the man page <https://manpages.debian.org/8/ip.8.en.html>.
Would that I could read **all** the manpages **and** retain everything. :)
--
() www.asciiribbon.org | Jeremy Brubaker
/\ - against html mail | јЬruЬаkе@оrіоnаrtѕ.іо / neonrex on IRC

Give your very best today. Heaven knows it's little enough.
faeychild
2024-10-09 21:11:26 UTC
Permalink
Post by Jeremy Brubaker
Post by Lawrence D'Oliveiro
Post by Jeremy Brubaker
File that one under "Things I Wish I Had Known Years Ago".
It’s in the man page <https://manpages.debian.org/8/ip.8.en.html>.
Would that I could read **all** the manpages **and** retain everything. :)
And comprehend. Would that not be a stunning achievement.
--
faeychild
Running kde on 6.6.52-desktop-1.mga9 kernel.
Mageia release 9 (Official) for x86_64
Lawrence D'Oliveiro
2024-10-10 00:01:06 UTC
Permalink
Post by faeychild
And comprehend. Would that not be a stunning achievement.
It’s a skill you can practise.

Also, search functions are useful.

Marco Moock
2024-09-16 18:24:08 UTC
Permalink
Post by faeychild
Just discovered it's deprecated.
Clearly I haven't used it for a while and have been living under a rock.
It is part for ~20 years.
Some distributions now don't ship ifconfig/route/arp anymore (by
default). Most still provide the packages to install.

For myself, I prefer ip, but maybe because I learned Linux in 2015 and
still ongoing. For me, ip is more reasonable structured.
--
kind regards
Marco

Send spam to ***@cartoonies.org
Lawrence D'Oliveiro
2024-09-17 00:07:34 UTC
Permalink
Post by Marco Moock
For myself, I prefer ip, but maybe because I learned Linux in 2015 and
still ongoing. For me, ip is more reasonable structured.
Here is a blog post on some of the issues why the old-style commands
don’t really work well any more: the way they get info from the kernel
is inefficient, and their traditional function also no longer reflects
the reality of how the network stack works
<https://utcc.utoronto.ca/~cks/space/blog/linux/ReplacingNetstatNotBad>.
Grant Taylor
2024-09-24 01:52:22 UTC
Permalink
Post by Lawrence D'Oliveiro
Here is a blog post on some of the issues why the old-style commands
don’t really work well any more: the way they get info from the
kernel is inefficient, and their traditional function also no longer
reflects the reality of how the network stack works
I largely agree with the statement. I've not yet looked at the URL.

What I don't understand is why nobody has written a wrapper that sites
in front of `ip` et al. to be called by the more traditional `ifconfig`
/ `route` et al.

Sure, there are differences. But Unix like OSs have used `ifconfig` for
40+ years to configure the network interface. I see zero reason to not
provide basic functionality in a backward compatible way.

I embraced `ip` 10-15 years ago. I've found many things that I can't do
with `ifconfig` which must be done with `ip`.

Conversely I've found a few things that must be done with `ifconfig` as
`ip` doesn't support them, mostly with non-IP protocols; IPX / DECnet / etc.
--
Grant. . . .
Richard Kettlewell
2024-09-24 07:29:55 UTC
Permalink
Post by Grant Taylor
Post by Lawrence D'Oliveiro
Here is a blog post on some of the issues why the old-style commands
don’t really work well any more: the way they get info from the
kernel is inefficient, and their traditional function also no longer
reflects the reality of how the network stack works
I largely agree with the statement. I've not yet looked at the URL.
What I don't understand is why nobody has written a wrapper that sites
in front of `ip` et al. to be called by the more traditional
`ifconfig` / `route` et al.
I’m not sure how that would differ from the ifconfig that exists now.
Post by Grant Taylor
Sure, there are differences. But Unix like OSs have used `ifconfig`
for 40+ years to configure the network interface. I see zero reason
to not provide basic functionality in a backward compatible way.
Again, how would that be any different from the ifconfig that exists
now? AFAIK it still works as well as it always did[1], it just can’t
manage some of the more modern stuff.

[1] possibly better; it seems to know about IPv6 now and if memory
serves, it didn’t use to
--
https://www.greenend.org.uk/rjk/
Grant Taylor
2024-09-25 03:24:15 UTC
Permalink
Post by Richard Kettlewell
I’m not sure how that would differ from the ifconfig that exists now.
I read somewhere that the way that ifconfig / route / et al. work
interfacing with the kernel differently and that these different methods
are deprecated and will eventually be removed.

If that's true, then creating an ifconfig / route / et al. wrapper
around iproute2 using the new kernel interfaces would probably be better
in the long run.
Post by Richard Kettlewell
AFAIK it still works as well as it always did[1], it just can’t
manage some of the more modern stuff.
It has more to do with the back end in kernel space than it does the
front end in user space.
Post by Richard Kettlewell
[1] possibly better; it seems to know about IPv6 now and if memory
serves, it didn’t use to
I believe that ifconfig / route / et al. learned how to support IPv6
before iproute2 was a thing. But maybe I'm mis-remembering.
--
Grant. . . .
Lawrence D'Oliveiro
2024-09-25 06:45:10 UTC
Permalink
Post by Grant Taylor
If that's true, then creating an ifconfig / route / et al. wrapper
around iproute2 using the new kernel interfaces would probably be better
in the long run.
The only reason it hasn’t been done is that nobody cares enough to do it.
Richard Kettlewell
2024-09-25 08:18:22 UTC
Permalink
Post by Grant Taylor
Post by Richard Kettlewell
I’m not sure how that would differ from the ifconfig that exists now.
I read somewhere that the way that ifconfig / route / et al. work
interfacing with the kernel differently
Yes, ifconfig uses ioctl, ip uses a netlink socket.
Post by Grant Taylor
and that these different methods are deprecated and will eventually be
removed.
That hasn’t happened yet and in any case is an implementation detail; if
anyone cared to keep ifconfig &c going after that point, they could be
modified to use netlink instead.

(Linux has a fairly strong tradition against breaking the user-facing
API, but I don’t know if an exception exists in this case.)
Post by Grant Taylor
Post by Richard Kettlewell
AFAIK it still works as well as it always did[1], it just can’t
manage some of the more modern stuff.
It has more to do with the back end in kernel space than it does the
front end in user space.
I’ve no idea what this is supposed to mean. If you want it to provide
basic functionality in a backward compatible way it doesn’t matter what
kernel API it uses. At any rate, I think it does do that.
--
https://www.greenend.org.uk/rjk/
Lawrence D'Oliveiro
2024-09-24 21:00:09 UTC
Permalink
Post by Grant Taylor
What I don't understand is why nobody has written a wrapper that sites
in front of `ip` et al. to be called by the more traditional `ifconfig`
/ `route` et al.
Unnecessary, given you can still install the old commands side by side
with the new ones, and they still work the same old, albeit inefficient,
way, to give the same old output.
Carlos E.R.
2024-09-25 05:22:03 UTC
Permalink
Post by Lawrence D'Oliveiro
Post by Grant Taylor
What I don't understand is why nobody has written a wrapper that sites
in front of `ip` et al. to be called by the more traditional `ifconfig`
/ `route` et al.
Unnecessary, given you can still install the old commands side by side
with the new ones, and they still work the same old, albeit inefficient,
way, to give the same old output.
I'm not sure of that.

I can install the old commands, but I get a warning that they may stop
working one day.
--
Cheers, Carlos.
Lawrence D'Oliveiro
2024-09-17 00:02:56 UTC
Permalink
Post by faeychild
Just discovered it's deprecated.
Clearly I haven't used it for a while and have been living under a rock.
for anyone trapped in the time warp it's now -
ip addr show
Some common equivalents (or near-equivalents):

Show all network interfaces--old way:

ifconfig -a

New way:

ip address show

Show routing table--old way:

route -n

New way:

ip route show

Show ARP cache--old way:

arp -n

New way:

ip neigh show

Show listening TCP ports--old way:

netstat -lt

New way:

ss -lt
Computer Nerd Kev
2024-09-17 21:46:15 UTC
Permalink
Post by faeychild
Just discovered it's deprecated.
ifconfig from GNU inetutils is still maintained and works fine.
--
__ __
#_ < |\| |< _#
Antti Talsta
2024-09-23 16:46:35 UTC
Permalink
Post by faeychild
for anyone trapped in the time warp it's now -
ip addr show
Or just

ip a
--
Antti Talsta
Loading...