:: Re: [DNG] ifconfig deprecated?
Top Pagina
Delete this message
Reply to this message
Auteur: Martin Steigerwald
Datum:  
Aan: dng
Onderwerp: Re: [DNG] ifconfig deprecated?
Hello Hendrik.

Hendrik Boom - 21.11.17, 07:05:
> On Tue, Nov 21, 2017 at 05:34:15PM -0500, Steve Litt wrote:
> > On Mon, 20 Nov 2017 22:55:36 -0500
> >
> > Hendrik Boom <hendrik@???> wrote:
> > > On Tue, Nov 21, 2017 at 05:53:49PM +0100, Jaromil wrote:
> > > > nono, as I wrote: that script doesn't works anymore, if ran on a
> > > > freshly debootstrapped version of Debian 9. It seemed that rc.local
> > > > wasn't executed anymore. But there is some confusion, since both
> > > > brctl and ifconfig are legitimately deprecated. Assuming you have
> > > > done better checking, then the failure may be caused by them
> > > > bailing out.
> > >
> > > ifconfig is deprecated? What is to be used instead?
> >
> > A program called ip. It has commands such as ip route, ip addr, ip
> > link, and several others. It's confusing and underdocumented, but so is
> > ifconfig (which I never even began to master).
>
> I've never mastered ifconfig either. But I've noticed that the
> simple command
>
>        ifconfig

>
> tells me what interfaces are up at the moment and the packet counts
> tell me whether they are actually functioning.
>
> It's a very simple way to diagnose the most common netweok
> conectivity of all.


For that I do not know a ip command out of the box. But

merkaba:~> netstat -i
Kernel-Schnittstellentabelle
Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0      1500  6190114      0      0 0       2742172      0      0      0 
BMRU
lo       65536   334759      0      0 0        334759      0      0      0 LRU


will also show it.

I also recommend bmon for a more detailed analysis :)

Thanks,
--
Martin