On Thu, 9 Nov 2017 at 19:12:41 -0500 Bryan Smith <[email protected]> wrote:
> Okada Kenji <[email protected]> wrote: >> Hi. >> I strongly agree this idea. My main using distribution, Debian, is using >> ‘ip’ command as default since last time. It may means LPIC should be >> reducing the weight of net-tools (like ifconfig) and increasing the >> weight of ‘ip’ command. (I still love old net-tools commands like >> ifconfig, route, netstat and so on). > > Indeed. The net-tools and legacy scripts (e.g., ifup/ifdown) have > stuck around, and even been modified to use ip, nmcli, ss, et al., > because people are not learning the iproute2 stack and command set. I'm not that sure ifup/ifdown have so much to do with getting stuck on net-tools-era commands. I rather think them as universal interface commands that bring interfaces up or down quickly hiding the distribution-specific details like networking configuration files. It is much easier typing: ifup wifi than: wpa_supplicant -s -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211 -B -P /run/wpa_supplicant/wpa_supplicant.pid && dhclient wlan0 or typing: ifdown wifi than: dhclient -x wlan0 ; sleep 10 ; killall wpa_supplicant Other tools are distribution-specific or require Network-Manager to be installed, which is fine, but if this is the rationale for dropping ifup/ifdown then the resoning should be: "Coverage of NM obsoletes ifup/ifdown", not "net-tools are obsolete, thus ifup/ifdown are as well". In fact yourself you wrote that ifup/ifdown were updated to use iproute2 commands or NM cli commands to do their work. So, why the demise of net-tools should cause ifup/ifdown to be dropped as well? They're not in the same package: Devuan 2.0 (Debian-like): $ dpkg-query --search /sbin/ifup /sbin/ifconfig ifupdown: /sbin/ifup net-tools: /sbin/ifconfig Fedora 26 (Red Hat like): $ rpm -qf /usr/sbin/ifup /usr/sbin/ifconfig initscripts-9.72-1.fc26.i686 net-tools-2.0-0.42.20160912git.fc26.i686 And neither the ifupdown nor the initscripts packages depend on net-tools. Alessandro _______________________________________________ lpi-examdev mailing list [email protected] http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev
