Net-tools の概要

Net-tools パッケージは、Linux カーネルのネットワーク関連システムを制御するためのプログラムを提供します。

本パッケージは LFS-8.3 において正しくビルドでき動作することが確認されています。


Additional Downloads


Net-tools のインストール

以下にある make config の実行に対しては、yes をパイプにより与えることで configure の処理を自動化しています。 If you wish to run the interactive configuration process (by changing the instruction to just make config), but you are not sure how to answer all the questions, then just accept the defaults. This will be just fine in the majority of cases. What you're asked here is a bunch of questions about which network protocols you've enabled in your kernel. The default answers will enable the tools from this package to work with the most common protocols: TCP, PPP, and several others. You still need to actually enable these protocols in the kernel—what you do here is merely tell the package to include support for those protocols in its programs, but it's up to the kernel to make the protocols available.



This package has several unneeded protocols and hardware device specific functions that are obsolete. To only build the minimum needed for your system, skip the yes command and answer each question interactively. The minimum needed options are 'UNIX protocol family' and 'INET (TCP/IP) protocol family'.

The patch below cleans up the installation so that it does not overwrite the ifconfig and hostname programs that were installed in LFS.

以下のコマンドを実行して Net-tools をビルドします。

patch -Np1 -i ../net-tools-CVS_20101030-remove_dups-1.patch &&
sed -i '/#include <netinet\/ip.h>/d'  iptunnel.c &&

yes "" | make config &&


root ユーザーになって以下を実行します。

make update


sed -i '/#include <netinet\/ip.h>/d' iptunnel.c: This fixes build breakage with linux-4.8 headers.

yes "" | make config: Piping yes to make config skips the interactive configuration and accepts the defaults.


インストールプログラム: arp, ipmaddr, iptunnel, mii-tool, nameif, netstat, plipconfig, rarp, route, slattach
インストールライブラリ: なし
インストールディレクトリ: なし



is used to manipulate the kernel's ARP cache, usually to add or delete an entry, or to dump the entire cache.


adds, deletes and shows an interface's multicast addresses.


adds, changes, deletes and shows an interface's tunnels.


checks or sets the status of a network interface's Media Independent Interface (MII) unit.


names network interfaces based on MAC addresses.


is used to report network connections, routing tables, and interface statistics.


is used to fine tune the PLIP device parameters, to improve its performance.


is used to manipulate the kernel's RARP table.


is used to manipulate the IP routing table.


attaches a network interface to a serial line. This allows you to use normal terminal lines for point-to-point links to other computers.

最終更新日: 2018-08-19 06:53:19 +0900