linux Net-tools-1.60 包简介

http://www.linuxfromscratch.org/blfs/view/6.3/basicnet/net-tools.html

http://man.chinaunix.net/linux/lfs/htmlbook/appendixa/net-tools.html

原文COPY,,英文的,我看没有问题。。才知道了有用的命令,下面有中文的。。

Net-tools-1.60Introduction to Net-tools

The Net-tools package is a collection of programs for controlling the network subsystem of the Linux kernel.

Package Information

Additional Downloads

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/net-tools

Installation of Net-tools[Note]Note

The Net-tools package installs a hostname program which will overwrite the existing program installed by Coreutils during a base LFS installation. If, for whatever reason, you need to reinstall the Coreutils package after installing Net-tools, you should apply the coreutils-6.9-suppress_hostname-1.patch patch (after the other patches) if you wish to preserve the Net-tools hostname program.

The instructions below automate the configuration process by piping yes to the make config command. 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.

Install Net-tools by running the following commands:

patch -Np1 -i ../net-tools-1.60-gcc34-3.patch &&patch -Np1 -i ../net-tools-1.60-kernel_headers-2.patch &&patch -Np1 -i ../net-tools-1.60-mii_ioctl-1.patch &&yes "" | make config &&sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' -e 's|HAVE_MII 0|HAVE_MII 1|g' config.h &&sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' -e 's|# HAVE_MII=0|HAVE_MII=1|g' config.make &&make

This package does not come with a test suite.

Now, as the root user:

make updateCommand Explanations

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

sed -i -e …: These two seds change the configuration files to force building the ipmaddr, iptunnel and mii-tool programs.

ContentsInstalled Programs: arp, dnsdomainname, domainname, hostname, ifconfig, ipmaddr, iptunnel, mii-tool, nameif, netstat, nisdomainname, plipconfig, rarp, route, slattach, and ypdomainnameInstalled Libraries: NoneInstalled Directories: NoneShort Descriptions

arp

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

dnsdomainname

reports the system’s DNS domain name.

domainname

reports or sets the system’s NIS/YP domain name.

hostname

reports or sets the name of the current host system.

ifconfig

is the main utility for configuring network interfaces.

ipmaddr

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

iptunnel

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

mii-tool

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

nameif

names network interfaces based on MAC addresses.

netstat

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

nisdomainname

does the same as domainname.

plipconfig

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

rarp

is used to manipulate the kernel’s RARP table.

route

is used to manipulate the IP routing table.

slattach

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

ypdomainname

does the same as domainname.

Last updated on 2008-08-10 16:51:25 -0500

Net-tools

安装指导参见: the 节 called 安装 Net-tools-1.60 在 第 6 章.

官方下载地址

Net-tools (1.60):
http://www.tazenda.demon.co.uk/phil/net-tools/

Net-tools Mii-Tool-Gcc33 Patch:
http://www.linuxfromscratch.org/patches/lfs/cvs/net-tools-1.60-miitool-gcc33-1.patch

Net-tools的内容

Net-tools 包含一系列程序,构成了 Linux 网络的基础。

安装下列程序: arp, dnsdomainname (link to hostname), domainname (link to hostname), hostname, ifconfig, nameif, netstat, nisdomainname (link to hostname), plipconfig, rarp, route, slattach 和 ypdomainname (link to hostname)

简短说明

arp用来操作核心的ARP(地址解析协议)的高速缓存,通常用来增加、删除一个条目以及转储ARP高速缓存。

dnsdomainname显示系统的DNS域名。

domainname显示系统的 NIS/YP 域名。

hostname用来设置或显示系统的主机名。

ifconfig 用来配置网络接口。

nameif基于MAC地址给网络界面命名。

netstat可以显示网络连接、路由列表、界面状态、虚拟连接等信息。

nisdomainname 同domainname。

plipconfig 用来优化PLIP设备的参数以加快该设备的速度。

rarp 和arp命令类似,处理操作系统的RARP(逆向地址解析协议)表。

route 用来管理IP路由表。

slattach 将某个网络接口对应为串行线,例如将一个通常的终端线添加为某种网络模。

ypdomainname同domainname.

Net-tools 安装依赖关系

Net-tools 依赖于: Bash, Binutils, Coreutils, GCC, Glibc, Make.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>