[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No ifconfig



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:

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:

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:

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

Reply to: