• ifconfig

    From faeychild@2:250/1 to All on Monday, September 16, 2024 06:37:41
    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

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Charlie Gibbs@2:250/1 to All on Monday, September 16, 2024 06:46:29
    On 2024-09-16, faeychild <faeychild@nomail.afraid.org> wrote:

    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
    \ / <cgibbs@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

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1@fidonet)
  • From Marco Moock@2:250/1 to All on Monday, September 16, 2024 19:24:08
    On 16.09.2024 um 15:37 Uhr faeychild wrote:

    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 1726493861muell@cartoonies.org


    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From faeychild@2:250/1 to All on Monday, September 16, 2024 22:26:38
    On 16/9/24 15:46, Charlie Gibbs wrote:

    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


    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Lawrence D'Oliveiro@2:250/1 to All on Tuesday, September 17, 2024 00:57:36
    On Mon, 16 Sep 2024 05:46:29 GMT, Charlie Gibbs wrote:

    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.

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Lawrence D'Oliveiro@2:250/1 to All on Tuesday, September 17, 2024 01:02:56
    On Mon, 16 Sep 2024 15:37:41 +1000, faeychild wrote:

    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

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Lawrence D'Oliveiro@2:250/1 to All on Tuesday, September 17, 2024 01:07:34
    On Mon, 16 Sep 2024 20:24:08 +0200, Marco Moock wrote:

    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>.

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Computer Nerd Kev@2:250/1 to All on Tuesday, September 17, 2024 22:46:15
    faeychild <faeychild@nomail.afraid.org> wrote:
    Just discovered it's deprecated.

    ifconfig from GNU inetutils is still maintained and works fine.

    --
    __ __
    #_ < |\| |< _#

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: Ausics - https://newsgroups.ausics.net (2:250/1@fidonet)
  • From Antti Talsta@2:250/1 to All on Monday, September 23, 2024 17:46:35
    On 2024-09-16, faeychild <faeychild@nomail.afraid.org> wrote:
    for anyone trapped in the time warp it's now -
    ip addr show

    Or just

    ip a

    --
    Antti Talsta

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Grant Taylor@2:250/1 to All on Tuesday, September 24, 2024 02:52:22
    On 9/16/24 19:07, Lawrence D'Oliveiro wrote:
    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. . . .

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: TNet Consulting (2:250/1@fidonet)
  • From Richard Kettlewell@2:250/1 to All on Tuesday, September 24, 2024 08:29:55
    Grant Taylor <gtaylor@tnetconsulting.net> writes:
    On 9/16/24 19:07, Lawrence D'Oliveiro wrote:
    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.

    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/

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: terraraq NNTP server (2:250/1@fidonet)
  • From Lawrence D'Oliveiro@2:250/1 to All on Tuesday, September 24, 2024 22:00:09
    On Mon, 23 Sep 2024 20:52:22 -0500, Grant Taylor wrote:

    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.

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Grant Taylor@2:250/1 to All on Wednesday, September 25, 2024 04:24:15
    On 9/24/24 02:29, Richard Kettlewell wrote:
    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.

    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.

    [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. . . .

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: TNet Consulting (2:250/1@fidonet)
  • From Carlos E.R.@2:250/1 to All on Wednesday, September 25, 2024 06:22:03
    On 2024-09-24 23:00, Lawrence D'Oliveiro wrote:
    On Mon, 23 Sep 2024 20:52:22 -0500, Grant Taylor wrote:

    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.


    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1@fidonet)
  • From Lawrence D'Oliveiro@2:250/1 to All on Wednesday, September 25, 2024 07:45:10
    On Tue, 24 Sep 2024 22:24:15 -0500, Grant Taylor wrote:

    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.

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Richard Kettlewell@2:250/1 to All on Wednesday, September 25, 2024 09:18:22
    Grant Taylor <gtaylor@tnetconsulting.net> writes:
    On 9/24/24 02:29, Richard Kettlewell wrote:
    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.

    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.)

    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/

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: terraraq NNTP server (2:250/1@fidonet)
  • From Jeremy Brubaker@2:250/1 to All on Friday, October 04, 2024 17:25:56
    On 2024-09-16, Lawrence D'Oliveiro wrote:
    On Mon, 16 Sep 2024 05:46:29 GMT, Charlie Gibbs wrote:

    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


    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Lawrence D'Oliveiro@2:250/1 to All on Friday, October 04, 2024 21:01:16
    On Fri, 4 Oct 2024 16:25:56 -0000 (UTC), Jeremy Brubaker wrote:

    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>.

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Jeremy Brubaker@2:250/1 to All on Tuesday, October 08, 2024 16:18:07
    On 2024-10-04, Lawrence D'Oliveiro wrote:
    On Fri, 4 Oct 2024 16:25:56 -0000 (UTC), Jeremy Brubaker wrote:

    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.

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From faeychild@2:250/1 to All on Wednesday, October 09, 2024 22:11:26
    On 9/10/24 02:18, Jeremy Brubaker wrote:
    On 2024-10-04, Lawrence D'Oliveiro wrote:
    On Fri, 4 Oct 2024 16:25:56 -0000 (UTC), Jeremy Brubaker wrote:

    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


    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Lawrence D'Oliveiro@2:250/1 to All on Thursday, October 10, 2024 01:01:06
    On Thu, 10 Oct 2024 08:11:26 +1100, faeychild wrote:

    And comprehend. Would that not be a stunning achievement.

    It’s a skill you can practise.

    Also, search functions are useful.

    --- MBSE BBS v1.1.0 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)