From nobody Thu Oct 14 00:00:14 2021 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AF3CA180A0FA for ; Thu, 14 Oct 2021 00:00:25 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [66.165.241.226]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HV8fx2vh4z4cpZ for ; Thu, 14 Oct 2021 00:00:25 +0000 (UTC) (envelope-from pete@nomadlogic.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomadlogic.org; s=04242021; t=1634169617; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DCeZbyCuh6W57vbzZ1gRN1CSjIQDudflbWxUaqLxHH4=; b=fERUh+pUotk7ALbswL4Kj6Mk/b+wD+J1QpT+84Mz+W0H4yyyoNdopooYppyKQCgCKbwnHM QHXEcBsmzBI1OwNb/CfEomrJy2GRvt2+gpG1zZuV42dpvXsDgRMCTNFiQwYfh84rdWrO/N k1/5voSN14cK/OWfgSTE/lnyt3zk8fs= Received: from [192.168.1.160] (cpe-24-24-163-126.socal.res.rr.com [24.24.163.126]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id f4c2d8a7 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 14 Oct 2021 00:00:17 +0000 (UTC) Subject: Re: FreeBSD equivalent of ethtool To: Rocky Hotas , FreeBSD Questions References: Message-ID: <3d5a21ba-9502-0362-05ef-349dd57d3bf6@nomadlogic.org> Date: Wed, 13 Oct 2021 17:00:14 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 4HV8fx2vh4z4cpZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: pete@nomadlogic.org From: Pete Wright via freebsd-questions X-Original-From: Pete Wright X-ThisMailContainsUnwantedMimeParts: N On 10/13/21 4:29 PM, Rocky Hotas wrote: > Hello! > `pkg search ethtool' provides no suitable results. Is there any executable > in FreeBSD base system or ports which offers the same functionalities > (or similar ones) as ethtool in Linux? I think it really depends on what your specific use-case is. I find that BSD ifconfig(8) covers most use cases for configuring interfaces (both physical and virtual), and the sysctl interface is also useful for pulling and setting device specific information. the latter is usually well documented in the man page for the interface (see if_em(4) for example). it should be noted that ifconfig(8) on bsd's tends to do much more than the old linux ifconfig and probably the new "ip" command as well. finaly, netstat(1) is very helpful for viewing information about the network stack itself, for example "netstat -m" to view memory stats. -p -- Pete Wright pete@nomadlogic.org @nomadlogicLA