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

Re: New nomeclature of ethernet devices



	Hi.

On Wed, Jun 26, 2019 at 08:15:00AM -0400, Greg Wooledge wrote:
> On Tue, Jun 25, 2019 at 07:51:53PM -0400, The Wanderer wrote:
> > On 2019-06-25 at 09:28, Michael Stone wrote:
> > > ifquery --list | grep -v lo
> > 
> > And what about when you only want the wired interface, or only the
> > wireless one, but the machine might have one of each type?
> 
> /sbin/ifquery --list | grep ^en   # or grep ^wl

$ /sbin/ifquery --list
lo
intbr
int0

The result is lacking both eth0 and wlan0 which I do have here.
The reason is - 'ifquery --list' lists only interfaces which are marked
as 'auto' in e/n/i.

I'm sticking to the plain 'ls /proc/sys/net/ipv4/conf'.
It does lie if network namespaces are taken into the account, but does
not require copious amounts of perl, sed and awk to be readable.

Reco


Reply to: