Re: No ifconfig

From: Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups_at_NTLWorld.COM>
Date: Wed, 13 Feb 2019 09:38:04 +0000

  *

    https://lists.debian.org/debian-user/2017/08/msg01613.html

  *

    https://news.ycombinator.com/item?id=17152738

  *

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=274269

  * https://news.ycombinator.com/item?id=17151922

Since I needed an |ifconfig| with a more BSD-like interface /anyway/ so
that I didn't have to maintain highly divergent scripts, you are going
to gain in the future.

|ifconfig| from GNU inetutils
<https://packages.debian.org/en/sid/inetutils-tools>:

    jdebp % inetutils-ifconfig -l
    enp14s0 enp15s0 lo
    jdebp % inetutils-ifconfig lo
    lo Link encap:Local Loopback
               inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0
               UP LOOPBACK RUNNING MTU:65536 Metric:1
               RX packets:9087 errors:0 dropped:0 overruns:0 frame:0
               TX packets:9087 errors:0 dropped:0 overruns:0 carrier:0
               collisions:0 txqueuelen:1000
               RX bytes:51214341 TX bytes:51214341

    jdebp %

|ifconfig| from NET-3 net-tools
<https://packages.debian.org/en/sid/net-tools>:

    jdebp % ifconfig -l
    ifconfig: option `-l' not recognised.
    ifconfig: `--help' gives usage information.
    jdebp % ifconfig lo
    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
             inet 127.0.0.1 netmask 255.0.0.0
             inet6 ::1 prefixlen 128 scopeid 0x10<host>
             inet6 ::2 prefixlen 128 scopeid 0x80<compat,global>
             loop txqueuelen 1000 (Local Loopback)
             RX packets 9087 bytes 51214341 (48.8 MiB)
             RX errors 0 dropped 0 overruns 0 frame 0
             TX packets 9087 bytes 51214341 (48.8 MiB)
             TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    jdebp %

|ifconfig| from an unreleased version of the nosh toolset
<http://jdebp.eu./Softwares/nosh/>:

    jdebp % ifconfig -l
    enp14s0 enp15s0 lo
    jdebp % ifconfig lo
    lo
         link up loopback running
         link address 00:00:00:00:00:00 bdaddr 00:00:00:00:00:00
         inet4 address 127.0.0.1 prefixlen 8 bdaddr 127.0.0.1
         inet4 address 127.53.0.1 prefixlen 32 bdaddr 127.53.0.1
         inet6 address ::2 scope 0 prefixlen 128
         inet6 address ::1 scope 0 prefixlen 128
    jdebp %

FreeBSD |ifconfig| (on a different system) for comparison:

    JdeBP % ifconfig lo0
    lo0: flags=ffde8149<UP,LOOPBACK,RUNNING,PROMISC,MULTICAST,PPROMISC,MONITOR,STATICARP> metric 0 mtu 16384
         options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
         inet6 ::2 prefixlen 128
         inet6 ::1 prefixlen 128
         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
         inet 127.0.0.1 netmask 0xff000000
         inet 127.53.0.1 netmask 0xff000000
         nd6 options=61<PERFORMNUD,AUTO_LINKLOCAL,NO_RADR>
    JdeBP %

The |ifconfig| from an unreleased version of the nosh toolset
<http://jdebp.eu./Softwares/nosh/> on that other system:

    JdeBP % ifconfig lo0
    lo0
            link up loopback drv_running running promisc multicast ppromisc monitor staticarp renaming
            nd6 performnud auto_linklocal noradr
             rxcsum txcsum hwcsum rxcsum_ipv6 txcsum_ipv6
            link address lo0 metric 0 mtu 16384
                    type 24 linkstate 0 physical 0 baudrate 0
            inet6 address ::2 scope 0 prefixlen 128
            inet6 address ::1 scope 0 prefixlen 128 bdaddr ::1 scope 0
            inet6 address fe80::1 scope 3 prefixlen 64
            inet4 address 127.0.0.1 prefixlen 8 bdaddr 127.0.0.1
            inet4 address 127.53.0.1 prefixlen 8 bdaddr 127.53.0.1
    JdeBP %
Received on Wed Feb 13 2019 - 09:38:04 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC